API & AI assistants/What the API reads

What the API reads

Every endpoint of the Gloriads API — performance and comparisons, products, placements and spend off Amazon, impression share, every target's figures, search terms and n-grams, hours, Streaming TV, campaigns, keywords and ads, labels, templates, budgets and invoices, the Library, rules, strategies, Dayparting, activity, notifications and client reports — 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

EndpointWhat it returns
GET /api/v1/accountYour subscription, whether Amazon Ads is connected, and up to which day the figures go. Call it first.
GET /api/v1/marketplacesYour connected marketplaces, with their currency, advertiser, target ACOS and how many campaigns, ad groups and ads each runs.
GET /api/v1/summaryThe totals of a period: the dashboard's cards, per marketplace and per ad type too.
GET /api/v1/timelineThe same figures day by day or month by month: the dashboard's chart.
GET /api/v1/reports/productsEach advertised product's figures over a period: the Products page.
GET /api/v1/reports/placementsEach ad type's figures by placement, and the Sponsored Products spend off Amazon per marketplace.
GET /api/v1/reports/impression-shareEach search's impression share and your rank on it, or each campaign's top-of-search impression share.
GET /api/v1/reports/targetsEvery keyword and target of one marketplace with its bid and its figures over 7, 14 or 30 days: the Targets page.
GET /api/v1/reports/search-termsWhat shoppers searched, per search or per n-gram, over 30 days to 6 years: the Search terms page.
GET /api/v1/reports/hourlyThe figures of each weekday and hour over a period: the Dayparting heat map.
GET /api/v1/reports/budget-insightsEach campaign's time in budget last week, the sales Amazon estimates it missed, and Amazon's recommended budget.
GET /api/v1/reports/attributionWhat your ads and links outside Amazon sold on it (Amazon Attribution): totals, campaigns with ROAS, links and products.
GET /api/v1/reports/streaming-tvOne marketplace's Streaming TV campaigns and their figures.
GET /api/v1/reports/shopper-journeysOne marketplace's shopper journeys from Amazon Marketing Cloud, as last computed.
GET /api/v1/campaignsOne marketplace's campaigns, with budget, targeting and state.
GET /api/v1/ad-groupsOne marketplace's ad groups, with their default bid.
GET /api/v1/targetsOne campaign's keywords and other targets, with match type and bid.
GET /api/v1/adsOne campaign's ads: the products it advertises.
GET /api/v1/labelsYour labels, the target ACOS each sets, and their campaigns.
GET /api/v1/campaign-templatesYour campaign templates and template groups.
GET /api/v1/campaign-templates/{template_id}One template in full: its campaigns, keywords, bids and negatives.
GET /api/v1/productsWhat you set on your products: campaign roles, « Keep clean », margin, phase, unit costs.
GET /api/v1/amc/audiencesYour Amazon Marketing Cloud audiences and their sizes, per marketplace.
GET /api/v1/budgetsEach marketplace's monthly budget, this month's spend and its pace.
GET /api/v1/invoicesAmazon's invoices of each marketplace, checked against the reports.
GET /api/v1/library/listsYour Library's keyword and ASIN lists, and their folders.
GET /api/v1/library/lists/{list_id}One list with every entry.
GET /api/v1/library/never-negateEach advertiser's never-negate words and ASINs.
GET /api/v1/rulesYour rules: on or off, where they act, their schedule, their last run.
GET /api/v1/rules/settingsThe settings every rule follows.
GET /api/v1/rules/{rule_id}One rule and what it does: its conditions and actions.
GET /api/v1/rules/{rule_id}/runsOne rule's last 20 runs.
GET /api/v1/strategiesYour strategies and their rules.
GET /api/v1/rule-templatesGloriads' ready-made rule templates and the ones you saved.
GET /api/v1/dayparting/schedulesYour Dayparting schedules: their week of 7 × 24 hours and their campaigns.
GET /api/v1/activityEverything Gloriads did on Amazon, newest first.
GET /api/v1/activity/{operation_id}One operation.
GET /api/v1/activity/{operation_id}/linesWhat one operation created, changed or archived, line by line.
GET /api/v1/notificationsYour latest notifications, newest first.
GET /api/v1/client-reportsThe reports you send your clients.

Every parameter and every field is in the API reference, with a Try it button.

Periods

/summary, /timeline, /reports/products and /reports/placements cover a period. Send one of:

ParameterExampleMeaning
rangelast_30_daystoday, 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_date2026-09-01 and 2026-09-30Two days, both included, at most six years apart
  • Nothing sent: last_30_days, like the dashboard.
  • A range covers the same days as the dashboard's period, today included: last_30_days is the 30 days ending today, and this_month and this_year run through today. Today is not over, and Amazon credits a sale to its click days later, so the latest days can still grow.
  • all_time starts at the oldest day Gloriads holds and goes through today, like Lifetime on the dashboard.
  • To leave today out, send start_date and end_date with end_date = yesterday.
  • timezone (Europe/Paris, America/New_York…) decides which day "today" is. UTC by default.
  • Every answer repeats the days it covers in period.

Compare two periods

Add compare to /summary, /timeline, /reports/products or /reports/placements, like Compare to on the dashboard:

compareCompared to
previous_periodThe same number of days just before. This month so far is compared with the same days of last month, and last month with the month before.
same_period_last_yearThe same dates one year earlier.

The answer adds a comparison with the compared period's figures and, for spend, sales, ACOS, impressions, clicks, CPC and purchases, how each changed:

"changes": {
  "spend": { "kind": "change", "percent": 18.2, "direction": "up", "tone": "neutral" },
  "acos": { "kind": "change", "percent": -6.5, "direction": "down", "tone": "good" }
}
  • Both periods are compared as asked, today included, like on the dashboard; period repeats the days.
  • kind: "new" means the figure was zero before; kind: "none" means there is nothing to compare (ACOS without sales).
  • tone says whether it is good news, like the dashboard's colors. Spend is always neutral.
  • all_time has nothing before it: comparison then says why in unavailable. today is compared with yesterday, or with the same date last year.
  • When Gloriads holds no history for the compared period, its figures are null and history_covered is false.

Filters

ParameterExampleKeeps
marketplacesUS,UKThese countries only (GB works too)
ad_productsSPONSORED_PRODUCTSSPONSORED_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, ctr and conversion_rate are percentages: 28.22 means 28.22 %.
  • purchases counts orders, like the console's Purchases, not units.
  • A ratio without its base (ACOS with no sale) is null, never 0.

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=day is 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: null gathers what Amazon ties to no product, mostly Sponsored Brands.
  • title is the product's name as Amazon's product report gives it, on the marketplace where it spent the most in the period. It is null for product_id: null, and until Gloriads has received the account's product titles from Amazon.
  • The rows come in pages: see Limits and errors.

By placement and off Amazon

/reports/placements returns the figures of the dashboard's Performance by placement and Spend off Amazon cards, in your account's currency (currency):

  • data: one row per ad type and placement: top_of_search, rest_of_search, product_pages, off_amazon (Sponsored Products only) and other.
  • off_amazon.marketplaces: what Sponsored Products spent and sold off Amazon in each marketplace (other sites, apps and creators' content), with its share of the marketplace's Sponsored Products spend.
  • It takes marketplaces and compare, not ad_products.
  • Gloriads reads these figures from Amazon's placement report once a day, while the dashboard, the Campaigns page or the Reach on and off Amazon tool shows them. meta.data_first_date says the first day held; it is null until the first report.
curl "https://gloriads.com/api/v1/reports/placements?range=last_30_days" \
  -H "Authorization: Bearer $GLORIADS_API_KEY"

Impression share

/reports/impression-share returns the shares the Search terms page, the Campaigns page and the dashboard's Brand search share card show. Sponsored Products and Sponsored Brands only: Amazon gives no share for Display.

levelOne row perFields
searches (default)Search, marketplace and ad typeimpression_share (your share of the ad impressions, in %), impression_rank (1 = you get the most impressions), impressions, clicks, is_brand_search
campaignsCampaigntop_of_search_impression_share: your share of the impressions at the top of the first page of results, in %
  • Amazon gives a share over a whole period, never day by day. So instead of range, send a window: last_30_days (default), previous_30_days (the 30 days before), last_90_days, last_365_days or all_time (the last 6 years). All end yesterday. Campaigns: last_30_days and previous_30_days only.
  • To see a drop, read last_30_days, then previous_30_days.
  • is_brand_search: the search holds a term of your never-negate keyword list, like the card. brand_only=true keeps only those.
  • contains=water bottle keeps the searches containing that text.
  • marketplace: null: Amazon gave the search on several marketplaces without saying which. Its shares are then in marketplace_values, one per marketplace.
  • Gloriads asks Amazon again when the shares are over a day old. The first call for a window may answer "status": "preparing": call again after meta.retry_after_seconds.
curl "https://gloriads.com/api/v1/reports/impression-share?brand_only=true&sort=impression_share&order=asc" \
  -H "Authorization: Bearer $GLORIADS_API_KEY"

Every target's figures

/reports/targets returns the Targets page: every enabled and paused keyword, product target, category, automatic group and Display audience of one marketplace (marketplace_id), with its campaign and ad group, its bid, its ad group's default_bid and the effective_bid, and its figures over the last days (7, 14 or 30, the default).

curl "https://gloriads.com/api/v1/reports/targets?marketplace_id=3478512345678901&match_families=exact&without_sales=true&min_clicks=10" \
  -H "Authorization: Bearer $GLORIADS_API_KEY"
  • Filters: ad_products, states, match_families (broad, phrase, exact, asin, asinExpanded, category, closeMatch, looseMatch, substitutes, complements, theme, audience), campaign_ids, ad_group_id, contains, min_clicks, without_sales.
  • sort: spend (default), sales, acos, roas, orders, clicks, cpc, impressions, ctr, cvr or bid.
  • Bids are in the marketplace's currency, figures in your account's (meta.currency).
  • A target that spent nothing has zeros. meta.figures_status: "waiting": the account's first daily target report is on its way, up to a day; figures is then null.

Search terms and n-grams

/reports/search-terms returns the Search terms page of one marketplace: what shoppers typed before your Sponsored Products and Sponsored Brands ads showed, over days = 30 (default), 90, 365 or 2190 (all time, 6 years).

group_byOne row perAlso
search_term (default)Searchis_exact_keyword, campaign_count, and places: every ad group that served it
ngramWord, or run of 2 or 3 wordswords (its size) and search_count
  • without_sales=true with min_clicks=10 finds the words that cost without selling. words=1 keeps single words.
  • Amounts are in the marketplace's own currency, like on the page.
  • meta.status: "preparing": Amazon prepares the period's report (a few minutes, up to an hour for 6 years). Call again later.

Hour by hour

/reports/hourly returns the week of the dashboard's Performance by hour card and the Dayparting page's heat map: 168 cells (hours), Monday 0:00 first, each summing that weekday and hour over the period, on each marketplace's own clock, and their total.

  • It takes range or start_date + end_date (the last 30 days by default).
  • marketplace_id keeps one marketplace; with it, campaign_ids keeps some of its campaigns (200 at most one by one; past that, their marketplace's hours).
  • Gloriads keeps the hours one year. meta.status: "waiting": the first hourly report is on its way, up to a day.

Sales missed for lack of budget

/reports/budget-insights returns the Campaigns page's three budget columns, one row per active Sponsored Products and Sponsored Brands campaign.

FieldWhat it means
statusran_out (it ran out of budget last week), in_budget, no_recent_week (Amazon's latest week is older: no figures), not_enough_data, no_estimate
time_in_budgetThe share of last week it stayed on, in %
missed_sales_low, missed_sales_highThe sales Amazon estimates it missed, in the row's currency
recommended_budgetThe daily budget Amazon recommends (it can be lower than daily_budget)
  • ran_out_only=true keeps the campaigns that ran out. totals adds up their missed sales per currency.
  • sort: missed_sales (default, the low estimate), time_in_budget or recommended_budget.
  • Gloriads reads Amazon once a day. The first call may answer "status": "not_read": call again in a few minutes.
curl "https://gloriads.com/api/v1/reports/budget-insights?ran_out_only=true" \
  -H "Authorization: Bearer $GLORIADS_API_KEY"

Sales from outside Amazon

/reports/attribution returns the Amazon Attribution page's figures over a period (range or start_date + end_date, at most 13 months: what Amazon keeps), in your account's currency.

FieldWhat it means
totalsClicks, product page views, orders, units, sales, conversion, new-to-brand, brand halo, KENP pages, the Brand Referral Bonus Amazon estimates, and the spend you typed with its ROAS and cost per order
campaignsOne row per campaign, the same figures
linksOne row per link (campaign, ad group, creative, publisher), 500 at most
productsOne row per product the links sold, 500 at most
  • spend, roas and cost_per_order are null when no spend is typed.
  • These sales are already in your Amazon sales: never add them to the other reports.
  • meta.any_figures_kept is false while no tagged link was clicked.
curl "https://gloriads.com/api/v1/reports/attribution?range=last_30_days" \
  -H "Authorization: Bearer $GLORIADS_API_KEY"

Streaming TV

The other reports leave Streaming TV (TV ads on Prime Video and streaming apps) out, like the dashboard. /reports/streaming-tv reads it from the Amazon report your rules share, for one marketplace.

curl "https://gloriads.com/api/v1/reports/streaming-tv?marketplace_id=3478512345678901&range=last_30_days" \
  -H "Authorization: Bearer YOUR_API_KEY"
  • A period of 365 days at most, within the last 6 years.
  • The first call for a period may answer "status": "pending" while Amazon makes the report, usually a few minutes. Call again after meta.retry_after_seconds. The report is then kept 3 hours.
  • Each campaign comes with its spend, impressions, cpm (cost per 1,000 impressions), clicks, sales, purchases and units_sold.
  • Amounts are in the marketplace's own currency, not in USD.
  • "status": "unavailable": Amazon does not offer Streaming TV to this account, for example a KDP author's.

Shopper journeys

/reports/shopper-journeys gives what the Shopper journeys page last computed for one marketplace: the path to purchase, the time to purchase, the keywords that open journeys and the new customers.

curl "https://gloriads.com/api/v1/reports/shopper-journeys?marketplace_id=3478512345678901&days=90" \
  -H "Authorization: Bearer YOUR_API_KEY"
  • days: 30, 90 (the default) or 365.
  • It never starts an analysis at Amazon: "status": "computing" means some were never computed for that period (opening the page computes them), "not_open" that Amazon Marketing Cloud was never opened for that marketplace.
  • Shares go from 0 to 1. Amounts are in the marketplace's own currency.
  • Amazon's results are confidential: keep them between you, your clients and the services that work for you.

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_code in /marketplaces).
  • provenance says whether Gloriads created the campaign, changed it, or never touched it.
  • labels lists the names of your labels on a campaign.
  • goal gives the target ACOS a campaign or an ad group aims at today (target_acos, in percent) and where it comes from (source: ad_group, campaign, label with its label name, or marketplace), in the order of Campaign goals; null when no target is set.
  • /ad-groups?campaign_id=… keeps one campaign's ad groups.
  • Up to 1,000 rows per page (100 by default).

Keywords, targets and ads

/targets and /ads list what is inside one campaign. Both need marketplace_id and campaign_id; ad_group_id keeps one of its ad groups.

curl "https://gloriads.com/api/v1/targets?marketplace_id=3478512345678901&campaign_id=28430987654321" \
  -H "Authorization: Bearer YOUR_API_KEY"
  • /targets lists each keyword with its match_type (EXACT, PHRASE, BROAD), the product targets (ASINs), categories, auto-targeting groups and negatives, with their bid and state. bid: null means it bids the ad group's default bid.
  • /ads lists each ad with the products it advertises (product_ids).
  • They are read from Amazon at the moment you ask, and carry no figures.
  • Sponsored Products, Sponsored Brands and Display. Archived ones are never listed.
  • Up to 1,000 rows per page (100 by default).

Labels, templates and products

  • /labels lists your labels: the target ACOS each sets (target_acos, with target_start_date and target_end_date when it is dated) and the campaign_ids carrying it, per marketplace. Each marketplace's own target ACOS is target_acos in /marketplaces.
  • /campaign-templates lists your campaign templates and template groups; /campaign-templates/{template_id} gives one in full: a Sponsored Products template's campaigns (names, budget, bid strategy, placements, keywords and targets with their bids, negatives), or a Brands, Display or Streaming TV template's settings.
  • /products lists what you told Gloriads about each product: the role of each of its campaigns, Keep the structure clean, and its margin, phase, stock, label and unit costs. Each product's figures are in /reports/products.
  • /amc/audiences lists, per marketplace, its Amazon Marketing Cloud workspace, the size of each audience Gloriads can build and the audiences created, with the audience_id a campaign takes. It never opens a workspace nor starts a count.
  • Lists, labels and templates belong to one advertiser: advertiser_id (from /marketplaces) keeps one advertiser's.

Budgets and invoices

  • /budgets returns the Budgets page: each marketplace's monthly budget, what it spent this month in its own currency, its pace (expected so far, projected end of month, status under, on_track, over or reached), and whether Gloriads pauses it at the cap. totals adds up the budgets per currency.
  • /invoices returns Amazon's invoices of each marketplace over the last 14 months (billed, digital_services_tax, vat, credits, true_cost) and the check of the reports against those of the last 90 days. meta.status: "reading": Gloriads is reading them from Amazon, call again in a few minutes.

The Library

  • /library/lists lists your Library's keyword and ASIN lists and their folders; kind=keywords or kind=asins keeps one kind.
  • /library/lists/{list_id} gives one list with every entry.
  • /library/never-negate gives each advertiser's never-negate words and ASINs: what Gloriads never sends as a negative.

Rules and activity

  • /rules lists every rule, most recently edited first; /rules/{rule_id} gives one, with the objects it leaves alone for good.

  • /rules/settings gives the settings every rule follows: who wins when two rules disagree, the last day of figures they read, how long new campaigns are left alone.

  • /strategies lists your strategies and their rules; /rule-templates lists Gloriads' ready-made rule templates (source=gloriads) and the ones you saved (source=account).

  • /dayparting/schedules lists your Dayparting schedules: their week of 7 × 24 hours (100 = normal, 0 = paused, 10 to 900 = every bid at that percentage), their campaigns, whether they are on and when they change next.

  • /rules/{rule_id}/runs shows what each recent run looked at and changed. Tests are not listed.

  • /activity lists 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 same rule_run_id. A change of more than 5,000 lines (a big copy, a bulk edit, a dayparting change…) appears as its parts of up to 5,000 lines: each later part names the first in part_of, and Activity shows them as one line. tool=rule keeps only the rules'.

  • /activity/{operation_id} reads one operation: poll it to follow one still running.

  • /activity/{operation_id}/lines lists what the operation did, line by line: the campaign, ad group, ad or target, whether it was created, changed or archived, each value before and after, and Amazon's error when a line failed. Up to 500 lines per page (100 by default): one operation can hold 5,000. A Dayparting change holds one line per campaign, its bids counted in bids (how many, and from which percentage to which); a bid Amazon refused is a line of its own. Its lines are kept 30 days.

What a rule does

/rules/{rule_id} gives the rule's logic: what it does, in a format of the API that changes only by adding. /rules?include_logic=true adds it to every rule, and each /rule-templates entry carries one too.

"logic": {
  "format": 1,
  "level": "target",
  "branches": [
    {
      "formula": "clicks (last 30 days) >= 20 AND orders (last 30 days) = 0",
      "if": { "items": [ … ], "connectors": ["and"] },
      "then": [{ "type": "set_state", "state": "PAUSED" }]
    }
  ],
  "else": [],
  "scope": { … },
  "schedule": { "every": 1, "unit": "days", "time": "07:00", … },
  "options": { "cooldown_hours": 72, … }
}
  • branches are the IF, then each ELSE IF, in order: an object takes the first branch it matches. else is what the others get.
  • formula reads the IF in one line. if holds it in detail: items (a condition, or a group in brackets), each can be negated (negate), joined by connectors. AND binds tighter than OR: A AND B OR C reads (A AND B) OR C.
  • A condition compares a metric over a period (last_days, days_before, same_days_last_year, dates, lifetime), or reads an attribute (text, choice, flag). It compares with a number, an amount per currency, another value times a factor, or the target_acos times a factor.
  • An action has a type: set_state, set_bid, change_bid, set_budget, change_budget, set_bid_strategy, set_placement, change_placement, add_keyword, add_negative_keyword, add_product_target, add_negative_product, notify, set_bid_from_target_acos, step_bid_to_target_acos, set_budget_from_spend, raise_budget_to_amazon_recommendation, set_off_amazon_reach, pause_product_campaign, change_product_bids, rename. Amounts go per currency ({ "USD": 0.5 }).
  • New metrics, attributes and action types can appear: skip what you do not know.

Notifications and client reports

  • /notifications lists your latest notifications, newest first, each with its category (ads, rules, budgets, products) and severity. unread_only=true keeps the unread ones. Reading them here never marks them read.
  • /client-reports lists the reports you send your clients: period, blocks, schedule and the newest edition. Never the recipients' addresses nor the private links.

How fresh the figures are

  • They are your dashboard's figures, read from the same data with the same code.
  • Performance amounts are in your account's currency (the currency field), each day converted at its own exchange rate.
  • Amazon credits sales several days after the click, so the last days of a period still grow for a while. meta.data_last_date says up to which day the figures go.
  • Campaigns are read from Amazon at most every 30 minutes per marketplace. meta.synced_at says when. On the very first call for a marketplace the list may be empty with meta.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.
  • Keywords, targets and ads are read live from Amazon, at each call: meta.read_at says when.
  • Streaming TV figures are kept 3 hours after Amazon makes their report: meta.report_ready_at says when.