Skip to main content
cURL
Cost: 1 API credit per live read.
Needs the seller’s Chrome open somewhere, with the Alura extension and signed in to Etsy for this shop. The script or agent can run on another computer. An offline extension answers extension_offline; the live status can name a more specific connection problem. Errors cost no API credits. See Chrome extension.
Needs the ads:read scope and the Etsy Ads workspace permission. A shop that has never run Etsy Ads answers nulls with a no_ads_campaign notice.

Choose the range

range doesn’t go with from or to: mixing them answers 400. Days are Etsy’s days, US Eastern for every shop. range_applied says what Etsy served: daily buckets up to 60 days, monthly beyond. If Etsy fails on range=max, Alura retries once. If that fails too, the answer carries a hint to ask for last_30.

Get daily points or a comparison

One point per day for the last 90 days
A chunk Etsy didn’t answer leaves its days out of series, makes totals null and names those days in a partial_series notice. Missing days are never counted as zero.

Limits

429 live_rate_limited means the shop had too many live reads: more than 2 at a time or 30 a minute. Wait for Retry-After. With interval=day, each 60-day chunk Etsy answers is one live read, up to 13. Chunks that failed, and a call that could not read Etsy, are free. See Credits and limits. For the campaign itself, use Get Etsy Ads. For one listing’s results, use Get ad listing.

Authorizations

Authorization
string
header
required

An API key: Authorization: Bearer alura_sk_....

Query Parameters

shop_id
string

The Etsy shop ID of one of the workspace's connected shops; optional when the workspace has one.

Pattern: ^[0-9]{1,20}$
Example:

"22841907"

range
enum<string>

max (default): since the campaign started; or last_7, last_30, last_90 or last_365: the last 7, 30, 90 or 365 days to today, on Etsy's calendar (US Eastern for every shop). Not with from/to.

Available options:
max,
last_7,
last_30,
last_90,
last_365
Example:

"last_30"

from
string

First day (inclusive), on Etsy's calendar (US Eastern for every shop). Not with range; a day before the campaign started is capped there.

Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
to
string

Last day (inclusive), on Etsy's calendar (US Eastern for every shop). Default today. Not with range.

Pattern: ^[0-9]{4}-[0-9]{2}-[0-9]{2}$
interval
enum<string>

auto (default): Etsy's own buckets, daily up to 60 days and monthly beyond; day: one point per day, read in chunks of 60 days, at most 13 (768 days; longer is 400 range_too_long_for_interval).

Available options:
auto,
day
compare
enum<string>

previous_period adds compare: the equal period just before. Not with range=max, nor with interval=day beyond 60 days.

Available options:
previous_period
fields
string

Comma-separated dotted paths to return; id, object and as_of always come back.

Response

OK

object
string
required
Allowed value: "workspace.ads_stats"
shop_id
string
required

The Etsy shop ID, as a string.

range
enum<string>
required

The range asked for: max (the default) is the campaign's start to today, never "all time"; custom for from/to.

Available options:
max,
last_7,
last_30,
last_90,
last_365,
custom
range_applied
object | null
required

The window served, as Etsy stated it; null when nothing was served (no campaign, or a window wholly before the campaign started).

range_capped
boolean
required

true when the window served is shorter than the one asked for (range_capped_reason says why). max is never capped.

range_capped_reason
enum<string> | null
required

before_data_start: asked from before the campaign started; etsy_window: past today. null when not capped.

Available options:
etsy_window,
before_data_start,
etsy_rolling_window
interval
enum<string>
required

auto: Etsy's own bucket size; day: one point per day, read in chunks of 60 days.

Available options:
auto,
day
series
object[] | null
required

One point per bucket, oldest first; days that could not be read are left out (a partial_series notice names them). null when nothing was served.

totals
object | null
required

null when nothing was served or some days could not be read (partial_series), never a sum with days missing.

compare
object | null
required

With compare=previous_period: the equal period just before range_applied; null otherwise.

notices
object[]
required
fetched_at
string
required

When Alura read it from Etsy: the oldest of the reads it stands on, when it combines several.

source
string
required

Live Etsy data (needs Chrome open with the Alura extension, logged into Etsy).

Allowed value: "live"