What the API reads
Every endpoint of the Gloriads API — performance, products, campaigns, rules and activity — with its parameters, an example, and how fresh the figures are.
The API reads the same figures as your Gloriads screens. It never changes your account or your ads.
Endpoints
| Endpoint | What it returns |
|---|---|
GET /api/v1/account | Your subscription, whether Amazon Ads is connected, and up to which day the figures go. Call it first. |
GET /api/v1/marketplaces | Your connected marketplaces, with their currency and how many campaigns, ad groups and ads each runs. |
GET /api/v1/summary | The totals of a period: the dashboard's cards, per marketplace and per ad type too. |
GET /api/v1/timeline | The same figures day by day or month by month: the dashboard's chart. |
GET /api/v1/reports/products | Each advertised product's figures over a period: the Products page. |
GET /api/v1/campaigns | One marketplace's campaigns, with budget, targeting and state. |
GET /api/v1/ad-groups | One marketplace's ad groups, with their default bid. |
GET /api/v1/rules | Your rules: on or off, where they act, their schedule, their last run. |
GET /api/v1/rules/{rule_id}/runs | One rule's last 20 runs. |
GET /api/v1/activity | Everything Gloriads did on Amazon, newest first. |
Every parameter and every field is in the API reference, with a Try it button.
Periods
/summary, /timeline and /reports/products cover a period. Send one of:
| Parameter | Example | Meaning |
|---|---|---|
range | last_30_days | today, yesterday, last_7_days, last_14_days, last_30_days, last_60_days, last_90_days, this_month, last_month, this_year, last_year, all_time |
start_date + end_date | 2026-09-01 and 2026-09-30 | Two days, both included, at most six years apart |
- Nothing sent:
last_30_days, like the dashboard. last_30_daysincludes today, like the dashboard's Last 30 days. While the dashboard compares two periods (Compare to), it stops both at yesterday: for the same figure, sendstart_dateandend_datewithend_date= yesterday.all_timestarts at the oldest day Gloriads holds, like Lifetime on the dashboard.timezone(Europe/Paris,America/New_York…) decides which day "today" is. UTC by default.- Every answer repeats the days it covers in
period.
Filters
| Parameter | Example | Keeps |
|---|---|---|
marketplaces | US,UK | These countries only (GB works too) |
ad_products | SPONSORED_PRODUCTS | SPONSORED_PRODUCTS, SPONSORED_BRANDS or SPONSORED_DISPLAY |
An unknown value is refused with a 400 that names it, never answered with zeros.
Totals of a period
curl "https://gloriads.com/api/v1/summary?range=last_month&marketplaces=US" \
-H "Authorization: Bearer YOUR_API_KEY"{
"period": { "start_date": "2026-09-01", "end_date": "2026-09-30", "range": "last_month", "timezone": "UTC" },
"currency": "USD",
"spend": 13140.53,
"sales": 46562.2,
"acos": 28.22,
"roas": 3.54,
"impressions": 3945723,
"clicks": 13973,
"ctr": 0.35,
"average_cpc": 0.94,
"purchases": 1479,
"conversion_rate": 10.58,
"by_marketplace": [ … ],
"by_ad_product": [ … ],
"meta": { "data_last_date": "2026-10-09", "history_covered": true, "truncated": false }
}acos,ctrandconversion_rateare percentages:28.22means 28.22 %.purchasescounts orders, like the console's Purchases, not units.- A ratio without its base (ACOS with no sale) is
null, never0.
Day by day or month by month
/timeline takes the same period and filters, and returns one point per day or
per month in data.
granularity=auto(the default) picks days up to 92 days, months beyond, like the dashboard's chart.granularity=dayis refused on a period longer than 92 days.- A day without any figure is left out.
Per product
/reports/products returns one row per advertised product (ASIN), sorted by
sort (spend by default) and order (desc by default).
product_id: nullgathers what Amazon ties to no product, mostly Sponsored Brands.- The rows come in pages: see Limits and errors.
Campaigns and ad groups
Both need marketplace_id: an id from /marketplaces.
curl "https://gloriads.com/api/v1/campaigns?marketplace_id=3478512345678901&states=ENABLED" \
-H "Authorization: Bearer YOUR_API_KEY"- They list enabled and paused campaigns of Sponsored Products, Sponsored Brands and Display. Archived ones are never listed.
- Budgets and bids are in the marketplace's own currency (
currency_codein/marketplaces). provenancesays whether Gloriads created the campaign, changed it, or never touched it./ad-groups?campaign_id=…keeps one campaign's ad groups.- Up to 1,000 rows per page (100 by default).
Rules and activity
/ruleslists every rule, most recently edited first./rules/{rule_id}/runsshows what each recent run looked at and changed. Tests are not listed./activitylists every operation Gloriads ran on Amazon: a campaign created or copied, products added, a rule's changes, an undo. A rule's run appears once per marketplace, with the samerule_run_id.tool=rulekeeps only the rules'.
How fresh the figures are
- They are your dashboard's figures, read from the same data with the same code.
- Performance amounts are in USD. Amazon converts each marketplace's figures.
- Amazon credits sales several days after the click, so the last days of a
period still grow for a while.
meta.data_last_datesays up to which day the figures go. - Campaigns are read from Amazon at most every 30 minutes per marketplace.
meta.synced_atsays when. On the very first call for a marketplace the list may be empty withmeta.syncing: true: call again a minute later. - Product figures refresh once a day. A period that starts before the history
Gloriads holds returns
meta.history_covered: false.