Skip to content

Get activity

GET/v1/activity

Count price, availability and Listing events over time.

Authorization
header · required
Bearer <Extralt API key>
from
query · string · required

Window start. The window spans at most 90 days.

date-time
bucket
query · ActivityInterval · required

Bucket of the time series; a window holds at most 400 buckets.

one of hour · day · week
to
query · string

Exclusive window end; defaults to the request time.

date-time

Response

200 OK · application/json

Observed price, stock and catalog events in a window, counted in total, per Store and per UTC bucket; at most 90 days

bucket
ActivityInterval

UTC time bucket of an activity series; weeks start on Monday.

one of hour · day · week
buckets
ActivityBucket[]

Every bucket from the one holding from to the one holding the window end, in order, including empty ones.

counts
ActivityCounts
start
string

UTC start of the bucket.

date-time
from
string
date-time
median_price_decrease_percent
string · nullable

Median percentage change of the price decreases, truncated to six fractional digits; null without a decrease from a positive price.

pattern ^-?(0|[1-9][0-9]{0,20})(\.[0-9]{1,6})?$
median_price_increase_percent
string · nullable
pattern ^-?(0|[1-9][0-9]{0,20})(\.[0-9]{1,6})?$
stores
ActivityStore[]

Stores with at least one event in the window.

counts
ActivityCounts
store_id
string
to
string
date-time
totals
ActivityCounts
listings_added
integer
int64 · ≥ 0
listings_removed
integer
int64 · ≥ 0
out_of_stock
integer
int64 · ≥ 0
price_decreases
integer
int64 · ≥ 0
price_increases
integer
int64 · ≥ 0
restocked
integer
int64 · ≥ 0

Errors

ErrorResponse

Errors that read the same on every endpoint are in Error codes.

400

Invalid window or bucket

422

scope_too_large: the window exceeds a query budget; shorten it

Request · cURL
curl -X GET 'https://api.extralt.com/v1/activity?from=2026-09-01T00%3A00%3A00Z&bucket=hour' \
  -H "Authorization: Bearer $EXTRALT_API_KEY"
Response · 200
{
  "bucket": "hour",
  "buckets": [
    {
      "counts": {
        "listings_added": 0,
        "listings_removed": 0,
        "out_of_stock": 0,
        "price_decreases": 0,
        "price_increases": 0,
        "restocked": 0
      },
      "start": "2026-09-28T08:14:03Z"
    }
  ],
  "from": "2026-09-28T08:14:03Z",
  "median_price_decrease_percent": "-8.5",
  "median_price_increase_percent": "6.25",
  "stores": [
    {
      "counts": {
        "listings_added": 0,
        "listings_removed": 0,
        "out_of_stock": 0,
        "price_decreases": 0,
        "price_increases": 0,
        "restocked": 0
      },
      "store_id": "example-store.com-US"
    }
  ],
  "to": "2026-09-28T08:14:03Z",
  "totals": {
    "listings_added": 0,
    "listings_removed": 0,
    "out_of_stock": 0,
    "price_decreases": 0,
    "price_increases": 0,
    "restocked": 0
  }
}