Statistics and exports

Read account statistics with a key that has statistics:read.

On this page

Date range and filters

Read the filter values and then send range and filters in the statistics query. The result includes a summary, one page of listings and metadata.

curl --fail-with-body --request POST \
  --url "${MOTANO_API_ORIGIN}/api/v1/statistics/listings" \
  --header "Authorization: Bearer ${MOTANO_API_KEY}" \
  --header "Content-Type: application/json" \
  --data '{
  "range": {
    "preset": "30"
  },
  "filters": {
    "status": "active"
  },
  "page": 1,
  "limit": 25
}'

Listing details

The detail view includes daily series, the funnel, price history and a market comparison for that listing.

CSV export

Send the filters to the export endpoint to download matching listings as CSV. Keep the file, response headers and request identifier separate when diagnosing an error.

curl --fail-with-body --request POST \
  --url "${MOTANO_API_ORIGIN}/api/v1/statistics/export" \
  --header "Authorization: Bearer ${MOTANO_API_KEY}" \
  --header "Content-Type: application/json" \
  --data '{
  "range": {
    "preset": "30"
  },
  "filters": {
    "status": "active"
  }
}' \
  --output statistics.csv