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.

What you get

A shop that has never run Etsy Ads answers campaign: null with a no_ads_campaign notice, never a campaign of zeros.

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.

Add more to the answer

expand takes a comma-separated list. Both options come within this call’s charge. interval and compare work as on Get Etsy Ads stats.

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. Reads that failed, and a call that could not read Etsy, are free. See Credits and limits.

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
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.

expand
string

Comma-separated related objects to include: stats, groups. Free.

Response

OK

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

The Etsy shop ID, as a string.

campaign
object | null
required

null when the shop has no Etsy Ads campaign (with a no_ads_campaign notice), never a campaign of zeros.

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 | null
required

As on the stats; null with ads_stats_unavailable.

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
totals
object | null
required

The campaign over range_applied; null when the shop has no campaign or Etsy served no stats (ads_stats_unavailable), never zeros.

advertised_listings
integer | null
required

How many listings the campaign advertises; null when Etsy did not say.

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"
stats
object | null

With expand=stats: the stats of the same range with their series (workspace.ads_stats); null with ads_stats_unavailable.

groups
object[] | null

With expand=groups: the shop's ad groups (workspace.ad_group), by name; null when the shop has no campaign, Etsy has ad groups off for it (ad_groups_not_enabled) or did not return them (ad_groups_unavailable), never an empty list for unknown.