API reference
Appendix API
Free account and reference endpoints: balance, usage, keys, marketplaces, status.
Free endpoints for your account and for reference data: balance and rates, usage statistics, API keys, marketplaces, service status and the table of status codes.
Endpoints
- GETuser_dataAccount dataBalance, limits, rates, usage today and this month, and active API keys.Free
- GETusageUsage statisticsRequests, tasks and cost per day and per endpoint for a date range.Free
- GETmarketplacesMarketplacesThe 12 supported Amazon marketplaces with domain, currency and language.Free
- GETstatusService statusAvailability, success rate, task time and queue depth per marketplace.Free
- GETerrorsStatus codesThe table of status codes and messages used in responses.Free
- POSTkeysCreate an API keyIssue a new API key for your account. The full key is shown once.Free
- DELETEkeys/{key_id}Revoke an API keyRevoke a key immediately. Requests made with it fail with 40101.Free
Account object
Your account, balance, limits, rates, usage, active keys and webhook secret.
loginAPI login.
emailAccount e-mail.
nameContact name.
companyCompany name.
planPlan name.
billing_modeprepaid for accounts billed from a prepaid balance.
balancePrepaid balance in USD.
currencyBalance currency, always USD.
rate_limitsYour limits: requests_per_minute, tasks_per_request, tasks_per_minute.
ratesThe rates that apply to your account: key, price (USD), currency, unit, endpoint, description. Keys are the API's price keys, for example amazon.product.live.
usageTotals for today and this_month (UTC), each with requests, tasks and cost.
keysActive API keys: id, prefix, last4, label, created_at, last_used_at, revoked_at. Full keys are never returned again.
webhook_secretSecret used to sign postbacks and pingbacks. See Webhooks.
created_atWhen the account was created, ISO 8601 in UTC.
Usage object
Usage between two dates, inclusive, in UTC.
date_fromFirst day of the period.
date_toLast day of the period.
daysOne row per day of the period, oldest first, including days without usage: date, requests, tasks, cost.
endpointsTotals per endpoint for the period, most expensive first: endpoint (for example amazon/product/task_post), requests, tasks, cost.
totalsTotals for the period: requests, tasks, cost.
Marketplace object
A supported Amazon marketplace.
codeCode used in requests.
domainAmazon domain.
nameCountry name.
country_codeISO 3166-1 alpha-2 country code.
currencyISO 4217 currency of prices on this marketplace.
languageISO 639-1 code of the main storefront language.
language_nameName of that language.
aliasesOther codes accepted on input.
Marketplace status
Health of one marketplace over the last 24 hours. Aggregated over all traffic; contains no data of other clients. Values are null when there is not enough recent data.
marketplaceMarketplace code.
domainAmazon domain.
availableWhether product pages of this marketplace are being read successfully; null when there is not enough recent data.
statusoperational (success rate at least 90%), degraded (at least 50%), unavailable or unknown.
success_rate_24hShare of successful product reads in the last 24 hours, from 0 to 1.
fetches_24hNumber of product page reads in the last 24 hours.
median_task_minutes_24hMedian time from task_post to completion in the last 24 hours, in minutes.
queue_depthCollection jobs currently waiting for this marketplace.
Status code
One row of the status code table.
status_codeStatus code.
status_messageStatus message.
http_statusHTTP status when the code is returned for the request as a whole.
descriptionWhen the code is returned.
New API key
The only response that contains the full key. Store it securely right away.
idKey id. Use it to revoke the key.
keyFull API key: sd_live_ followed by 40 URL-safe characters. Shown once.
prefixFirst 12 characters, for display.
last4Last 4 characters, for display.
labelYour label.
created_atCreation time, ISO 8601 in UTC.
last_used_atAlways null for a new key.
revoked_atAlways null for a new key.
Revoked API key
The key after revocation.
idKey id.
prefixFirst 12 characters of the key.
last4Last 4 characters of the key.
labelYour label.
created_atCreation time, ISO 8601 in UTC.
last_used_atLast successful authentication with the key.
revoked_atRevocation time, ISO 8601 in UTC.