{
  "openapi": "3.1.0",
  "info": {
    "title": "Datarova User API",
    "version": "v0",
    "description": "Use the Datarova User API to access your Datarova data programmatically with an API key. This reference documents every published endpoint; pick one from the sidebar.\n\n- API base URL: `https://api.datarova.com/v0`\n- OpenAPI document: [/openapi.json](/openapi.json)\n\nSend your API key on every request in the `Authorization` header as `Bearer <api_key>`. Generate a key in [Datarova Connections](https://app.datarova.com/settings/connections).\n\nNew to the API? Start with the [Introduction](/introduction), [Authentication](/authentication) and [Quick start](/quick-start) guides. [Pagination, rate limits and errors](/pagination-rate-limits-errors) covers the rules every endpoint shares, and [Projects and labels](/projects-and-labels) explains managing projects, ASINs, keywords and labels.\n"
  },
  "servers": [
    {
      "url": "https://api.datarova.com"
    }
  ],
  "security": [
    {
      "bearerAuth": []
    }
  ],
  "tags": [
    {
      "name": "Project notes",
      "description": "Read and manage the ASIN annotations in a marketplace project."
    },
    {
      "name": "Exports",
      "description": "Files of the data already in your projects. Asynchronous exports of your project data as complete gzip files. Request one with `POST /v0/exports`, poll `GET /v0/exports/{exportId}` until its `state` is `ready`, then fetch a temporary download link. Every file is kept for 30 days.\n\n`export_type` chooses what the file contains and which `parameters` apply. Each type below lists its required parameters, optional parameters, output columns, eligibility and charging. Parameters that do not belong to the chosen type are rejected.\n\n## Filter parameters\n\nTypes that read from your projects accept these optional filter parameters directly inside `parameters`. Omit all of them to cover every project you own in supported marketplaces when each generation attempt discovers projects, including projects added after acceptance. Each type lists which filters it supports:\n\n| Parameter | Description |\n| --- | --- |\n| `project_ids` | Marketplace project IDs from `GET /v0/projects`. |\n| `marketplaces` | Marketplace codes. Listing every supported marketplace is the same as omitting the field. |\n| `project_label_ids` | Only projects carrying one of these project labels. |\n| `asin_label_ids` | Only ASINs carrying one of these item labels. |\n| `keyword_label_ids` | Only keywords carrying one of these item labels. |\n\nFilters combine with AND; values within one filter combine with OR. Each supplied array needs at least one value; `null` and `[]` are invalid. Duplicate values are ignored. Each attempt discovers matching projects once, then reads each project's current name and selected attachments when processing it. Rankings use the same current project membership and variation settings as Google Sheets and report downloads. Keywords removed before a later ranking read are omitted from that read; already generated rows remain unchanged. Retries read fresh inputs. Projects created concurrently have no exact inclusion guarantee. Deleted projects or labels contribute no remaining matches without broadening the original filters. Remaining matches are exported, or an empty file succeeds.\n\n## Export types\n\n### `ranks_by_asin.1`\n\nDaily keyword ranks for the selected ASINs over an inclusive date range. One record per tracked day, marketplace project, selected ASIN and keyword.\n\n**Required parameters**\n\n| Parameter | Description |\n| --- | --- |\n| `start_date` | First day of the range as `YYYY-MM-DD` in America/Los_Angeles. |\n| `end_date` | Last day of the range, inclusive. The range must cover 1 to 31 days and end no later than today in America/Los_Angeles; a future `start_date` or `end_date` returns `400 future_dates_not_allowed`. Yesterday can be requested from Los Angeles midnight, and today at any time. Today's records are a snapshot taken when the file is generated. Historical ranges are accepted even when no ranking data exists for them. |\n\n**Optional parameters**\n\n| Parameter | Default | Description |\n| --- | --- | --- |\n| `format` | `json` | Output format: `json`, `jsonl` or `csv`. |\n| `primary_asin_only` | `true` | Export only each project's primary ASIN. Set `false` to include every attached ASIN in the selected projects. With `true`, a project whose primary ASIN does not match `asin_label_ids` is left out rather than replaced. |\n| `project_ids`, `marketplaces`, `project_label_ids`, `asin_label_ids`, `keyword_label_ids` | none | All five filter parameters are supported. |\n\n**Output columns**, in CSV order\n\n| Column | Type | Description |\n| --- | --- | --- |\n| `date` | date | Tracking day in America/Los_Angeles. On today's date, ranks are provisional: a keyword not yet checked today can show yesterday's latest observation, unmarked. |\n| `project_id` | integer | Marketplace project ID. |\n| `project_name` | string | Project name when that project is read during the successful attempt. |\n| `marketplace` | string | Marketplace code such as `US`. |\n| `asin` | string | The selected ASIN. |\n| `keyword` | string | The tracked keyword. |\n| `organic_rank` | integer or null | Organic search position, or null when no rank was observed that day. |\n| `sponsored_rank` | integer or null | Sponsored position, or null when no rank was observed that day. |\n| `choice_badge` | boolean or null | Whether the Amazon's Choice badge was shown. Null when no rank was observed. |\n| `ranked_asin` | string or null | The ASIN that held the rank. It can be a variation of `asin` when variations are tracked. Null when no rank was observed. |\n\nDays before tracking began are omitted. Tracked days without an observation are included with null ranks and count as records toward the export's credit cost.\n\n**Eligibility and charging**\n\nRequires current User API and general plan eligibility. All supported marketplaces, including AU, are available without a separate export marketplace entitlement. An export costs 1 credit per 100 records, rounded up, with a minimum of 1 credit, so an empty export costs 1 credit. Its estimated credits are held from your credit balance when it is accepted; a request the balance cannot cover is refused with `402 insufficient_credits`. When it completes, the credits for its actual `result.row_count` are charged once, to the allowance cycle current at acceptance, and the hold is released. Check `credits.balance` on `GET /v0/usage` before large requests.\n\n**Record limits**\n\nBefore retrieving rankings or generating a file, each attempt estimates records by multiplying selected ASINs by selected keywords by inclusive requested days for each marketplace project, then summing those project totals. All project, marketplace, label and primary-ASIN filters apply. The estimate ignores historical tracking periods and missing observations, so it can reject a request whose actual file would be smaller or empty.\n\nThe maximum is 1,000,000 records per export. An estimate above that limit fails with `export_record_limit_exceeded`; equality passes. These rules are identical for JSON, JSONL and CSV; a CSV header is not a record.\n\nThis check runs after `202 Accepted`. Polling returns `state: failed`, a `failure_code` and `failure_message`, and `result: null`. A failed export generates no file, costs nothing and releases its held credits. Reduce the selected projects, ASINs, keywords or dates and submit a new request. Limit failures are terminal. Generation also enforces the limit if project contents change after the estimate. If they grow so much that the complete file costs more than its held credits and the rest of your credit balance, it fails with `insufficient_credits`.\n\n\n### `project_keywords.1`\n\nThe keyword metrics shown on each project's Keywords tab, for every selected keyword attachment. One record per marketplace project and keyword attachment: a keyword attached to two projects appears once for each, with that project's values. Each attempt reads your projects' current keywords; there is no date range.\n\n**Required parameters**\n\nNone. `{}` exports every keyword attachment in your projects.\n\n**Optional parameters**\n\n| Parameter | Default | Description |\n| --- | --- | --- |\n| `format` | `json` | Output format: `json`, `jsonl` or `csv`. |\n| `project_ids`, `marketplaces`, `project_label_ids`, `keyword_label_ids` | none | Filter parameters. `asin_label_ids` is not supported. |\n\n`start_date`, `end_date`, `asin_label_ids`, `primary_asin_only` and any other key return `400 invalid_export_parameters`. Ranking export date rules, including the 31-day range limit, do not apply.\n\n**Output fields**, in JSON and CSV order\n\nAfter the three project fields, each field has the name and meaning of the matching `ProjectKeyword` field in `GET /v0/projects/{projectId}/keywords`. For the same project on the same day the values agree with that endpoint. `tracked_from` is not exported.\n\nThe metrics cover the account plan's metrics window, as in `GET /v0/projects/{projectId}/keywords`: the latest four loaded weeks, or the latest loaded month on plans without weekly data. The plan when the export is accepted decides it, and `metrics_window` on the export names it. The columns are the same either way, so descriptions below that say four weeks mean the latest month for a `latest_month` export.\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `project_id` | integer | Marketplace project ID. |\n| `project_name` | string | Project name when that project is read during the successful attempt. |\n| `marketplace` | string | Marketplace code such as `US`. |\n| `keyword` | string | The keyword. |\n| `keyword_clicks_l4w` | number | Clicks from searches for the keyword over the marketplace's latest four completed weeks. |\n| `keyword_sales_l4w` | number | Sales from those searches over the same four weeks. |\n| `keyword_conversion_l4w` | number | Sales as a percentage of clicks, 0 to 100, rounded to one decimal place. `0` when there are no clicks. |\n| `top_asin` | string | The ASIN with the most sales for the keyword. An empty string when the keyword has no search-term data. |\n| `top_asin_sales_l4w` | integer | The top ASIN's sales for the keyword. |\n| `top_asin_clicks_l4w` | integer | The top ASIN's clicks for the keyword. |\n| `top_asin_conversion_l4w` | number | The top ASIN's conversion, 0 to 100, rounded to one decimal place. `0` when there are no clicks. |\n| `trend_l4w` | number | Percentage change in `keyword_sales_l4w` against the previous four weeks, rounded to one decimal place. With no previous sales the change is measured against 1 sale. |\n| `sales_distribution` | number | The keyword's share of the four-week keyword sales of every keyword attachment in its marketplace project, as a percentage rounded to one decimal place. Export filters do not change it. `0` for a project with no keyword sales. |\n| `dstr` | integer | Daily Sales To Rank: the estimated daily sales needed to rank in the top 3. |\n| `organic_rank` | integer or null | The primary ASIN's organic position on the latest Los Angeles day: yesterday, or today for a project created today. `0` when the keyword was tracked but no rank was found, including days without a successful scrape. Null when the keyword was not tracked, is still being checked, or the project has no ASINs. |\n| `sponsored_rank` | integer or null | The primary ASIN's sponsored position on the same day, with the same `0` and null rules. Both ranks are null while a keyword is still being checked. |\n| `asins_in_top_10` | integer | How many of the project's ASINs rank in the organic top 10 for the keyword, at most 10. `0` for a project without ASINs. |\n| `labels` | array | The keyword attachment's item labels as `{label_id, label_name, color}`. In CSV, the label names separated by a comma and a space, such as `Core, Brand`. |\n\nA keyword without search-term data is exported with zero metrics and an empty `top_asin`. Records are ordered by `project_id`; within a project the order is not guaranteed.\n\nJSON example:\n\n```json\n[\n  {\n    \"project_id\": 123,\n    \"project_name\": \"Kitchen tools\",\n    \"marketplace\": \"US\",\n    \"keyword\": \"garlic press\",\n    \"keyword_clicks_l4w\": 1840,\n    \"keyword_sales_l4w\": 212,\n    \"keyword_conversion_l4w\": 11.5,\n    \"top_asin\": \"B000000001\",\n    \"top_asin_sales_l4w\": 64,\n    \"top_asin_clicks_l4w\": 410,\n    \"top_asin_conversion_l4w\": 15.6,\n    \"trend_l4w\": 8.2,\n    \"sales_distribution\": 31.4,\n    \"dstr\": 3,\n    \"organic_rank\": 7,\n    \"sponsored_rank\": 0,\n    \"asins_in_top_10\": 1,\n    \"labels\": [\n      {\n        \"label_id\": 12,\n        \"label_name\": \"Core\",\n        \"color\": \"green\"\n      },\n      {\n        \"label_id\": 14,\n        \"label_name\": \"Brand\",\n        \"color\": \"gray\"\n      }\n    ]\n  }\n]\n```\n\nThe same record in CSV:\n\n```csv\nproject_id,project_name,marketplace,keyword,keyword_clicks_l4w,keyword_sales_l4w,keyword_conversion_l4w,top_asin,top_asin_sales_l4w,top_asin_clicks_l4w,top_asin_conversion_l4w,trend_l4w,sales_distribution,dstr,organic_rank,sponsored_rank,asins_in_top_10,labels\n123,\"Kitchen tools\",\"US\",\"garlic press\",1840,212,11.5,\"B000000001\",64,410,15.6,8.2,31.4,3,7,0,1,\"Core, Brand\"\n```\n\nThe example values are illustrative.\n\n**Eligibility and charging**\n\nThe same eligibility and charging as `ranks_by_asin.1`: 1 credit per 100 records, rounded up, with a minimum of 1 credit, held from your credit balance at acceptance and charged for the actual `result.row_count` once when the export completes. A failed export costs nothing. The downloaded file is named `project-keywords-export.<format>.gz`.\n\n**Record limits**\n\nBefore reading keyword data, each attempt estimates one record per selected keyword attachment; acceptance holds credits for the same estimate. The 1,000,000-record limit and its error code are the same as for `ranks_by_asin.1`. Generation also enforces the limit if keywords are added after the estimate."
    },
    {
      "name": "Account",
      "description": "Account-level `/v0` endpoints, including usage and credit balance visibility."
    },
    {
      "name": "Keywords",
      "description": "Keyword and interval analytics endpoints under `/v0`."
    },
    {
      "name": "Project management",
      "description": "List, create, inspect, and delete marketplace projects in your account."
    },
    {
      "name": "Project ASINs",
      "description": "View the ASINs in a project, add ASINs, or remove them."
    },
    {
      "name": "Project keywords",
      "description": "View the keywords in a project, add keywords, or remove them."
    },
    {
      "name": "Rank history",
      "description": "Read daily keyword-rank history for an ASIN in a project."
    },
    {
      "name": "Project labels",
      "description": "Reusable labels for categorizing projects in your account. Creating a label does not assign it to a project. Deleting a label removes it from all projects that use it."
    },
    {
      "name": "Item labels",
      "description": "Reusable labels shared by ASINs and keywords in your account. Creating a label does not assign it to an ASIN or keyword. Deleting a label removes it from both wherever it is used."
    },
    {
      "name": "Live search",
      "description": "Real-time retrieval of Amazon search results pages. It is available to every account with User API access."
    },
    {
      "name": "Reports",
      "description": "Data generated on request for any ASIN or keyword. Request a report with `POST /v0/reports`, poll `GET /v0/reports/{reportId}` until its `state` is `ready`, then fetch a temporary download link. Every file is kept for 30 days.\n\n`report_type` chooses what the report contains and which `parameters` apply, whether or not you track the keyword or ASIN in a project. Each type is named after what it returns and what you pass: `keywords_for_keyword.1` returns the keywords related to one keyword, and `keywords_for_asin.1` returns the keywords one ASIN and its variations get sales from. Each type below lists its parameters, the file's fields and its charging. Parameters that do not belong to the chosen type are rejected.\n\nA report has the same fields and states as an export, with `report_type` in place of `export_type`, so the same polling code works for both. Reports and exports are separate: a report never appears in `GET /v0/exports`, an export never appears in `GET /v0/reports`, and an ID of one requested through the other's path returns `404`.\n\nEach accepted report holds its credit cost from your credit balance: 100 credits, plus 100 per period requested with per-period detail. The credits are charged when the report is ready and released if it finally fails. Reports and exports share the account's limit of five outstanding requests and are generated one at a time per account, in the order they were accepted.\n\n## Report types\n\n### `keywords_for_keyword.1`\n\nThe report covers the keyword and every keyword that contains it, as the app's default Keyword Spy search finds them, with each keyword's clicks, sales, conversion and top ASIN over the range.\n\n#### Parameters\n\n- `keyword`, `marketplace`, `start_date` and `end_date` are required; `interval` defaults to `monthly`, `include_periods` to `false` and `format` to `json`. Any other parameter, including `asin`, returns `400 invalid_report_parameters`.\n- `include_periods` must be `true` or `false`; any other value returns `400 invalid_include_periods`.\n- `format` must be `json`, `jsonl` or `csv`; any other value returns `400 invalid_format`.\n- `start_date` must start a period: the first day of a month, or the Sunday that starts a week. `end_date` is the last day the report covers.\n- The range covers at most 12 weeks or months; a 13th returns `400 invalid_date_range`. It must lie within your plan's research history and the latest loaded week or month; otherwise the request returns `400 unavailable_dates` with `error.earliest_date` and `error.latest_date`.\n- Each accepted request is a separate report, including an identical resubmission after a lost response. If a response is lost, check `GET /v0/reports` before requesting again.\n\n#### The file\n\nA ready report is one gzip-compressed file with one record per keyword, in the format you choose (see File formats below). Every field is present on every record, numbers are JSON numbers, and a missing value is `null`, never a formatted string or a placeholder number:\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `keyword` | string | The keyword. |\n| `clicks` | integer | Average clicks per week or month over the range, rounded to a whole number. `0` when the keyword has no data in the range. |\n| `sales` | integer | Average sales per week or month over the range, rounded to a whole number. `0` when the keyword has no data in the range. |\n| `conversion_rate` | number | Sales as a percentage of clicks, 0 to 100, rounded to one decimal place. `0` when the keyword has no data in the range. |\n| `top_asin` | string or null | The ASIN with the most sales for the keyword over the range. Null when there is none. |\n| `top_asin_clicks` | integer or null | The top ASIN's average clicks for the keyword in the weeks or months it was among the keyword's top three ASINs, rounded to a whole number. Null when `top_asin` is null. |\n| `top_asin_sales` | integer or null | The top ASIN's average sales for the keyword over the same weeks or months. Null when `top_asin` is null. |\n| `top_asin_conversion_rate` | number or null | The top ASIN's sales as a percentage of its clicks, rounded to one decimal place. `0` when it has sales but no clicks. Null when `top_asin` is null. |\n| `dstr` | integer or null | Daily Sales To Rank: the estimated daily sales needed to rank in the top 3, from the marketplace's latest four weeks of data whatever the requested range. Null when there is no value. |\n\nRecords are ordered by `clicks`, highest first, then by `keyword` A to Z, so the same request returns the same order. Every matching keyword is included. A report with no matching keywords is `ready` with a file that has no records.\n\n```json\n[\n  {\n    \"keyword\": \"yoga mat\",\n    \"clicks\": 18240,\n    \"sales\": 1532,\n    \"conversion_rate\": 8.4,\n    \"top_asin\": \"B000000001\",\n    \"top_asin_clicks\": 2210,\n    \"top_asin_sales\": 301,\n    \"top_asin_conversion_rate\": 13.6,\n    \"dstr\": 14\n  },\n  {\n    \"keyword\": \"yoga mat strap\",\n    \"clicks\": 0,\n    \"sales\": 0,\n    \"conversion_rate\": 0,\n    \"top_asin\": null,\n    \"top_asin_clicks\": null,\n    \"top_asin_sales\": null,\n    \"top_asin_conversion_rate\": null,\n    \"dstr\": null\n  }\n]\n```\n\nThe example values are illustrative.\n\n#### Per-period detail\n\nSet `include_periods` to `true` to add each keyword's week-by-week or month-by-month detail. Every record then keeps all the fields above and gains a `periods` array, oldest first, with one entry for each week or month in the range that has data for the keyword. A keyword with no data in the range has `\"periods\": []`. Without `include_periods`, or with `false`, records have no `periods` field.\n\nEach entry has exactly the shape of a period record from `GET /v0/keywords` requested with `include_asins=true`, and its values match the app's detailed CSV for the same keyword, marketplace and dates:\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `date` | string | Start date of the week or month, `YYYY-MM-DD`. |\n| `clicks` | number | The keyword's clicks in the period. |\n| `sales` | number | The keyword's sales in the period. |\n| `conversion_rate` | number | Sales as a percentage of clicks, rounded to one decimal place. `0` when `clicks` is `0`. |\n| `asin_1`, `asin_2`, `asin_3` | object | The keyword's top three clicked ASINs in the period, each with `asin`, `clicks`, `sales` and `conversion_rate` as above. Every field of a slot is `null` when the slot is empty. |\n\n```json\n\"periods\": [\n  {\n    \"date\": \"2026-08-01\",\n    \"clicks\": 18950,\n    \"sales\": 1610,\n    \"conversion_rate\": 8.5,\n    \"asin_1\": { \"asin\": \"B000000002\", \"clicks\": 2300, \"sales\": 310, \"conversion_rate\": 13.5 },\n    \"asin_2\": { \"asin\": \"B000000003\", \"clicks\": 1200, \"sales\": 98, \"conversion_rate\": 8.2 },\n    \"asin_3\": { \"asin\": null, \"clicks\": null, \"sales\": null, \"conversion_rate\": null }\n  }\n]\n```\n\n#### File formats\n\nSet `format` to choose the file format. Every format holds the same keywords with the same values in the same order, and a report costs the same in each.\n\n- `json` (the default): one array of records, `[]` when nothing matched.\n- `jsonl`: one record per line, each with the same fields as in JSON, including `periods` when requested. The file is empty when nothing matched.\n- `csv`: a header row with the API field names, then one row per keyword, or per keyword and period with periods. The header is not a record; a report with no matching keywords is the header alone. An empty cell stands for `null`. Numbers are plain numbers and dates are `YYYY-MM-DD`, never formatted strings such as percentages. Text cells are quoted, and a text value a spreadsheet could read as a formula, such as one starting with `=`, `+`, `-` or `@`, is written with a leading `'`.\n\nWithout periods the CSV columns are the requested marketplace followed by the record fields above: `marketplace`, `keyword`, `clicks`, `sales`, `conversion_rate`, `top_asin`, `top_asin_clicks`, `top_asin_sales`, `top_asin_conversion_rate`, `dstr`.\n\n```csv\nmarketplace,keyword,clicks,sales,conversion_rate,top_asin,top_asin_clicks,top_asin_sales,top_asin_conversion_rate,dstr\n\"US\",\"yoga mat\",18240,1532,8.4,\"B000000001\",2210,301,13.6,14\n\"US\",\"yoga mat strap\",0,0,0,,,,,\n```\n\nWith `include_periods: true` the CSV has one row per keyword and period, oldest period first within each keyword, in the same keyword order. Each row repeats the keyword's columns and adds the period's fields, with each top-ASIN slot flattened: `period_date`, `period_clicks`, `period_sales`, `period_conversion_rate`, `period_asin_1`, `period_asin_1_clicks`, `period_asin_1_sales`, `period_asin_1_conversion_rate`, `period_asin_2`, `period_asin_2_clicks`, `period_asin_2_sales`, `period_asin_2_conversion_rate`, `period_asin_3`, `period_asin_3_clicks`, `period_asin_3_sales`, `period_asin_3_conversion_rate`. A keyword with no period data has one row with empty period cells. `result.row_count` still counts keywords, not rows.\n\n```csv\nmarketplace,keyword,clicks,sales,conversion_rate,top_asin,top_asin_clicks,top_asin_sales,top_asin_conversion_rate,dstr,period_date,period_clicks,period_sales,period_conversion_rate,period_asin_1,period_asin_1_clicks,period_asin_1_sales,period_asin_1_conversion_rate,period_asin_2,period_asin_2_clicks,period_asin_2_sales,period_asin_2_conversion_rate,period_asin_3,period_asin_3_clicks,period_asin_3_sales,period_asin_3_conversion_rate\n\"US\",\"yoga mat\",18240,1532,8.4,\"B000000001\",2210,301,13.6,14,\"2026-08-01\",18950,1610,8.5,\"B000000002\",2300,310,13.5,\"B000000003\",1200,98,8.2,,,,\n\"US\",\"yoga mat strap\",0,0,0,,,,,,,,,,,,,,,,,,,,,\n```\n\n#### Charging\n\n- A report costs 100 credits, whatever its date range, plus 100 credits per period requested when `include_periods` is `true`: one month with per-period detail costs 200 credits, twelve months 1,300. The cost is held from your credit balance when the report is accepted. When the balance cannot cover it the request returns `402 insufficient_credits` and nothing is created.\n- The held credits are charged when the report is ready. Automatic retries, polling, listing and downloads cost nothing more. A report that finally fails costs nothing, and its held credits are released.\n\n### `keywords_for_asin.1`\n\nThe report covers the keywords the app's ASIN Insights search finds for the ASIN and its variations, with each keyword's clicks, sales, conversion and top ASIN over the range, and the ASIN's KPS, relevancy and ranks for it.\n\n#### Parameters\n\n- `asin`, `marketplace`, `start_date` and `end_date` are required; `interval` defaults to `monthly`, `include_periods` to `false` and `format` to `json`. Any other parameter, including `keyword`, returns `400 invalid_report_parameters`.\n- `asin` must be 10 letters and digits; anything else returns `400 invalid_asin` and creates nothing. Whether Amazon lists the ASIN in the marketplace is checked while the report is generated: if it does not, the report fails with `failure_code` `invalid_asin`.\n- The report always includes the ASIN's variations, as the app does. There is no option to exclude them.\n- `include_periods` must be `true` or `false`; any other value returns `400 invalid_include_periods`.\n- `format` must be `json`, `jsonl` or `csv`; any other value returns `400 invalid_format`.\n- `start_date` must start a period: the first day of a month, or the Sunday that starts a week. `end_date` is the last day the report covers.\n- The range covers at most 12 weeks or months; a 13th returns `400 invalid_date_range`. It must lie within your plan's research history and the latest loaded week or month; otherwise the request returns `400 unavailable_dates` with `error.earliest_date` and `error.latest_date`.\n- Each accepted request is a separate report, including an identical resubmission after a lost response. If a response is lost, check `GET /v0/reports` before requesting again.\n\n#### The file\n\nA ready report is one gzip-compressed file with one record per keyword, in the format you choose (see File formats below). Every field is present on every record, numbers are JSON numbers, and a missing value is `null`, never a formatted string or a placeholder number:\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `keyword` | string | The keyword. |\n| `clicks` | integer | Average clicks per week or month over the range, rounded down to a whole number. `0` when the keyword has no data in the range. |\n| `sales` | integer | Average sales per week or month over the range, rounded down to a whole number. `0` when the keyword has no data in the range. |\n| `conversion_rate` | number | Sales as a percentage of clicks, 0 to 100, rounded to one decimal place. `0` when the keyword has no data in the range. |\n| `top_asin` | string or null | The ASIN with the most sales for the keyword over the range. Null when there is none. |\n| `top_asin_clicks` | integer or null | The top ASIN's average clicks for the keyword in the weeks or months it was among the keyword's top three ASINs, rounded down to a whole number. Null when `top_asin` is null. |\n| `top_asin_sales` | integer or null | The top ASIN's average sales for the keyword over the same weeks or months. Null when `top_asin` is null. |\n| `top_asin_conversion_rate` | number or null | The top ASIN's sales as a percentage of its clicks, rounded to one decimal place. `0` when it has sales but no clicks. Null when `top_asin` is null. |\n| `dstr` | integer or null | Daily Sales To Rank: the estimated daily sales needed to rank in the top 3, from the marketplace's latest four weeks of data whatever the requested range. Null when there is no value. |\n| `kps` | integer or null | Keyword Performance Score, from 1 (best) to 5, combining `relevancy` with the keyword's sales over the marketplace's latest four weeks. Null when the keyword does not reach a score. |\n| `relevancy` | integer | How closely the keyword relates to the ASIN, from 0 to 100, based on the sales and ranks of the ASIN and similar products. `0` when there is none. |\n| `organic_rank` | integer or null | The best organic search position Datarova holds for the ASIN or one of its variations on the keyword, not limited to the requested range. Null when unknown. |\n| `sponsored_rank` | integer or null | The best sponsored search position Datarova holds for the ASIN or one of its variations on the keyword, not limited to the requested range. Null when unknown. |\n| `periods_in_top_3` | integer | The weeks or months in the range in which the ASIN or one of its variations was among the keyword's top three clicked ASINs. |\n\nRecords are ordered by `kps`, lowest first with keywords that have no KPS last, then by `relevancy`, highest first, then by `clicks`, highest first, then by `keyword` A to Z. This is the app's default order, so the same request returns the same order. Every matching keyword is included. A report for an ASIN with no matching keywords is `ready` with a file that has no records.\n\n```json\n[\n  {\n    \"keyword\": \"yoga mat\",\n    \"clicks\": 18240,\n    \"sales\": 1532,\n    \"conversion_rate\": 8.4,\n    \"top_asin\": \"B000000002\",\n    \"top_asin_clicks\": 2210,\n    \"top_asin_sales\": 301,\n    \"top_asin_conversion_rate\": 13.6,\n    \"dstr\": 14,\n    \"kps\": 1,\n    \"relevancy\": 92,\n    \"organic_rank\": 4,\n    \"sponsored_rank\": 2,\n    \"periods_in_top_3\": 3\n  },\n  {\n    \"keyword\": \"yoga mat strap\",\n    \"clicks\": 0,\n    \"sales\": 0,\n    \"conversion_rate\": 0,\n    \"top_asin\": null,\n    \"top_asin_clicks\": null,\n    \"top_asin_sales\": null,\n    \"top_asin_conversion_rate\": null,\n    \"dstr\": null,\n    \"kps\": null,\n    \"relevancy\": 0,\n    \"organic_rank\": null,\n    \"sponsored_rank\": null,\n    \"periods_in_top_3\": 0\n  }\n]\n```\n\nThe example values are illustrative.\n\n#### Per-period detail\n\nSet `include_periods` to `true` to add each keyword's week-by-week or month-by-month detail. Every record then keeps all the fields above and gains a `periods` array, oldest first, with one entry for each week or month in the range that has data for the keyword. A keyword with no data in the range has `\"periods\": []`. Without `include_periods`, or with `false`, records have no `periods` field.\n\nEach entry has exactly the shape of a period record from `GET /v0/keywords` requested with `include_asins=true`, and its values match the app's detailed CSV for the same ASIN, marketplace and dates:\n\n| Field | Type | Description |\n| --- | --- | --- |\n| `date` | string | Start date of the week or month, `YYYY-MM-DD`. |\n| `clicks` | number | The keyword's clicks in the period. |\n| `sales` | number | The keyword's sales in the period. |\n| `conversion_rate` | number | Sales as a percentage of clicks, rounded to one decimal place. `0` when `clicks` is `0`. |\n| `asin_1`, `asin_2`, `asin_3` | object | The keyword's top three clicked ASINs in the period, each with `asin`, `clicks`, `sales` and `conversion_rate` as above. Every field of a slot is `null` when the slot is empty. |\n\n```json\n\"periods\": [\n  {\n    \"date\": \"2026-08-01\",\n    \"clicks\": 18950,\n    \"sales\": 1610,\n    \"conversion_rate\": 8.5,\n    \"asin_1\": { \"asin\": \"B000000002\", \"clicks\": 2300, \"sales\": 310, \"conversion_rate\": 13.5 },\n    \"asin_2\": { \"asin\": \"B000000003\", \"clicks\": 1200, \"sales\": 98, \"conversion_rate\": 8.2 },\n    \"asin_3\": { \"asin\": null, \"clicks\": null, \"sales\": null, \"conversion_rate\": null }\n  }\n]\n```\n\n#### File formats\n\nSet `format` to choose the file format. Every format holds the same keywords with the same values in the same order, and a report costs the same in each.\n\n- `json` (the default): one array of records, `[]` when nothing matched.\n- `jsonl`: one record per line, each with the same fields as in JSON, including `periods` when requested. The file is empty when nothing matched.\n- `csv`: a header row with the API field names, then one row per keyword, or per keyword and period with periods. The header is not a record; a report with no matching keywords is the header alone. An empty cell stands for `null`. Numbers are plain numbers and dates are `YYYY-MM-DD`, never formatted strings such as percentages. Text cells are quoted, and a text value a spreadsheet could read as a formula, such as one starting with `=`, `+`, `-` or `@`, is written with a leading `'`.\n\nWithout periods the CSV columns are the requested marketplace followed by the record fields above: `marketplace`, `keyword`, `clicks`, `sales`, `conversion_rate`, `top_asin`, `top_asin_clicks`, `top_asin_sales`, `top_asin_conversion_rate`, `dstr`, `kps`, `relevancy`, `organic_rank`, `sponsored_rank`, `periods_in_top_3`.\n\n```csv\nmarketplace,keyword,clicks,sales,conversion_rate,top_asin,top_asin_clicks,top_asin_sales,top_asin_conversion_rate,dstr,kps,relevancy,organic_rank,sponsored_rank,periods_in_top_3\n\"US\",\"yoga mat\",18240,1532,8.4,\"B000000002\",2210,301,13.6,14,1,92,4,2,3\n\"US\",\"yoga mat strap\",0,0,0,,,,,,,0,,,0\n```\n\nWith `include_periods: true` the CSV has one row per keyword and period, oldest period first within each keyword, in the same keyword order. Each row repeats the keyword's columns and adds the period's fields, with each top-ASIN slot flattened: `period_date`, `period_clicks`, `period_sales`, `period_conversion_rate`, `period_asin_1`, `period_asin_1_clicks`, `period_asin_1_sales`, `period_asin_1_conversion_rate`, `period_asin_2`, `period_asin_2_clicks`, `period_asin_2_sales`, `period_asin_2_conversion_rate`, `period_asin_3`, `period_asin_3_clicks`, `period_asin_3_sales`, `period_asin_3_conversion_rate`. A keyword with no period data has one row with empty period cells. `result.row_count` still counts keywords, not rows.\n\n```csv\nmarketplace,keyword,clicks,sales,conversion_rate,top_asin,top_asin_clicks,top_asin_sales,top_asin_conversion_rate,dstr,kps,relevancy,organic_rank,sponsored_rank,periods_in_top_3,period_date,period_clicks,period_sales,period_conversion_rate,period_asin_1,period_asin_1_clicks,period_asin_1_sales,period_asin_1_conversion_rate,period_asin_2,period_asin_2_clicks,period_asin_2_sales,period_asin_2_conversion_rate,period_asin_3,period_asin_3_clicks,period_asin_3_sales,period_asin_3_conversion_rate\n\"US\",\"yoga mat\",18240,1532,8.4,\"B000000002\",2210,301,13.6,14,1,92,4,2,3,\"2026-08-01\",18950,1610,8.5,\"B000000002\",2300,310,13.5,\"B000000003\",1200,98,8.2,,,,\n\"US\",\"yoga mat strap\",0,0,0,,,,,,,0,,,0,,,,,,,,,,,,,,,,\n```\n\n#### Charging\n\n- A report costs 100 credits, whatever its date range, plus 100 credits per period requested when `include_periods` is `true`: one month with per-period detail costs 200 credits, twelve months 1,300. The cost is held from your credit balance when the report is accepted. When the balance cannot cover it the request returns `402 insufficient_credits` and nothing is created.\n- The held credits are charged when the report is ready. Automatic retries, polling, listing and downloads cost nothing more. A report that finally fails, including for an ASIN Amazon does not list, costs nothing, and its held credits are released."
    }
  ],
  "paths": {
    "/v0/projects/{project_id}/notes": {
      "get": {
        "operationId": "listUserApiProjectNotes",
        "tags": [
          "Project notes"
        ],
        "summary": "List project notes",
        "description": "Returns `200` with `data.notes` and `data.page`. Use it to browse the annotations shown in the app or find notes for an ASIN or date range. Notes remain available after their ASIN or keywords are detached, and historical titles and descriptions are returned in full.\n\n### Request rules\n\nUse a marketplace `project_id` returned by `GET /v0/projects`. The project must belong to the account associated with your API key, including keys created by additional users. These operations require User API access, an active subscription and access to that marketplace. No extra notes permission or app display setting is required. Notes belong only to this marketplace project, not its project group.\n\nFilter with `asin`, `date_from` and `date_to`. ASINs are trimmed and uppercased. Omitting `asin` includes every ASIN's notes, not just the primary ASIN. Date filters use inclusive overlap, so notes spanning either boundary are included. A one-sided date filter constrains only that side. Use valid calendar dates; there is no ranking-history lookback window.\n\n### Response and errors\n\nA missing or inaccessible project returns `404 project_not_found`; check the ID against your project list. For `400 invalid_date_range`, set `date_to` on or after `date_from`. Correct invalid dates, ASINs, page sizes or unsupported parameters before retrying.\n\n### Pagination\n\nNotes are ordered by ascending stable note ID; editing dates does not reorder them. The default and maximum `limit` is 200; smaller positive sizes are accepted. Continue while `data.page.has_more` is `true`. Pass the opaque `data.page.next_cursor` unchanged and URL-encoded as `cursor`, using the same project and filters. Do not construct a cursor. Empty and final pages have `has_more: false` and `next_cursor: null`.\n\nFor `400 invalid_cursor`, check that you copied the returned cursor and kept the same project and filters. To change filters, start again without a cursor.\n\n### Rate limits and usage\n\nThe account burst limit is 60 requests per 60 seconds. Rate headers appear when burst enforcement runs; after `429`, wait for `Retry-After` before retrying. Each successful request costs 5 credits, including empty lists, and is reported as `project_notes` in usage. Failed requests cost nothing. Quota headers and the `insufficient_credits` refusal follow the shared credit policy.\n\n### Example requests\n\nReplace `<api_key>` and `<next_cursor>` in the examples. Project 123 and note 42 are illustrative; use IDs returned by your project and note requests.\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/projects/123/notes?asin=B012345678&date_from=2030-01-01&date_to=2030-01-31&limit=50' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n\nFor the next page, retain the filters and URL-encode the cursor:\n\n```bash\ncurl --request GET --get \\\n  --url 'https://api.datarova.com/v0/projects/123/notes' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --data-urlencode 'asin=B012345678' \\\n  --data-urlencode 'date_from=2030-01-01' \\\n  --data-urlencode 'date_to=2030-01-31' \\\n  --data-urlencode 'limit=50' \\\n  --data-urlencode 'cursor=<next_cursor>'\n```",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "description": "Owned marketplace project ID from GET /v0/projects.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          },
          {
            "name": "asin",
            "in": "query",
            "required": false,
            "description": "Optional exact ASIN filter, trimmed and uppercased. Omission lists every project ASIN, including detached ASINs.",
            "schema": {
              "type": "string",
              "pattern": "^[A-Za-z0-9]{10}$"
            }
          },
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "description": "Inclusive lower date bound. Matches notes ending on or after this date. Future dates are accepted.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "description": "Inclusive upper date bound. Matches notes starting on or before this date. Must be on or after date_from when both are supplied.",
            "schema": {
              "type": "string",
              "format": "date"
            }
          },
          {
            "name": "limit",
            "in": "query",
            "required": false,
            "description": "Positive page size; default and maximum 200.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 200
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "required": false,
            "description": "Opaque next_cursor from the preceding response. Pass unchanged, URL-encoded, with the same project and filters.",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Notes page, including an empty successful result.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectNotesResponse"
                },
                "example": {
                  "data": {
                    "notes": [
                      {
                        "note_id": 42,
                        "project_id": 123,
                        "asin": "B012345678",
                        "date_from": "2030-01-01",
                        "date_to": null,
                        "title": "Launch",
                        "description": "Campaign begins.",
                        "color": "green",
                        "keywords": [],
                        "created_at": null,
                        "updated_at": null
                      }
                    ],
                    "page": {
                      "limit": 200,
                      "next_cursor": null,
                      "has_more": false
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Codes include unknown_query_parameter, unknown_body_parameter, invalid_project_id, invalid_note_id, invalid_limit, invalid_cursor, invalid_asin, invalid_date and invalid_date_range. Correct the input and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_cursor",
                    "message": "Invalid cursor."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "project_not_found for missing or foreign projects; note_not_found for a note absent from the addressed owned project. Foreign notes are indistinguishable from absent notes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      },
      "post": {
        "operationId": "createUserApiProjectNote",
        "tags": [
          "Project notes"
        ],
        "summary": "Create a project note",
        "description": "Creates one note shared with the app and returns `201 Created` with the complete saved record under `data.note`. Use it to annotate an event for one ASIN in one marketplace project.\n\n### Request rules\n\nUse a marketplace `project_id` returned by `GET /v0/projects`. The project must belong to the account associated with your API key, including keys created by additional users. These operations require User API access, an active subscription and access to that marketplace. No extra notes permission or app display setting is required. Notes belong only to this marketplace project, not its project group.\n\nSupply `title` and `date_from`. Omit `asin` to use the current primary ASIN. The response returns that ASIN, and later primary-ASIN changes do not move the note. An explicit `asin` is trimmed and uppercased and must exactly match a current project attachment. Use the identity returned by `GET /v0/projects/{project_id}/asins`; parent or sibling aliases do not select another ASIN. Empty or `null` ASINs are invalid, not requests for the default.\n\nSupplied `keywords` must be current attachments in the same project. Values are trimmed, lowercased and deduplicated, and blank values are removed. Omit `keywords` or supply `[]` for an ASIN-level annotation without selected keywords. `null` is invalid. This operation does not create ASIN or keyword attachments.\n\nA trimmed `title` must contain 1 to 200 Unicode code points. An optional `description` preserves plain text and line breaks up to 10,000 code points; omission, `null` or `\"\"` creates a note without a description. Oversized text is rejected without truncation. Omitted `color` defaults to `green`.\n\nUse valid calendar dates, including future dates. `date_to` is inclusive and cannot precede `date_from`. Omit it or supply `null` or the same date as `date_from` for a single-day note, returned with `date_to: null`. Required fields cannot be `null`. Unknown fields and invalid types are rejected.\n\nNUL characters, U+0000, are not accepted in `title`, `description` or `keywords`. Remove them before retrying. They return `400 invalid_title`, `400 invalid_description` or `400 invalid_keywords` for the affected field without saving changes. Other JSON escapes, such as line breaks, quotes and backslashes, remain supported.\n\n### Response and errors\n\nThe saved note includes its stable `note_id` and resolved ASIN. Each accepted creation makes a separate note, even with identical content. Retrying after a lost response can create a duplicate; inspect the note list before deciding whether to retry.\n\nFor `400 primary_asin_not_found`, select a primary ASIN in the project or supply an attached ASIN. For `400 asin_not_in_project` or `400 keyword_not_in_project`, use current attachments from that project. For `400 invalid_date_range`, correct the date range. Validation failures create no note. A missing or inaccessible project returns `404 project_not_found`; check the ID against your project list.\n\n### Rate limits and usage\n\nThe account burst limit is 60 requests per 60 seconds. Rate headers appear when burst enforcement runs; after `429`, wait for `Retry-After` before retrying. Each successful request costs 5 credits and is reported as `project_note_create` in usage. Failed requests cost nothing. Quota headers and the `insufficient_credits` refusal follow the shared credit policy.\n\n### Example requests\n\nReplace `<api_key>` before use. Project 123 and note 42 are illustrative IDs from your project and note responses. These examples modify real notes when executed.\n\n```bash\ncurl --request POST \\\n  --url 'https://api.datarova.com/v0/projects/123/notes' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"title\":\"Launch\",\"date_from\":\"2030-01-01\"}'\n```\n\nTo select a specific attached ASIN and keyword, use your existing attachment identities in place of these illustrative values:\n\n```bash\ncurl --request POST \\\n  --url 'https://api.datarova.com/v0/projects/123/notes' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"title\":\"Launch\",\"date_from\":\"2030-01-01\",\"asin\":\"B012345678\",\"description\":\"Campaign begins.\\nReview results next week.\",\"date_to\":\"2030-01-07\",\"color\":\"yellow\",\"keywords\":[\"kitchen tools\"]}'\n```",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "description": "Owned marketplace project ID from GET /v0/projects.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          }
        ],
        "responses": {
          "201": {
            "description": "Complete newly saved note.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectNoteResponse"
                },
                "example": {
                  "data": {
                    "note": {
                      "note_id": 42,
                      "project_id": 123,
                      "asin": "B012345678",
                      "date_from": "2030-01-01",
                      "date_to": null,
                      "title": "Launch",
                      "description": "Campaign begins.",
                      "color": "green",
                      "keywords": [],
                      "created_at": null,
                      "updated_at": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Correct invalid_body, invalid_title, invalid_description, invalid_color, invalid_date, invalid_date_range, invalid_keywords, invalid_asin, invalid_project_id, invalid_note_id, unknown_query_parameter or unknown_body_parameter before retrying. primary_asin_not_found requires a primary or explicit attached ASIN. asin_not_in_project and keyword_not_in_project require current exact project attachments. No supplied changes are saved on validation rejection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_date_range",
                    "message": "date_to must be on or after date_from."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "project_not_found for missing or foreign projects; note_not_found for a note absent from the addressed owned project. Foreign notes are indistinguishable from absent notes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectNoteCreate"
              },
              "examples": {
                "primaryAsin": {
                  "summary": "Use the current primary ASIN",
                  "value": {
                    "title": "Launch",
                    "date_from": "2030-01-01"
                  }
                },
                "explicitAsin": {
                  "summary": "Select an attached ASIN and keyword",
                  "value": {
                    "title": "Launch",
                    "date_from": "2030-01-01",
                    "asin": "B012345678",
                    "description": "Campaign begins.\nReview results next week.",
                    "date_to": "2030-01-07",
                    "color": "yellow",
                    "keywords": [
                      "kitchen tools"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v0/projects/{project_id}/notes/{note_id}": {
      "get": {
        "operationId": "getUserApiProjectNote",
        "tags": [
          "Project notes"
        ],
        "summary": "Retrieve a project note",
        "description": "Returns `200` with the complete note under `data.note`. Use it to inspect a known annotation or retrieve its current content before editing.\n\n### Request rules\n\nUse a marketplace `project_id` returned by `GET /v0/projects`. The project must belong to the account associated with your API key, including keys created by additional users. These operations require User API access, an active subscription and access to that marketplace. No extra notes permission or app display setting is required. Notes belong only to this marketplace project, not its project group. Use a `note_id` returned by a note list or write response. Do not supply query parameters or a request body.\n\n### Response and errors\n\nThe response includes the note's ASIN, title, description, dates, color and stored keyword selection. Single-day notes have `date_to: null`. Historical text is returned in full, even when it exceeds the current write limits. Reading does not require the ASIN or keywords to remain attached.\n\nA missing or inaccessible project returns `404 project_not_found`; check your project list. An absent note or a note from another project or account returns `404 note_not_found`; refresh the addressed project's note list and use an ID from that response. Correct malformed IDs or unsupported parameters before retrying.\n\n### Rate limits and usage\n\nThe account burst limit is 60 requests per 60 seconds. Rate headers appear when burst enforcement runs; after `429`, wait for `Retry-After` before retrying. Each successful request costs 5 credits and is reported as `project_note_detail` in usage. Failed requests cost nothing. Quota headers and the `insufficient_credits` refusal follow the shared credit policy.\n\n### Example requests\n\nReplace `<api_key>` in the example. Project 123 and note 42 are illustrative; use IDs returned by your project and note requests.\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/projects/123/notes/42' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "description": "Owned marketplace project ID from GET /v0/projects.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          },
          {
            "name": "note_id",
            "in": "path",
            "required": true,
            "description": "Stable note ID from a notes response. Scoped to the addressed marketplace project.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Complete stored note.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectNoteResponse"
                },
                "example": {
                  "data": {
                    "note": {
                      "note_id": 42,
                      "project_id": 123,
                      "asin": "B012345678",
                      "date_from": "2030-01-01",
                      "date_to": null,
                      "title": "Launch",
                      "description": "Campaign begins.",
                      "color": "green",
                      "keywords": [],
                      "created_at": null,
                      "updated_at": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Codes include unknown_query_parameter, unknown_body_parameter, invalid_project_id, invalid_note_id, invalid_limit, invalid_cursor, invalid_asin, invalid_date and invalid_date_range. Correct the input and retry.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_cursor",
                    "message": "Invalid cursor."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "project_not_found for missing or foreign projects; note_not_found for a note absent from the addressed owned project. Foreign notes are indistinguishable from absent notes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      },
      "delete": {
        "operationId": "deleteUserApiProjectNote",
        "tags": [
          "Project notes"
        ],
        "summary": "Delete a project note",
        "description": "Deletes one note and returns `200` with `data.deleted`. Use it to remove an annotation from both the app and the User API. Other notes and project attachments stay unchanged.\n\n### Request rules\n\nUse a marketplace `project_id` returned by `GET /v0/projects`. The project must belong to the account associated with your API key, including keys created by additional users. These operations require User API access, an active subscription and access to that marketplace. No extra notes permission or app display setting is required. Notes belong only to this marketplace project, not its project group. Use a `note_id` from a note response. Notes remain deletable after their ASIN or keywords have been detached. Do not supply query parameters or a request body, including an empty JSON object.\n\n### Response and errors\n\nThe response contains `data.deleted: true` when the note was removed. An absent note, including one from another project or account, returns `data.deleted: false`. Retrying after a successful deletion is safe and returns `false`. After deletion, individual retrieval returns `404 note_not_found` and listing omits the note.\n\nA missing or inaccessible project returns `404 project_not_found`; check the ID against your project list. Invalid IDs and unsupported inputs return `400`; correct the IDs or remove the unsupported input before retrying.\n\n### Rate limits and usage\n\nThe account burst limit is 60 requests per 60 seconds. Rate headers appear when burst enforcement runs; after `429`, wait for `Retry-After` before retrying. Each successful request costs 5 credits, including absent-note retries, and is reported as `project_note_delete` in usage. Failed requests cost nothing. Quota headers and the `insufficient_credits` refusal follow the shared credit policy.\n\n### Example requests\n\nReplace `<api_key>` with an account API key. Project 123 and note 42 are illustrative; use an existing owned project and note. This request deletes that note:\n\n```bash\ncurl --request DELETE \\\n  --url 'https://api.datarova.com/v0/projects/123/notes/42' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n\nThe first deletion returns `{\"data\":{\"deleted\":true}}`. To retry after a lost response, send the same authenticated request:\n\n```bash\ncurl --request DELETE \\\n  --url 'https://api.datarova.com/v0/projects/123/notes/42' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n\nIf already removed, the retry returns `{\"data\":{\"deleted\":false}}`.",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "description": "Owned marketplace project ID from GET /v0/projects.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          },
          {
            "name": "note_id",
            "in": "path",
            "required": true,
            "description": "Stable note ID from a notes response. Scoped to the addressed marketplace project.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deletion outcome, including safe absent-note retries.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "deleted"
                      ],
                      "properties": {
                        "deleted": {
                          "type": "boolean",
                          "description": "True only when this request removed the note from the addressed project."
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "deleted": {
                    "summary": "First deletion",
                    "value": {
                      "data": {
                        "deleted": true
                      }
                    }
                  },
                  "absent": {
                    "summary": "Already absent or foreign note",
                    "value": {
                      "data": {
                        "deleted": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid IDs or unsupported inputs. Codes include invalid_project_id, invalid_note_id, unknown_query_parameter, unknown_body_parameter and invalid_body. Correct the request before retrying.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_note_id",
                    "message": "note_id must be a positive integer."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "project_not_found for a missing or foreign project. An absent note in an owned project returns 200 with deleted false.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      },
      "patch": {
        "operationId": "updateUserApiProjectNote",
        "tags": [
          "Project notes"
        ],
        "summary": "Edit a project note",
        "description": "Edits one note and returns `200` with the complete updated record under `data.note`. Use it to change selected annotation fields while keeping the rest.\n\n### Request rules\n\nUse a marketplace `project_id` returned by `GET /v0/projects`. The project must belong to the account associated with your API key, including keys created by additional users. These operations require User API access, an active subscription and access to that marketplace. No extra notes permission or app display setting is required. Notes belong only to this marketplace project, not its project group. Use a `note_id` from a note response.\n\nSupply at least one editable field. Omitted fields remain unchanged, including oversized historical text and stored keywords that have since been detached. The project's identity and the note's ASIN cannot be changed.\n\nA supplied `title` must contain 1 to 200 Unicode code points after trimming. A supplied `description` preserves plain text and line breaks up to 10,000 code points; `\"\"` or `null` clears it. Supplied oversized text is rejected without truncation.\n\nA supplied `keywords` list replaces the whole selection and must use current project attachments. Values are trimmed, lowercased and deduplicated, and blank values are removed. Supply `[]` to clear the selection; `null` is invalid. Omit the field to preserve detached keywords.\n\nUse `date_to: null` to clear the end date. Changing either date validates the resulting range; the end cannot precede the start. Equal dates return `date_to: null`. Future dates are allowed, with no rolling date window. Neither `title` nor `date_from` can be cleared. Omitted `color` is unchanged. Unknown fields, empty patches and invalid types are rejected.\n\nNUL characters, U+0000, are not accepted in `title`, `description` or `keywords`. Remove them before retrying. They return `400 invalid_title`, `400 invalid_description` or `400 invalid_keywords` for the affected field without saving changes. Other JSON escapes, such as line breaks, quotes and backslashes, remain supported.\n\n### Response and errors\n\nRetained notes remain editable after ASIN or keyword detachment. The last successful write wins for each supplied field; no version or ETag is required. Validation failures leave the note unchanged.\n\nFor `400 keyword_not_in_project`, select current keywords or omit `keywords` to preserve the existing selection. For `400 invalid_date_range`, correct the combined start and end dates. A missing or inaccessible project returns `404 project_not_found`; check your project list. An absent note or one from another project or account returns `404 note_not_found`; refresh this project's notes before choosing an ID.\n\n### Rate limits and usage\n\nThe account burst limit is 60 requests per 60 seconds. Rate headers appear when burst enforcement runs; after `429`, wait for `Retry-After` before retrying. Each successful request costs 5 credits, including unchanged edits, and is reported as `project_note_update` in usage. Failed requests cost nothing. Quota headers and the `insufficient_credits` refusal follow the shared credit policy.\n\n### Example requests\n\nReplace `<api_key>` before use. Project 123 and note 42 are illustrative IDs from your project and note responses. These examples modify real notes when executed.\n\n```bash\ncurl --request PATCH \\\n  --url 'https://api.datarova.com/v0/projects/123/notes/42' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"title\":\"Launch revised\",\"color\":\"purple\"}'\n```\n\nClear optional fields explicitly:\n\n```bash\ncurl --request PATCH \\\n  --url 'https://api.datarova.com/v0/projects/123/notes/42' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"description\":null,\"date_to\":null,\"keywords\":[]}'\n```",
        "parameters": [
          {
            "name": "project_id",
            "in": "path",
            "required": true,
            "description": "Owned marketplace project ID from GET /v0/projects.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          },
          {
            "name": "note_id",
            "in": "path",
            "required": true,
            "description": "Stable note ID from a notes response. Scoped to the addressed marketplace project.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Complete updated note, including unchanged successful edits.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectNoteResponse"
                },
                "example": {
                  "data": {
                    "note": {
                      "note_id": 42,
                      "project_id": 123,
                      "asin": "B012345678",
                      "date_from": "2030-01-01",
                      "date_to": null,
                      "title": "Launch",
                      "description": "Campaign begins.",
                      "color": "green",
                      "keywords": [],
                      "created_at": null,
                      "updated_at": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Correct invalid_body, invalid_title, invalid_description, invalid_color, invalid_date, invalid_date_range, invalid_keywords, invalid_asin, invalid_project_id, invalid_note_id, unknown_query_parameter or unknown_body_parameter before retrying. primary_asin_not_found requires a primary or explicit attached ASIN. asin_not_in_project and keyword_not_in_project require current exact project attachments. No supplied changes are saved on validation rejection.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_date_range",
                    "message": "date_to must be on or after date_from."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "project_not_found for missing or foreign projects; note_not_found for a note absent from the addressed owned project. Foreign notes are indistinguishable from absent notes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectNotePatch"
              },
              "examples": {
                "partial": {
                  "summary": "Change title and color",
                  "value": {
                    "title": "Launch revised",
                    "color": "purple"
                  }
                },
                "clear": {
                  "summary": "Clear description, end date and keywords",
                  "value": {
                    "description": null,
                    "date_to": null,
                    "keywords": []
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v0/exports": {
      "post": {
        "operationId": "createExport",
        "summary": "Request an export",
        "description": "Requests a one-off export and returns `202 Accepted` with the new export under `data`. The resource uses the same fields as list entries and detail responses, with `result: null` until successful completion. Use `data.id` (also returned in the `Location` header) to poll `GET /v0/exports/{exportId}`, then request a download link once `state` is `ready`.\n\n## Request rules\n\n- `export_type` chooses the file contents and which `parameters` apply. The available types, with their required and optional parameters, output columns, eligibility and charging, are listed in the Exports overview above. The suffix on each id is the version of that type's parameters and output schema; a change ships as a new id and existing ids keep working.\n- `parameters.format` defaults to `json`; `jsonl` and `csv` are also supported where the type allows them. Every field, including the format, lives inside `parameters` because the options differ by type.\n- `parameters` is required and must contain only the chosen type's parameters. Unknown fields anywhere in the body are rejected.\n- Ranking exports may include any day up to and including today in America/Los_Angeles, at any time of day. A future `start_date` or `end_date` rejects the request with `400 future_dates_not_allowed`, and the message names the latest date you can request. Accepted dates stay fixed through processing and retries, so a request accepted just before Los Angeles midnight still generates.\n- Today is still in progress. A file that includes today is a snapshot taken when it is generated: keywords still being checked and keywords tracked but not ranked both have null rank fields, and before today's first check a value can be yesterday's latest observation. Those records count like any other. Export again later for a more complete day.\n- A `ready` file never changes. Two exports of the same request can differ if the underlying data changes between them.\n\n## Estimated record limits\n\nBefore reading data or generating a file, each attempt estimates its records:\n\n- `ranks_by_asin.1` multiplies selected ASINs by selected keywords by inclusive requested days for each marketplace project, then sums those project totals. All project, marketplace, label and primary-ASIN filters apply. The estimate ignores historical tracking periods and missing observations, so it can reject a request whose actual file would be smaller or empty.\n- `project_keywords.1` counts the selected keyword attachments. All project, marketplace and label filters apply.\n\nThe maximum is 1,000,000 records per export. An estimate above that limit fails with `export_record_limit_exceeded`; equality passes. These rules are identical for JSON, JSONL and CSV; a CSV header is not a record.\n\nThis check runs after `202 Accepted`. Polling returns `state: failed`, a `failure_code` and `failure_message`, and `result: null`. A failed export generates no file, costs nothing and releases its held credits. Reduce the selected projects, ASINs, keywords or dates and submit a new request. Limit failures are terminal. Generation also enforces the limit if project contents change after the estimate. If they grow so much that the complete file costs more than its held credits and the rest of your credit balance, it fails with `insufficient_credits`.\n\n## Charging\n\n- Every accepted request is a separate export and is charged separately, including an identical resubmission after a lost response.\n- An export costs 1 credit per 100 records, rounded up, with a minimum of 1 credit. Acceptance estimates its records and holds the estimated credits from your credit balance. The hold covers at most 1,000,000 records (10,000 credits): a larger estimate is accepted with that hold and then fails with `export_record_limit_exceeded`, costing nothing. When the balance cannot cover them the request returns `402 insufficient_credits` with `credit_cost`, `credit_balance` and `resets_at`, and nothing is created or held. Check `credits.balance` on `GET /v0/usage` before large requests.\n- When the export completes, the credits for its actual `result.row_count` are charged once, to the allowance cycle current at acceptance, and the hold is released. The estimate itself is never charged. A failed export produces no downloadable file, costs nothing and releases its hold.\n- An empty result succeeds and costs 1 credit. Polling, listing and downloads are free.\n- Accepted work finishes even if your subscription expires afterwards, but reading or downloading it still requires current eligibility.\n\n## Errors\n\n- `400`: unsupported `export_type`, invalid `format`, parameters that do not belong to the chosen type, invalid dates or selection, or a project or label that is not in your account. `error.code` names the problem.\n- `402`: no active subscription (`plan_required`), or the credit balance cannot cover the export's estimated credits (`insufficient_credits`). Nothing is created or held.\n- `403`: User API access or general plan eligibility is unavailable for your account.\n- `429` `outstanding_export_limit_reached`: the account already has five outstanding exports. Wait for one to finish, then submit again.\n- `503` `credit_balance_unavailable`: the credit balance could not be verified. Nothing is created; retry later.\n\n## Limits\n\n- Only the export itself is charged. Listing exports, checking their status and requesting download links are free and keep working when the credit balance is exhausted.\n- The burst limit is 60 requests per 60 seconds. After a `429`, wait for the `Retry-After` delay before retrying.\n- An account can have at most five outstanding exports: accepted exports that are waiting, being generated or waiting for an automatic retry, of every export type. The account's API keys and team members share the limit. A request for a sixth returns `429 outstanding_export_limit_reached` with `Retry-After: 30`, creates no export and charges nothing. Ready, failed and expired exports never count, so you can submit again as soon as one outstanding export finishes.\n- Each account has one export generated at a time, in the order its exports were accepted. Accounts take turns, so another account's batch does not hold up yours.\n\n## Examples\n\nReplace `<api_key>` with your API key. The dates and project ID are illustrative.\n\nExport the primary ASIN of every project you own for August 2026 as JSON:\n\n```bash\ncurl --request POST \\\n  --url 'https://api.datarova.com/v0/exports' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"export_type\":\"ranks_by_asin.1\",\"parameters\":{\"start_date\":\"2026-08-01\",\"end_date\":\"2026-08-31\"}}'\n```\n\nTo export one day for a single US project with every attached ASIN as CSV, use this body with the same method, URL and headers:\n\n```json\n{\"export_type\":\"ranks_by_asin.1\",\"parameters\":{\"format\":\"csv\",\"start_date\":\"2026-08-31\",\"end_date\":\"2026-08-31\",\"primary_asin_only\":false,\"project_ids\":[123],\"marketplaces\":[\"US\"]}}\n```\n\nTo export the current metrics of every keyword attachment carrying item label 12 as CSV, use this body with the same method, URL and headers. Replace 12 with an item label ID from your account:\n\n```json\n{\"export_type\":\"project_keywords.1\",\"parameters\":{\"format\":\"csv\",\"keyword_label_ids\":[12]}}\n```\n",
        "tags": [
          "Exports"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "202": {
            "description": "Durably accepted. Poll Location after at least Retry-After seconds; no completion-time guarantee.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportRunResponse"
                },
                "example": {
                  "data": {
                    "id": "d7884e2d-335b-4cd4-bb2f-7e70c3e13ad2",
                    "export_type": "ranks_by_asin.1",
                    "parameters": {
                      "format": "json",
                      "start_date": "2026-08-31",
                      "end_date": "2026-08-31",
                      "primary_asin_only": true
                    },
                    "state": "queued",
                    "failure_code": null,
                    "failure_message": null,
                    "created_at": "2026-09-01T14:00:00.000Z",
                    "started_at": null,
                    "completed_at": null,
                    "result": null
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Status path.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Suggested polling delay in seconds.",
                "schema": {
                  "type": "integer",
                  "enum": [
                    5
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid type, parameters, dates, selection or pagination.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "future_dates_not_allowed",
                    "message": "Future dates are not allowed. The latest date you can request is 2026-08-31, today in America/Los_Angeles."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "Missing or expired subscription (`plan_required`), or the credit balance cannot cover the export's estimated credits (`insufficient_credits`, with `credit_cost`, `credit_balance` and `resets_at`). Nothing is created or held. A credit refusal carries the quota headers, with `X-Quota-Cost` the estimated credits.",
            "headers": {
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Credit balance cannot cover the estimated credits",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This call costs 240 credits, but the credit balance is 180 credits; the credit allowance resets at 2026-12-01T00:00:00.000Z.",
                        "credit_cost": 240,
                        "credit_balance": 180,
                        "resets_at": "2026-12-01T00:00:00.000Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/ExportAccessDenied"
          },
          "404": {
            "description": "Owned resource not found.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "description": "Refused, with nothing created or charged. Either the request rate limit was exceeded (`rate_limit_exceeded`), or the account already has five outstanding exports, the most allowed (`outstanding_export_limit_reached`). An outstanding export is waiting, being generated, or waiting for an automatic retry; ready, failed and expired exports do not count. Submit again after `Retry-After` seconds, or as soon as one of the account's exports finishes.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying: the rest of the rate-limit window for `rate_limit_exceeded`, or 30 for `outstanding_export_limit_reached`.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/RateLimitedErrorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse"
                    }
                  ]
                },
                "examples": {
                  "rate_limit_exceeded": {
                    "summary": "Request rate limit",
                    "value": {
                      "error": {
                        "code": "rate_limit_exceeded",
                        "message": "Rate limit exceeded. Please retry later.",
                        "retry_after": 12
                      }
                    }
                  },
                  "outstanding_export_limit_reached": {
                    "summary": "Five outstanding exports",
                    "value": {
                      "error": {
                        "code": "outstanding_export_limit_reached",
                        "message": "This account already has five exports waiting or being generated, the most allowed at once. Submit again when one of them finishes."
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateExportRequest"
              },
              "examples": {
                "month": {
                  "summary": "Default JSON for all owned projects",
                  "value": {
                    "export_type": "ranks_by_asin.1",
                    "parameters": {
                      "start_date": "2026-08-01",
                      "end_date": "2026-08-31"
                    }
                  }
                },
                "selectedCsv": {
                  "summary": "Selected projects, all attached ASINs",
                  "value": {
                    "export_type": "ranks_by_asin.1",
                    "parameters": {
                      "format": "csv",
                      "start_date": "2026-08-31",
                      "end_date": "2026-08-31",
                      "primary_asin_only": false,
                      "project_ids": [
                        123
                      ],
                      "marketplaces": [
                        "US"
                      ]
                    }
                  }
                },
                "projectKeywordsCsv": {
                  "summary": "Project keywords for selected keyword labels as CSV",
                  "value": {
                    "export_type": "project_keywords.1",
                    "parameters": {
                      "format": "csv",
                      "keyword_label_ids": [
                        12
                      ]
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listExports",
        "summary": "List exports",
        "description": "Lists your account's one-off exports under `data.exports`, newest first, with the same fields as creation and detail responses. `result` is null before successful completion and contains file metadata afterward, including after file expiry. Use it to find export IDs and current states without polling each export individually.\n\n## Request rules\n\n- `export_type` optionally restricts the list to one export type; an unknown value returns `400 unsupported_export_type`.\n- `date_from` and `date_to` optionally filter creation dates as strict `YYYY-MM-DD` calendar dates in America/Los_Angeles. Either bound may be omitted; both boundary days are included, and equal dates select one day. These filters use `created_at`, not the ranking dates inside `parameters`.\n- History dates have no 31-day limit or ranking date rule. Today and future bounds are valid. Full response timestamps remain UTC.\n- Malformed, impossible or repeated dates return `400 invalid_date`. A `date_to` before `date_from` returns `400 invalid_date_range`. Correct the dates and retry.\n- `limit` defaults to 50 and accepts 1 to 100.\n- All export states remain visible for their normal retention period after source-project deletion. Access follows your account ownership and current User API eligibility.\n\n## Pagination\n\nContinue while `data.page.has_more` is true, passing `data.page.next_cursor` unchanged as the next request's opaque `cursor` with the same `limit`, `export_type`, `date_from` and `date_to`. Restart without a cursor when changing filters. A cursor that is unknown or belongs to another account returns an empty page.\n\n## Limits\n\n- Listing exports, checking their status and requesting download links are free and keep working when the credit balance is exhausted.\n- The burst limit is 60 requests per 60 seconds. After a `429`, wait for the `Retry-After` delay before retrying.\n\n## Examples\n\nReplace `<api_key>` with your API key. This example finds exports created during August 2026 in Los Angeles time. Omit either date for an open-ended range.\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/exports?limit=50&export_type=ranks_by_asin.1&date_from=2026-08-01&date_to=2026-08-31' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n\nFor the next page, replace `<next_cursor>` with the returned value; `--data-urlencode` encodes it for the URL:\n\n```bash\ncurl --request GET --get \\\n  --url 'https://api.datarova.com/v0/exports' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --data-urlencode 'limit=50' \\\n  --data-urlencode 'export_type=ranks_by_asin.1' \\\n  --data-urlencode 'date_from=2026-08-01' \\\n  --data-urlencode 'date_to=2026-08-31' \\\n  --data-urlencode 'cursor=<next_cursor>'\n```\n",
        "tags": [
          "Exports"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportRunsResponse"
                },
                "example": {
                  "data": {
                    "exports": [
                      {
                        "id": "d7884e2d-335b-4cd4-bb2f-7e70c3e13ad2",
                        "export_type": "ranks_by_asin.1",
                        "parameters": {
                          "format": "json",
                          "start_date": "2026-08-31",
                          "end_date": "2026-08-31",
                          "primary_asin_only": true
                        },
                        "state": "ready",
                        "failure_code": null,
                        "failure_message": null,
                        "created_at": "2026-09-01T14:00:00.000Z",
                        "started_at": "2026-09-01T14:00:03.000Z",
                        "completed_at": "2026-09-01T14:00:05.000Z",
                        "result": {
                          "row_count": 240,
                          "compressed_bytes": 3812,
                          "expires_at": "2026-10-01T14:00:05.000Z"
                        }
                      }
                    ],
                    "page": {
                      "limit": 50,
                      "has_more": false,
                      "next_cursor": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid query: unknown_query_parameter, unsupported_export_type, invalid_limit, invalid_cursor, invalid_date or invalid_date_range. Date bounds must be scalar valid YYYY-MM-DD dates; date_to must be on or after date_from.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "Missing or expired subscription. Listing exports, checking their status and requesting download links are free and never refused for credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/ExportAccessDenied"
          },
          "404": {
            "description": "Unknown export, or export owned by another account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "description": "First included creation day. Omit for no lower bound. A strict YYYY-MM-DD calendar date in America/Los_Angeles. Filters created_at, independently of ranking dates. Today, future dates and ranges over 31 days are allowed.",
            "example": "2026-08-01"
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "description": "Last included creation day. Omit for no upper bound. Must be on or after date_from when both are supplied. A strict YYYY-MM-DD calendar date in America/Los_Angeles. Filters created_at, independently of ranking dates. Today, future dates and ranges over 31 days are allowed.",
            "example": "2026-08-31"
          },
          {
            "name": "export_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "ranks_by_asin.1",
                "project_keywords.1"
              ]
            },
            "description": "Return only exports of this type."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque cursor returned by the previous page."
          }
        ]
      }
    },
    "/v0/exports/{exportId}": {
      "get": {
        "operationId": "getExport",
        "summary": "Get an export",
        "description": "Returns one export's state, parameters and result metadata under `data`. Poll it after acceptance until the state is terminal, then request a download link for a `ready` export.\n\n## States\n\n- `queued` and `processing`: generation has not finished and `result` is null. Poll again at least five seconds apart.\n- `ready`: the file is complete. `result` contains `row_count`, `compressed_bytes` and `expires_at`, and top-level `completed_at` is set; call `GET /v0/exports/{exportId}/download`.\n- `failed`: generation stopped and `result` is null. `failure_code` identifies the cause and `failure_message` says what to do next (see below).\n- `expired`: the file's 30-day retention has ended. The export details and `result` metadata remain readable, but the file cannot be downloaded.\n\nTransient generation problems are retried automatically and the export stays `queued` meanwhile. When retries run out, the state becomes `failed` with `retry_exhausted`.\n\n## Failure codes and recovery\n\nEach code below is returned with a matching `failure_message`. The record-limit check runs after acceptance. A conservative estimate can fail even if historical output would be smaller or empty. Failed exports have `result: null`, offer no download, cost nothing and release their held credits. Limit failures are terminal, and a new allowance cycle does not restart them.\n\n- `export_record_limit_exceeded`: the estimated or generated count exceeds 1,000,000 records for one export. Reduce the selection or date range and submit a new request.\n- `insufficient_credits`: the generated file costs more credits than its hold and the rest of your credit balance can cover. Submit a smaller range or selection; nothing was charged.\n- `export_allowance_insufficient`: a historical failure from before credits, when the count exceeded the former export-row allowance. Submit a new export.\n- `selected_label_deleted` or `project_access_changed`: historical failures from older generation rules. Submit a new export; current generation skips disappeared matches without broadening filters.\n- `retry_exhausted`: generation failed repeatedly. Submit a new export; nothing was charged.\n- `invalid_export_context`: the saved export request could not be processed. Submit a new export; nothing was charged.\n\n## Errors\n\n- `404`: the ID is unknown or belongs to another account. Source-project deletion does not revoke access to your export. Finished exports remain readable for at least 90 days after their last activity and cycle end, after which they may also return `404`.\n\n## Limits\n\n- Listing exports, checking their status and requesting download links are free and keep working when the credit balance is exhausted.\n- The burst limit is 60 requests per 60 seconds. After a `429`, wait for the `Retry-After` delay before retrying.\n\n## Example\n\nReplace `<api_key>` with your API key and `<export_id>` with the ID returned at acceptance.\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/exports/<export_id>' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n",
        "tags": [
          "Exports"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportRunResponse"
                },
                "examples": {
                  "ready": {
                    "summary": "Completed export",
                    "value": {
                      "data": {
                        "id": "d7884e2d-335b-4cd4-bb2f-7e70c3e13ad2",
                        "export_type": "ranks_by_asin.1",
                        "parameters": {
                          "format": "json",
                          "start_date": "2026-08-31",
                          "end_date": "2026-08-31",
                          "primary_asin_only": true
                        },
                        "state": "ready",
                        "failure_code": null,
                        "failure_message": null,
                        "created_at": "2026-09-01T14:00:00.000Z",
                        "started_at": "2026-09-01T14:00:03.000Z",
                        "completed_at": "2026-09-01T14:00:05.000Z",
                        "result": {
                          "row_count": 240,
                          "compressed_bytes": 3812,
                          "expires_at": "2026-10-01T14:00:05.000Z"
                        }
                      }
                    }
                  },
                  "recordLimit": {
                    "summary": "Estimated per-export limit exceeded",
                    "value": {
                      "data": {
                        "id": "d7884e2d-335b-4cd4-bb2f-7e70c3e13ad2",
                        "export_type": "ranks_by_asin.1",
                        "parameters": {
                          "format": "json",
                          "start_date": "2026-08-31",
                          "end_date": "2026-08-31",
                          "primary_asin_only": true
                        },
                        "state": "failed",
                        "failure_code": "export_record_limit_exceeded",
                        "failure_message": "The estimated or generated record count exceeds the 1,000,000-record limit per export. Submit a smaller date range or selection; nothing was charged.",
                        "created_at": "2026-09-01T14:00:00.000Z",
                        "started_at": "2026-09-01T14:00:03.000Z",
                        "completed_at": null,
                        "result": null
                      }
                    }
                  },
                  "insufficientCredits": {
                    "summary": "Complete file costs more credits than the balance covers",
                    "value": {
                      "data": {
                        "id": "d7884e2d-335b-4cd4-bb2f-7e70c3e13ad2",
                        "export_type": "ranks_by_asin.1",
                        "parameters": {
                          "format": "json",
                          "start_date": "2026-08-31",
                          "end_date": "2026-08-31",
                          "primary_asin_only": true
                        },
                        "state": "failed",
                        "failure_code": "insufficient_credits",
                        "failure_message": "The generated file costs more credits than your credit balance can cover. Submit a smaller range or selection; nothing was charged.",
                        "created_at": "2026-09-01T14:00:00.000Z",
                        "started_at": "2026-09-01T14:00:03.000Z",
                        "completed_at": null,
                        "result": null
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid type, parameters, dates, selection or pagination.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "Missing or expired subscription. Listing exports, checking their status and requesting download links are free and never refused for credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/ExportAccessDenied"
          },
          "404": {
            "description": "Unknown export, or export owned by another account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "name": "exportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/v0/exports/{exportId}/download": {
      "get": {
        "operationId": "downloadExport",
        "summary": "Get an export download link",
        "description": "Returns a temporary download URL under `data.url`, with its expiry in `data.expires_at`, for an export whose state is `ready`. Download the file with a plain GET on that URL; no authentication header is needed for it. Branded delivery uses `downloads.datarova.com`. Treat the complete returned URL, including its path and signature query, as opaque and confidential. Use it unchanged in an HTTP client or ordinary browser download.\n\n## Links and retention\n\n- Each link lasts at most five minutes and never beyond the file's expiry. Request a new link whenever you need one; this does not regenerate the export, charge again or extend retention.\n- After a link expires, request another through this endpoint while the file remains available and your account remains eligible. A transfer started before link expiry may finish afterward; a new request or range retry after expiry needs a fresh link. Revoking an API key or losing eligibility prevents new links, but does not immediately revoke links already issued.\n- Completed files remain unchanged and downloadable after source-project deletion for exactly 720 hours after completion. The export's `result.expires_at` shows when the file becomes unavailable.\n\n## File format\n\n- Every file retains its gzip bytes and is delivered as `application/gzip` with attachment filename `ranking-export.<format>.gz`. The format is `json`, `jsonl` or `csv`.\n- `json` is a single array of records. `jsonl` has one record per line. Both keep native numbers, booleans and `null`.\n- `csv` has a header row and uses the column order listed for the export type in the Exports overview above. Nulls are blank, booleans are `true` or `false`, and strings are quoted with embedded quotes doubled and newlines retained.\n- An empty export is `[]` for `json`, a file with no lines for `jsonl`, and a header row only for `csv`.\n\n## Errors\n\n- `409` `export_not_ready`: the export is `queued`, `processing` or `failed`. Poll its status. For a failed export, read `failure_code` and `failure_message` and submit a smaller or corrected request; it has no download.\n- `410` `export_expired`: the file's retention period has ended. Submit a new export if you still need the data.\n- `404`: the ID is unknown or belongs to another account. Source-project deletion does not revoke access to your export.\n\n## Limits\n\n- Listing exports, checking their status and requesting download links are free and keep working when the credit balance is exhausted.\n- The burst limit is 60 requests per 60 seconds. After a `429`, wait for the `Retry-After` delay before retrying.\n\n## Example\n\nReplace `<api_key>` with your API key and `<export_id>` with the ID of a `ready` export.\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/exports/<export_id>/download' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n",
        "tags": [
          "Exports"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportDownloadResponse"
                }
              }
            }
          },
          "400": {
            "description": "Invalid type, parameters, dates, selection or pagination.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "Missing or expired subscription. Listing exports, checking their status and requesting download links are free and never refused for credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/ExportAccessDenied"
          },
          "404": {
            "description": "Unknown export, or export owned by another account.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "export_not_ready. Poll queued or processing exports; failed exports have no download.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "export_expired. The file retention period ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        },
        "parameters": [
          {
            "name": "exportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            }
          }
        ]
      }
    },
    "/v0/usage": {
      "get": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Account"
        ],
        "summary": "Get current usage",
        "description": "Returns your credit usage for the current allowance cycle and your plan consumption for project groups, keywords, and ASINs. Use this endpoint to check your credit balance before requesting data, creating an export or requesting a report.\n\nWhen your account is charged in credits, `credits` holds:\n\n- `allowance`: the credits granted for the allowance cycle from `period_start` through `period_end`, including any mid-cycle upgrade or adjustment.\n- `used`: credits consumed this cycle by successful actions in the app, the User API and MCP.\n- `held`: credits reserved for exports and reports still running.\n- `balance`: credits left to spend: the allowance less credits used and held, never below 0.\n- `used_by_action`: credits used this cycle per action, each with a readable `name` and the billing `group` it is shown under. Keyword Spy searches and reports, in the app or the API, are `keywords_for_keyword`; ASIN Insights searches and reports are `keywords_for_asin`. Exports are `export_create`.\n\n`request_limit`, `requests_remaining`, `request_count`, `error_count`, `export_record_allowance`, `export_records_used` and `endpoint_counts` are deprecated and blank when your account is charged in credits: `request_limit`, `requests_remaining` and `export_record_allowance` are `null`, and the counts are `0`. They will be removed one month after credits go live; use `credits` instead.\n\nThis endpoint is free: it costs no credits and does not increment `endpoint_counts`, but authenticated requests still update API key `last_used_at`.\n\nRate limit: `60` requests per `60` seconds.\n\nExample request, replacing `<api_key>` with your API key:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/usage' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "operationId": "getUserApiUsage",
        "responses": {
          "200": {
            "description": "Current usage summary.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/UsageResponse"
                },
                "example": {
                  "data": {
                    "period_start": "2026-03-01",
                    "period_end": "2026-03-31",
                    "request_limit": null,
                    "requests_remaining": null,
                    "request_count": 0,
                    "error_count": 0,
                    "export_record_allowance": null,
                    "export_records_used": 0,
                    "endpoint_counts": {
                      "keywords": 0,
                      "projects": 0,
                      "project_create": 0,
                      "project_delete": 0,
                      "project_detail": 0,
                      "project_asins": 0,
                      "project_asins_add": 0,
                      "project_asins_update": 0,
                      "project_asins_remove": 0,
                      "project_keywords": 0,
                      "project_keywords_add": 0,
                      "project_keywords_update": 0,
                      "project_keywords_remove": 0,
                      "project_ranks_by_asin": 0,
                      "live_search": 0,
                      "asin_family": 0,
                      "project_notes": 0,
                      "project_note_detail": 0,
                      "project_note_create": 0,
                      "project_note_delete": 0,
                      "project_note_update": 0,
                      "project_labels": 0,
                      "project_label_create": 0,
                      "project_label_update": 0,
                      "project_label_delete": 0,
                      "item_labels": 0,
                      "item_label_create": 0,
                      "item_label_update": 0,
                      "item_label_delete": 0,
                      "project_update": 0,
                      "export_create": 0,
                      "exports": 0,
                      "export_detail": 0,
                      "export_download": 0
                    },
                    "resource_usage": {
                      "projects": {
                        "current": 4,
                        "limit": 10
                      },
                      "keywords": {
                        "current": 320,
                        "limit": 500
                      },
                      "asins": {
                        "current": 75,
                        "limit": 250
                      }
                    },
                    "updated_at": "2026-03-16T09:42:18.000Z",
                    "credits": {
                      "allowance": 50000,
                      "used": 7070,
                      "held": 300,
                      "balance": 42630,
                      "used_by_action": [
                        {
                          "action": "keywords_for_asin",
                          "name": "ASIN Insights (keywords for an ASIN)",
                          "group": "reports",
                          "credits": 500
                        },
                        {
                          "action": "keywords_for_keyword",
                          "name": "Keyword Spy (keywords for a keyword)",
                          "group": "reports",
                          "credits": 300
                        },
                        {
                          "action": "export_create",
                          "name": "Exports (User API and MCP)",
                          "group": "exports",
                          "credits": 240
                        },
                        {
                          "action": "live_search",
                          "name": "Live search",
                          "group": "live_searches",
                          "credits": 1200
                        },
                        {
                          "action": "keywords",
                          "name": "Keyword data",
                          "group": "keyword_data",
                          "credits": 4100
                        },
                        {
                          "action": "project_keywords",
                          "name": "List project keywords",
                          "group": "standard_requests",
                          "credits": 210
                        },
                        {
                          "action": "project_asins",
                          "name": "List project ASINs",
                          "group": "standard_requests",
                          "credits": 155
                        },
                        {
                          "action": "projects",
                          "name": "List projects",
                          "group": "standard_requests",
                          "credits": 120
                        },
                        {
                          "action": "project_detail",
                          "name": "Get a project",
                          "group": "standard_requests",
                          "credits": 90
                        },
                        {
                          "action": "project_ranks_by_asin",
                          "name": "Project ranks by ASIN",
                          "group": "standard_requests",
                          "credits": 65
                        },
                        {
                          "action": "project_keywords_add",
                          "name": "Add project keywords",
                          "group": "standard_requests",
                          "credits": 30
                        },
                        {
                          "action": "project_asins_add",
                          "name": "Add project ASINs",
                          "group": "standard_requests",
                          "credits": 25
                        },
                        {
                          "action": "project_keywords_remove",
                          "name": "Remove project keywords",
                          "group": "standard_requests",
                          "credits": 20
                        },
                        {
                          "action": "project_asins_remove",
                          "name": "Remove project ASINs",
                          "group": "standard_requests",
                          "credits": 15
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes include `unknown_query_parameter` and `unknown_body_parameter`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "unknown_query_parameter",
                    "message": "Unknown query parameter: foo"
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequiredFree"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      }
    },
    "/v0/keywords": {
      "get": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Keywords"
        ],
        "summary": "Get keyword data",
        "description": "Returns weekly or monthly keyword data for one or more keywords in an Amazon marketplace.\n\n**Required query parameters**\n\n- `marketplace`: Amazon marketplace code.\n- `keywords`: One or more keywords. How they are read depends on how many `keywords` parameters you send:\n  - **More than one:** each value is one whole keyword and is never split, so it may contain commas: `keywords=stair%20basket%2C%20wooden&keywords=dog%20bed` requests two keywords.\n  - **Exactly one:** the value is split on commas: `keywords=garlic%20press,garlic%20crusher` requests two keywords. This comma-separated form is deprecated.\n\n  To request a single keyword that contains a comma, send it twice: `keywords=stair%20basket%2C%20wooden&keywords=stair%20basket%2C%20wooden`.\n- `start_date`: First date in the requested range.\n- `interval`: Either `weekly` or `monthly`.\n\n**Optional query parameters**\n\n- `end_date`: Last date in the requested range. Defaults to `start_date` when omitted.\n- `include_asins`: Defaults to `false`. When `true`, each record also includes data for `asin_1`, `asin_2`, and `asin_3`.\n\n**Request limits**\n\n- Up to `100` keywords, or `25` when `include_asins=true`.\n- Up to `26` weekly intervals or `24` monthly intervals.\n\n**Plan history window**\n\nEvery successful response returns `data.plan_history_window` for the requested marketplace and interval: `start_period` and `latest_loaded_period`, each the start date of a period. The window ends at the latest loaded period: the newest weekly or monthly period Datarova has stored. A period can have started, or even ended, before it is loaded. The window starts at the oldest stored period, or later when your plan limits history to a number of months back from the latest loaded period. It moves forward as new periods load. `GET /v0/data-availability` returns the same dates for every marketplace, so you can choose `start_date` and `end_date` before you request.\n\nWhat happens outside the window depends on your plan:\n\n- Plans with a history limit: a request with any period before the window, or after the latest loaded period, is rejected whole with `403 date_range_not_available_on_plan` and is not charged. The error carries `allowed_start_date` (the window start) and `latest_loaded_period`; keep `start_date` and `end_date` between them. If only the end is outside, the period is not loaded yet and the same request succeeds once it loads.\n- Plans without a history limit: the request is served and charged, and periods outside the window are missing from `records`. A missing period can therefore mean it is not loaded yet; check `latest_loaded_period` to tell.\n\nInput validation errors, including `future_dates_not_allowed` and `date_range_exceeded`, are returned before the window is checked.\n\nRate limit: `10` requests per `60` seconds.\n\nEach successful request costs 1 credit per record returned, one keyword in one period, with a minimum of 1 credit. Before it runs, the request is refused with `402 insufficient_credits` unless your credit balance covers every keyword requested times every period requested. On a successful response `X-Quota-Cost` reports the credits actually charged; an error response reports the credits the balance was checked against.\n\nExample request:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/keywords?marketplace=US&keywords=garlic%20press&keywords=garlic%20crusher&start_date=2026-01-01&end_date=2026-02-01&interval=monthly&include_asins=true' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "operationId": "getUserApiKeywords",
        "parameters": [
          {
            "name": "marketplace",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "US",
                "CA",
                "MX",
                "UK",
                "DE",
                "FR",
                "IT",
                "ES",
                "AU"
              ]
            },
            "description": "Marketplace code."
          },
          {
            "name": "keywords",
            "in": "query",
            "required": true,
            "schema": {
              "oneOf": [
                {
                  "type": "string"
                },
                {
                  "type": "array",
                  "items": {
                    "type": "string"
                  }
                }
              ]
            },
            "style": "form",
            "explode": true,
            "description": "Keywords to request. Send one parameter per keyword. With more than one `keywords` parameter, each value is a whole keyword, commas included; with exactly one, it is split on commas (deprecated). Maximum 100 normalized keywords per request, or 25 when `include_asins=true`."
          },
          {
            "name": "start_date",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Inclusive requested start date in `YYYY-MM-DD` format. For plans with a historical-data limit, the requested range must be inside the allowed historical-data window."
          },
          {
            "name": "end_date",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date"
            },
            "description": "Inclusive requested end date in `YYYY-MM-DD` format. Defaults to `start_date` when omitted. For plans with a historical-data limit, the requested range must be inside the allowed historical-data window."
          },
          {
            "name": "interval",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "weekly",
                "monthly"
              ]
            },
            "description": "Aggregation interval. Maximum 26 weekly intervals or 24 monthly intervals."
          },
          {
            "name": "include_asins",
            "in": "query",
            "required": false,
            "schema": {
              "type": "boolean"
            },
            "description": "When `true`, includes `asin_1`, `asin_2`, and `asin_3` objects on each keyword record. Defaults to `false`. When enabled, the maximum keyword count is 25."
          }
        ],
        "responses": {
          "200": {
            "description": "Keyword interval data.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/KeywordsResponse"
                },
                "example": {
                  "data": {
                    "marketplace": "US",
                    "start_date": "2026-01-01",
                    "end_date": "2026-02-01",
                    "interval": "monthly",
                    "plan_history_window": {
                      "start_period": "2025-11-01",
                      "latest_loaded_period": "2026-09-01"
                    },
                    "requested_keywords": [
                      "garlic press",
                      "garlic crusher"
                    ],
                    "keywords": [
                      {
                        "keyword": "garlic press",
                        "records": [
                          {
                            "date": "2026-01-01",
                            "clicks": 100,
                            "sales": 20,
                            "conversion_rate": 20,
                            "asin_1": {
                              "asin": "B0C4XYZ123",
                              "clicks": 45,
                              "sales": 12,
                              "conversion_rate": 26.7
                            },
                            "asin_2": {
                              "asin": "B0C4XYZ456",
                              "clicks": 33,
                              "sales": 5,
                              "conversion_rate": 15.2
                            },
                            "asin_3": {
                              "asin": "B0C4XYZ789",
                              "clicks": 22,
                              "sales": 3,
                              "conversion_rate": 13.6
                            }
                          },
                          {
                            "date": "2026-02-01",
                            "clicks": 200,
                            "sales": 50,
                            "conversion_rate": 25,
                            "asin_1": {
                              "asin": "B0C4XYZ123",
                              "clicks": 83,
                              "sales": 24,
                              "conversion_rate": 28.9
                            },
                            "asin_2": {
                              "asin": "B0C4XYZ456",
                              "clicks": 70,
                              "sales": 16,
                              "conversion_rate": 22.9
                            },
                            "asin_3": {
                              "asin": "B0C4XYZ789",
                              "clicks": 47,
                              "sales": 10,
                              "conversion_rate": 21.3
                            }
                          }
                        ]
                      },
                      {
                        "keyword": "garlic crusher",
                        "records": []
                      }
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input. Implemented codes include `unknown_query_parameter`, `unknown_body_parameter`, `missing_marketplace`, `missing_keywords`, `missing_start_date`, `missing_interval`, `invalid_marketplace`, `invalid_keywords`, `invalid_date`, `invalid_date_range`, `future_dates_not_allowed`, `date_range_exceeded`, `keyword_limit_exceeded`, `invalid_interval`, and `invalid_include_asins`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "keyword_limit_exceeded": {
                    "summary": "Too many keywords",
                    "value": {
                      "error": {
                        "code": "keyword_limit_exceeded",
                        "message": "A maximum of 100 keywords can be requested at once."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "description": "Feature disabled, or, on a plan with a history limit, a requested period is before the plan history window or after the latest loaded period. `date_range_not_available_on_plan` also carries `allowed_start_date` and `latest_loaded_period`.",
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/ErrorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/KeywordPeriodErrorResponse"
                    }
                  ]
                },
                "examples": {
                  "feature_not_enabled": {
                    "summary": "User API feature disabled",
                    "value": {
                      "error": {
                        "code": "feature_not_enabled",
                        "message": "User API feature is not enabled for this account."
                      }
                    }
                  },
                  "date_range_not_available_on_plan": {
                    "summary": "A requested period is outside the plan history window",
                    "value": {
                      "error": {
                        "code": "date_range_not_available_on_plan",
                        "message": "Requested date range is outside the historical data window for this plan.",
                        "allowed_start_date": "2026-04-01",
                        "latest_loaded_period": "2026-09-01"
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      }
    },
    "/v0/projects": {
      "get": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project management"
        ],
        "summary": "List projects",
        "description": "Returns owned projects ordered by `project_id` descending. Supports cursor pagination.\n\nRate limit: `60` requests per `60` seconds.\n\nExample request:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/projects?limit=50' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n\nExample next-page request:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/projects?limit=50&cursor=<next_cursor>' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "operationId": "listUserApiProjects",
        "parameters": [
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Projects page.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectsResponse"
                },
                "example": {
                  "data": {
                    "projects": [
                      {
                        "project_name": "Garlic Press",
                        "should_track_variations": true,
                        "keywords_count": 186,
                        "asins_count": 5,
                        "labels": [
                          {
                            "label_name": "priority",
                            "color": "red",
                            "label_id": 1
                          },
                          {
                            "label_name": "launch-q1",
                            "color": "blue",
                            "label_id": 1
                          }
                        ],
                        "marketplaces": [
                          {
                            "project_id": 1248,
                            "marketplace": "US",
                            "created_at": "2026-01-12",
                            "keywords_count": 102,
                            "asins_count": 3
                          },
                          {
                            "project_id": 1256,
                            "marketplace": "CA",
                            "created_at": "2026-01-18",
                            "keywords_count": 84,
                            "asins_count": 2
                          }
                        ]
                      },
                      {
                        "project_name": "Milk Frother",
                        "should_track_variations": false,
                        "keywords_count": 73,
                        "asins_count": 2,
                        "labels": [
                          {
                            "label_name": "watchlist",
                            "color": "gray",
                            "label_id": 1
                          }
                        ],
                        "marketplaces": [
                          {
                            "project_id": 1192,
                            "marketplace": "US",
                            "created_at": "2025-12-03",
                            "keywords_count": 73,
                            "asins_count": 2
                          }
                        ]
                      }
                    ],
                    "page": {
                      "limit": 50,
                      "next_cursor": "eyJsYXN0X3Byb2plY3RfaWQiOjExOTJ9",
                      "has_more": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes include `unknown_query_parameter`, `unknown_body_parameter`, `invalid_limit`, and `invalid_cursor`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_cursor",
                    "message": "Invalid cursor."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      },
      "post": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project management"
        ],
        "summary": "Create a project",
        "description": "Creates an empty project for one Amazon marketplace. The new project initially contains no ASINs or keywords.\n\n**Project names**\n\nIf you don't already have a project with this name, this creates a standalone project.\n\nIf you already have a project with the same name in another marketplace, the new project joins it in a project group. Each group can contain only one project per marketplace.\n\n**Optional labels**\n\nUse `label_ids` to assign existing project labels.\n\n**When creating a standalone project:**\n\n- Supply label IDs to assign those labels to the new project.\n- Omit `label_ids` or supply `[]` to create the project without labels.\n\n**When adding another marketplace to an existing project group:**\n\n- Omit `label_ids` to inherit the group's existing labels. Labels on existing projects remain unchanged.\n- Supply label IDs to replace the labels on every project in the group, including the new project.\n- Supply `[]` to remove labels from every project in the group.\n\nFor example, if you already have US and UK projects named \"Kitchen tools\", creating a German project with that name and `label_ids: [3]` assigns only label 3 to all three projects.\n\nLabel IDs must come from your account's project-label catalog. Item-label IDs and unavailable IDs are rejected. Duplicate IDs and their order do not affect the selection.\n\nIf creation fails, no project is created and existing labels remain unchanged. Creating a project that already exists for the same name and marketplace returns `409` with its project ID and leaves labels unchanged.\n\n**Variation tracking**\n\nFor a new project group, `should_track_variations` defaults to `true` when omitted. When adding a marketplace to an existing group, the existing variation-tracking setting is inherited. If you provide a value, it must match the group's current setting.\n\nRate limit: `60` requests per `60` seconds.\n\nExample request:\n\n```bash\ncurl --request POST \\\n  --url https://api.datarova.com/v0/projects \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"project_name\":\"Garlic Press\",\"marketplace\":\"US\",\"should_track_variations\":true}'\n```",
        "operationId": "createUserApiProject",
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateProjectRequest"
              },
              "examples": {
                "unlabeledOrInherit": {
                  "summary": "Omit labels: new group is unlabeled; added marketplace inherits",
                  "value": {
                    "project_name": "Garlic Press",
                    "marketplace": "US",
                    "should_track_variations": true
                  }
                },
                "oneLabel": {
                  "summary": "Create with one existing project label",
                  "value": {
                    "project_name": "Garlic Press",
                    "marketplace": "US",
                    "label_ids": [
                      1
                    ]
                  }
                },
                "severalLabels": {
                  "summary": "Create with several existing labels",
                  "value": {
                    "project_name": "Garlic Press",
                    "marketplace": "US",
                    "label_ids": [
                      1,
                      2
                    ]
                  }
                },
                "replaceWholeGroup": {
                  "summary": "Replace US/UK labels 1 and 2 with label 3 while adding Germany",
                  "value": {
                    "project_name": "Garlic Press",
                    "marketplace": "DE",
                    "label_ids": [
                      3
                    ]
                  }
                },
                "clearWholeGroup": {
                  "summary": "Clear all group labels while adding Canada",
                  "value": {
                    "project_name": "Garlic Press",
                    "marketplace": "CA",
                    "label_ids": []
                  }
                }
              }
            }
          }
        },
        "responses": {
          "201": {
            "description": "Empty project created.",
            "headers": {
              "Location": {
                "description": "Canonical path for the created project.",
                "schema": {
                  "type": "string",
                  "example": "/v0/projects/1248"
                }
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponse"
                },
                "example": {
                  "data": {
                    "project": {
                      "project_id": 1248,
                      "project_name": "Garlic Press",
                      "created_at": "2026-09-01",
                      "marketplace": "US",
                      "should_track_variations": true,
                      "keywords_count": 0,
                      "asins_count": 0,
                      "labels": []
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input. Implemented codes include `invalid_project_name`, `invalid_marketplace`, `invalid_should_track_variations`, `invalid_label_ids`, `labels_unavailable`, `unknown_query_parameter`, and `unknown_body_parameter`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "description": "The User API feature is unavailable, or the account cannot create another project group. Adding a marketplace to an existing group is allowed at the project-group limit but rejected when the account is already over it. Implemented codes include `feature_not_enabled` and `project_limit_exceeded`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "The requested marketplace already exists in the matching project group, an explicitly supplied variation setting conflicts with the group, or the normalized name ambiguously matches multiple groups.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/CreateProjectConflictResponse"
                },
                "examples": {
                  "project_already_exists": {
                    "summary": "Marketplace already exists in the project group",
                    "value": {
                      "error": {
                        "code": "project_already_exists",
                        "message": "A project with this name and marketplace already exists.",
                        "project_id": 1248
                      }
                    }
                  },
                  "project_settings_conflict": {
                    "summary": "Variation setting conflicts with the project group",
                    "value": {
                      "error": {
                        "code": "project_settings_conflict",
                        "message": "should_track_variations must match the existing project group."
                      }
                    }
                  },
                  "project_group_ambiguous": {
                    "summary": "Normalized name matches multiple project groups",
                    "value": {
                      "error": {
                        "code": "project_group_ambiguous",
                        "message": "The project name matches multiple existing project groups."
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      }
    },
    "/v0/projects/{projectId}": {
      "get": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project management"
        ],
        "summary": "Get project",
        "description": "Returns a single owned project.\n\nRate limit: `60` requests per `60` seconds.\n\nExample request:\n\n```bash\ncurl --request GET \\\n  --url https://api.datarova.com/v0/projects/1248 \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "operationId": "getUserApiProject",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          }
        ],
        "responses": {
          "200": {
            "description": "Project found.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponse"
                },
                "example": {
                  "data": {
                    "project": {
                      "project_id": 1248,
                      "project_name": "Garlic Press",
                      "created_at": "2026-01-12",
                      "marketplace": "US",
                      "should_track_variations": true,
                      "keywords_count": 102,
                      "asins_count": 3,
                      "labels": [
                        {
                          "label_name": "priority",
                          "color": "red",
                          "label_id": 1
                        },
                        {
                          "label_name": "launch-q1",
                          "color": "blue",
                          "label_id": 1
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes include `invalid_project_id`, `unknown_query_parameter`, and `unknown_body_parameter`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_project_id",
                    "message": "Invalid project id."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "Owned project not found. Implemented code is `project_not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "project_not_found",
                    "message": "Project not found."
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      },
      "delete": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project management"
        ],
        "summary": "Delete an empty project",
        "description": "Deletes one marketplace project. The project must contain no ASINs or keywords.\n\n**Before deleting a project**\n\n- Remove all ASINs and keywords from the project.\n- Send the project ID in the URL. This endpoint does not accept a request body or query parameters.\n\n**Project-group behavior**\n\n- Only the marketplace project identified by `projectId` is deleted. Other marketplaces in the same project group remain unchanged.\n\nA successful deletion returns `204` with no response body.\n\nRate limit: `60` requests per `60` seconds. Each successful deletion costs 5 credits and is recorded under `project_delete`.\n\nExample request:\n\n```bash\ncurl --request DELETE \\\n  --url https://api.datarova.com/v0/projects/1248 \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "operationId": "deleteUserApiProject",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          }
        ],
        "responses": {
          "204": {
            "description": "Project deleted. The response has no body.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes include `invalid_project_id`, `unknown_query_parameter`, and `unknown_body_parameter`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "$ref": "#/components/responses/ProjectNotFound"
          },
          "409": {
            "description": "The project still contains one or more ASINs or keywords. Implemented code is `project_not_empty`; the response does not include ASIN or keyword counts.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "project_not_empty",
                    "message": "Project is not empty."
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      },
      "patch": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project management"
        ],
        "summary": "Update a project",
        "description": "Updates a project's name, labels, or both. Only supplied fields are changed.\n\n**Request rules**\n\n- Send the project ID in the URL.\n- Supply `project_name`, `label_ids`, or both.\n- Omitted fields keep their current values.\n- Other fields and query parameters are not accepted.\n\n**Project name**\n\n- Supply `project_name` to rename the project.\n- Leading and trailing ASCII whitespace is removed. The name cannot be blank.\n- Capitalization and spaces within the name are preserved. You can change just the capitalization.\n- Renaming to a different normalized name already used by another project group in your account returns `409 project_name_conflict`. Capitalization-only changes or updates that keep the same normalized name are allowed, even if older project groups already share that name.\n\n**Project labels**\n\n- Supply `label_ids` to replace the project's current labels with the selected labels.\n- Supply `[]` to remove all labels.\n- Omit `label_ids` to leave labels unchanged.\n- Use existing IDs from your account's project-label catalog. Item-label IDs and unavailable IDs are rejected. Duplicate IDs are ignored.\n\n**If the project is linked to other marketplaces**\n\nFor a standalone project, only that project changes.\n\nIf the project belongs to a group spanning multiple marketplaces, name and label changes apply to every project in that group. You can use any member's project ID.\n\nFor example, renaming a US project linked to a UK project renames both. Replacing or clearing labels also affects both.\n\n**Results**\n\nA successful request returns `200` with the updated project identified by the supplied ID.\n\nIf either the name or labels are invalid, neither change is applied. A project that does not exist in your account returns `404 project_not_found`.\n\nProject IDs, marketplace links, variation tracking, ASINs, keywords, and history remain unchanged.\n\nRepeating the same update succeeds. Each successful request costs 5 credits and is recorded as `project_update`.\n\nRate limit: `60` requests per `60` seconds.\n\n**Example request**\n\nRename a project and replace its labels with labels 1 and 2:\n\n```bash\ncurl --request PATCH \\\n  --url 'https://api.datarova.com/v0/projects/1248' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"project_name\":\"Kitchen tools\",\"label_ids\":[1,2]}'\n```",
        "operationId": "updateUserApiProject",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          }
        ],
        "responses": {
          "200": {
            "description": "Group updated. Returns the addressed marketplace project.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectResponse"
                },
                "example": {
                  "data": {
                    "project": {
                      "project_id": 1248,
                      "project_name": "Garlic Press",
                      "created_at": "2026-01-12",
                      "marketplace": "US",
                      "should_track_variations": true,
                      "keywords_count": 102,
                      "asins_count": 3,
                      "labels": [
                        {
                          "label_name": "priority",
                          "color": "red",
                          "label_id": 1
                        },
                        {
                          "label_name": "launch-q1",
                          "color": "blue",
                          "label_id": 2
                        }
                      ]
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input: invalid_request, invalid_project_id, invalid_project_name, invalid_label_ids, labels_unavailable, unknown_query_parameter, unknown_body_parameter. Missing, foreign and wrong-catalog references all return labels_unavailable without metadata.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_project_id",
                    "message": "Invalid project id."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "Owned project not found. Implemented code is `project_not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "project_not_found",
                    "message": "Project not found."
                  }
                }
              }
            }
          },
          "409": {
            "description": "project_name_conflict when another account-owned group uses a changed normalized name, or project_group_unavailable when the owned project has no group. Neither names nor labels change.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "project_name_conflict",
                    "message": "Another project group already uses this name."
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "type": "object",
                "additionalProperties": false,
                "minProperties": 1,
                "properties": {
                  "project_name": {
                    "type": "string",
                    "description": "Non-blank project name after trimming outer ASCII whitespace."
                  },
                  "label_ids": {
                    "type": "array",
                    "items": {
                      "type": "integer",
                      "minimum": 1,
                      "maximum": 2147483647
                    },
                    "description": "Optional complete project-label selection for every marketplace in the group. Existing account-owned project-label IDs only. Duplicates are ignored. Empty clears; omission preserves each member's existing labels. Null and non-integer IDs are invalid. Catalog pagination size is not an assignment limit."
                  }
                }
              },
              "examples": {
                "rename": {
                  "value": {
                    "project_name": "Kitchen tools"
                  }
                },
                "capitalize": {
                  "value": {
                    "project_name": "KITCHEN TOOLS"
                  }
                },
                "replace_labels": {
                  "value": {
                    "label_ids": [
                      1,
                      2,
                      1
                    ]
                  }
                },
                "clear_labels": {
                  "value": {
                    "label_ids": []
                  }
                },
                "combined": {
                  "value": {
                    "project_name": "Kitchen tools",
                    "label_ids": [
                      2
                    ]
                  }
                },
                "retry": {
                  "summary": "Repeat the same request safely; each success costs 5 credits",
                  "value": {
                    "project_name": "Kitchen tools",
                    "label_ids": [
                      2
                    ]
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v0/projects/{projectId}/asins": {
      "get": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project ASINs"
        ],
        "summary": "List project ASINs",
        "description": "Returns project ASINs for an owned project using cursor pagination.\n\nRate limit: `60` requests per `60` seconds.\n\nExample request:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/projects/1248/asins?limit=50' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "operationId": "listUserApiProjectAsins",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "ASIN page.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectAsinsResponse"
                },
                "example": {
                  "data": {
                    "asins": [
                      {
                        "asin": "B0C4XYZ123",
                        "title": "Premium Stainless Steel Garlic Press",
                        "brand": "KitchenNova",
                        "image_url": "https://images.example.com/asins/B0C4XYZ123/main.jpg",
                        "price": 24.99,
                        "reviews": 1842,
                        "rating": 4.6,
                        "primary_asin": true,
                        "keywords_in_top_10": 37,
                        "choice_badges": 2,
                        "visibility": 82.4,
                        "latest_bsr": 1487,
                        "top_level_category": "Kitchen & Dining",
                        "labels": [
                          {
                            "label_name": "hero",
                            "color": "green",
                            "label_id": 1
                          }
                        ]
                      },
                      {
                        "asin": "B0C4XYZ456",
                        "title": "Garlic Press with Cleaning Brush",
                        "brand": "KitchenNova",
                        "image_url": "https://images.example.com/asins/B0C4XYZ456/main.jpg",
                        "price": 19.99,
                        "reviews": 934,
                        "rating": 4.4,
                        "primary_asin": false,
                        "keywords_in_top_10": 18,
                        "choice_badges": 0,
                        "visibility": 61.2,
                        "latest_bsr": 3928,
                        "top_level_category": "Kitchen & Dining",
                        "labels": [
                          {
                            "label_name": "test-variant",
                            "color": "orange",
                            "label_id": 1
                          }
                        ]
                      }
                    ],
                    "page": {
                      "limit": 50,
                      "next_cursor": "eyJsYXN0X2lkIjo0ODQyfQ",
                      "has_more": true
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes include `invalid_project_id`, `unknown_query_parameter`, `unknown_body_parameter`, `invalid_limit`, and `invalid_cursor`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_limit",
                    "message": "Limit must be between 1 and 200."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "Owned project not found. Implemented code is `project_not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "project_not_found",
                    "message": "Project not found."
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      },
      "post": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project ASINs"
        ],
        "summary": "Add project ASINs",
        "description": "Adds up to 25 ASINs to a marketplace project and returns which were added or already present. Use it to start tracking new products, optionally applying the same labels to every new item.\n\n### Request rules\n\nUse the marketplace project’s `project_id` from `GET /v0/projects` and item-label IDs from `GET /v0/item-labels`. The project and labels must belong to your account. Project-label IDs cannot be used here. User API access and a credit balance that covers the call's 5 credits are required.\n\n#### ASINs and limits\n\n- Send 1 to 25 ASINs. Surrounding whitespace is removed and letters are uppercased. Repeated identities are processed once.\n\n#### Optional labels\n\n- Omit `label_ids` or send `[]` to add new products without labels. Send `[12]` for one label or `[12,34]` for several. Duplicate IDs are ignored; `null` is invalid.\n- An existing ASIN or already represented variation family keeps its labels. Use PATCH to replace or clear them. Unknown fields and query parameters are rejected.\n\nIn a variation-tracking project, requesting a parent adds the first child returned by Amazon and retains the parent as an alternate identifier. The new child receives your selected labels. Projects that track exact ASINs do not accept parent ASINs.\n\n### Results and errors\n\nA `200` response contains `data.added_asins`, `data.unchanged_asins`, `data.invalid_asins`, `data.validation_unavailable_asins` and `data.primary_asin`. Added and unchanged entries identify the requested and stored ASINs and whether the product is primary. Success confirms project membership; product details and ranking results may become available later.\n\nInvalid or unavailable ASINs can appear alongside successful additions. Correct invalid values; retry temporarily unavailable values later. Already represented products remain unchanged.\n\nInvalid labels reject the whole request, including an all-existing batch. For `400 invalid_label_ids`, correct the list; for `400 labels_unavailable`, refresh your item-label catalog. Accepted products and labels are saved together. Only ASINs new to the account consume tracked-ASIN capacity; if the accepted additions would exceed that limit, `409` rejects all additions. Reduce the batch or free capacity before retrying. For `404 project_not_found`, choose an accessible marketplace project.\n\n### Rate limits and usage\n\nThe burst limit is **10 requests per 60 seconds**. When enforced, responses include `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. After `429`, wait the number of seconds in `Retry-After` before retrying.\n\nEach successful batch costs 5 credits, including a batch that changes nothing, and is recorded under `project_asins_add`. See the shared quota headers and errors for your credit balance. Labels themselves do not consume tracked-item capacity.\n\n### Example requests\n\nReplace `<api_key>` and `<project_id>`. The ASINs and label IDs below are illustrative. Start with a request without labels:\n\n```bash\ncurl --request POST \\\n  --url 'https://api.datarova.com/v0/projects/<project_id>/asins' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"asins\":[\"B00PKNO7LK\",\"B07FZ8S74R\"]}'\n```\n\nTo label every new item, use this body with the same method, URL and headers. Replace 12 and 34 with IDs from your item-label catalog:\n\n```json\n{\"asins\":[\"B00PKNO7LK\",\"B07FZ8S74R\"],\"label_ids\":[12,34]}\n```\n\nUse `[12]` for one label. Omit `label_ids` or send `[]` for no labels on new items. Existing items keep their current labels in every variant.",
        "operationId": "addUserApiProjectAsins",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectAsinsAddRequest"
              },
              "examples": {
                "unlabeled": {
                  "summary": "Add items without labels",
                  "value": {
                    "asins": [
                      "B00PKNO7LK",
                      "B07FZ8S74R"
                    ]
                  }
                },
                "labeled": {
                  "summary": "Apply two labels to new items only",
                  "value": {
                    "asins": [
                      "B00PKNO7LK",
                      "B07FZ8S74R"
                    ],
                    "label_ids": [
                      12,
                      34
                    ]
                  }
                },
                "single_label": {
                  "summary": "Apply one label to new items only",
                  "value": {
                    "asins": [
                      "B00PKNO7LK"
                    ],
                    "label_ids": [
                      12
                    ]
                  }
                },
                "empty_selection": {
                  "summary": "An empty selection leaves new items unlabeled",
                  "value": {
                    "asins": [
                      "B00PKNO7LK",
                      "B07FZ8S74R"
                    ],
                    "label_ids": []
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ordered addition result. `added_asins` and `unchanged_asins` identify each requested ASIN, the ASIN stored in the project, and whether it is primary. The invalid and unavailable arrays identify the requested ASIN and reason.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectAsinsAddResponse"
                },
                "example": {
                  "data": {
                    "project_id": 1248,
                    "added_asins": [
                      {
                        "requested_asin": "B0C4XYZ123",
                        "added_asin": "B0C4XYZ123",
                        "is_primary": true
                      },
                      {
                        "requested_asin": "B0PARENT01",
                        "added_asin": "B0CHILD001",
                        "is_primary": false
                      }
                    ],
                    "unchanged_asins": [],
                    "invalid_asins": [
                      {
                        "requested_asin": "BAD",
                        "reason": "invalid_asin"
                      }
                    ],
                    "validation_unavailable_asins": [],
                    "primary_asin": "B0C4XYZ123"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes include `invalid_project_id`, `unknown_query_parameter`, `unknown_body_parameter`, `invalid_request_body`, `invalid_asins`, and `invalid_asin` for a non-string member.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "$ref": "#/components/responses/ProjectNotFound"
          },
          "409": {
            "description": "Adding the whole batch would exceed the tracked-ASIN plan allowance. Implemented code is `tracked_asin_limit_exceeded`; no ASINs are added.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/TrackedAsinLimitExceededResponse"
                },
                "example": {
                  "error": {
                    "code": "tracked_asin_limit_exceeded",
                    "message": "Adding these ASINs would exceed the account tracked ASIN limit.",
                    "current": 250,
                    "limit": 250,
                    "requested_new_tracked_asins": 1
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "description": "The credit balance could not be verified, or the ASIN update and historical-data preparation could not complete. Implemented codes are `credit_balance_unavailable` and `project_asin_mutation_unavailable`; retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "delete": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project ASINs"
        ],
        "summary": "Remove project ASINs",
        "description": "Removes between `1` and `100` ASINs from a project.\n\n**Request rules**\n\n- Send the ASINs in the `asins` array.\n- Values are trimmed, converted to uppercase, and deduplicated in their original order.\n\n**How ASINs are matched**\n\n- An exact ASIN currently in the project can be removed.\n- In a variation-tracking project, the retained parent identifier can remove the child ASIN saved in the project.\n- A different child from the same variation family does not remove the saved ASIN.\n- Missing ASINs and multiple requested identifiers that resolve to the same saved ASIN are successful no-ops.\n\n**After removal**\n\nIf the primary ASIN is removed, the oldest remaining ASIN becomes primary. A cleanup failure returns `503`; retry the request.\n\nRate limit: `10` requests per `60` seconds. Each successful removal costs 5 credits and is recorded under `project_asins_remove`.\n\nExample request:\n\n```bash\ncurl --request DELETE \\\n  --url https://api.datarova.com/v0/projects/1248/asins \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"asins\":[\"B0PARENT01\",\"B0MISSING1\"]}'\n```",
        "operationId": "removeUserApiProjectAsins",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectAsinsRemoveRequest"
              },
              "example": {
                "asins": [
                  "B00PKNO7LK"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Ordered removal result. Removed and unchanged entries identify the requested ASIN, the ASIN stored in the project, and whether it was primary before removal.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectAsinsRemoveResponse"
                },
                "example": {
                  "data": {
                    "project_id": 1248,
                    "removed_asins": [
                      {
                        "requested_asin": "B0PARENT01",
                        "removed_asin": "B0CHILD001",
                        "is_primary": true
                      }
                    ],
                    "unchanged_asins": [
                      {
                        "requested_asin": "B0MISSING1",
                        "unchanged_asin": "B0MISSING1",
                        "is_primary": false
                      }
                    ],
                    "primary_asin": "B0C4XYZ123"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes include `invalid_project_id`, `unknown_query_parameter`, `unknown_body_parameter`, `invalid_request_body`, `invalid_asins`, and `invalid_asin` for a non-string member.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "$ref": "#/components/responses/ProjectNotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "description": "The credit balance could not be verified, or the ASIN removal and ranking cleanup could not complete. Implemented codes are `credit_balance_unavailable` and `project_asin_mutation_unavailable`; retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          }
        }
      },
      "patch": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project ASINs"
        ],
        "summary": "Replace ASIN labels",
        "description": "Replaces the item labels on existing ASINs in one marketplace project and returns which changed or already had that selection. Use it to reorganize items or clear their labels without removing them or changing tracking and history.\n\n### Request rules\n\nUse the marketplace project’s `project_id` from `GET /v0/projects` and item-label IDs from `GET /v0/item-labels`. The project and labels must belong to your account. Project-label IDs cannot be used here. User API access and a credit balance that covers the call's 5 credits are required.\n\n- Send 1 to 1,000 ASINs; the limit counts submitted entries before duplicates are removed. Normalized duplicates are processed once, in first-seen order.\n- Supply the complete desired `label_ids` selection. Labels left out are removed. Use `[12]` for one label, `[12,34]` for several, or `[]` to clear assignments without deleting catalog labels.\n- Omitted or `null` label selections are invalid. Duplicate label IDs and their order do not change the selection. No other fields or query parameters are accepted.\n\nASINs are trimmed and uppercased and must contain exactly 10 letters or digits. Use an exact attached ASIN or, in a variation-tracking project, its retained parent identifier. Other variation siblings are not matched. If you supply both the retained parent and its attached child, both receive the same outcome.\n\nThe complete JSON body, including labels and whitespace, must fit within 2 MiB, or 2,097,152 bytes.\n\n### Results and errors\n\nA `200` response contains `data.project_id`, the accepted `data.label_ids` in ascending order, and `data.updated_asins` and `data.unchanged_asins`. Each normalized submitted identity appears in exactly one list. The lists contain ASIN strings, including a submitted retained-parent identity, rather than requested/stored ASIN objects. An identical retry succeeds with every item unchanged. Existing item reads show the saved labels.\n\nThe whole batch succeeds or nothing changes. For `404 project_not_found` or `404 asin_not_found`, check the project and requested items. For `400 invalid_label_ids`, correct the list; for `400 labels_unavailable`, refresh your item-label catalog. Reduce the serialized body after `413 request_body_too_large`, and correct malformed input before retrying.\n\nThe same items in other projects or marketplaces are unaffected. Label replacement does not change tracking, history, variation settings or the primary ASIN, or consume tracked-item capacity, so it remains available at that capacity limit.\n\n### Rate limits and usage\n\nThe burst limit is **10 requests per 60 seconds**. When enforced, responses include `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. After `429`, wait the number of seconds in `Retry-After` before retrying.\n\nEach successful batch costs 5 credits, including a batch that changes nothing, and is recorded under `project_asins_update`. See the shared quota headers and errors for your credit balance. Labels themselves do not consume tracked-item capacity.\n\n### Example requests\n\nReplace `<api_key>` and `<project_id>`. The items and label IDs below are illustrative; use IDs from your own item-label catalog and items already in the selected project.\n\n```bash\ncurl --request PATCH \\\n  --url 'https://api.datarova.com/v0/projects/<project_id>/asins' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"asins\":[\"B00PKNO7LK\",\"B07FZ8S74R\"],\"label_ids\":[12,34]}'\n```\n\nTo clear labels from the same items, use this body with the same method, URL and headers:\n\n```json\n{\"asins\":[\"B00PKNO7LK\",\"B07FZ8S74R\"],\"label_ids\":[]}\n```",
        "operationId": "replaceUserApiAsinLabels",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectAsinLabelsRequest"
              },
              "examples": {
                "replace": {
                  "summary": "Replace the labels of existing items",
                  "value": {
                    "asins": [
                      "B00PKNO7LK",
                      "B07FZ8S74R"
                    ],
                    "label_ids": [
                      12,
                      34
                    ]
                  }
                },
                "clear": {
                  "summary": "Clear assignments without deleting catalog labels",
                  "value": {
                    "asins": [
                      "B00PKNO7LK",
                      "B07FZ8S74R"
                    ],
                    "label_ids": []
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Atomic replacement succeeded; retries return all identities unchanged.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectAsinLabelsResponse"
                },
                "example": {
                  "data": {
                    "project_id": 1248,
                    "label_ids": [
                      12,
                      34
                    ],
                    "updated_asins": [
                      "B000000001",
                      "P000000001"
                    ],
                    "unchanged_asins": []
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: invalid_asins, invalid_asin, invalid_label_ids, labels_unavailable, invalid_request_body, unknown_body_parameter or unknown_query_parameter. No assignments change.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "project_not_found or asin_not_found. No assignments change.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "request_body_too_large: JSON exceeds 2,097,152 bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      }
    },
    "/v0/projects/{projectId}/keywords": {
      "get": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project keywords"
        ],
        "summary": "List project keywords",
        "description": "Returns project keywords for an owned project using cursor pagination.\n\n**Metrics window**\n\nThe keyword metrics match the project's Keywords tab in the app, so they cover the window the account's plan allows. `data.metrics_window` names it on every response. `four_weeks` is the latest four loaded weeks, with the trend measured against the four weeks before them. `latest_month` is the latest loaded month, with the trend measured against the month before it; plans without weekly data get this window. The fields ending in `_l4w` and `sales_distribution` follow the window, and keep their names so a client works on every plan. `dstr` always uses the latest four loaded weeks.\n\nRate limit: `60` requests per `60` seconds.\n\nExample request:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/projects/1248/keywords?limit=50' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "operationId": "listUserApiProjectKeywords",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          },
          {
            "$ref": "#/components/parameters/Limit"
          },
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Keywords page.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectKeywordsResponse"
                },
                "example": {
                  "data": {
                    "keywords": [
                      {
                        "keyword": "garlic press stainless steel",
                        "tracked_from": "2026-01-13",
                        "keyword_clicks_l4w": 2431.8,
                        "keyword_sales_l4w": 512.4,
                        "keyword_conversion_l4w": 21.1,
                        "top_asin": "B0C4XYZ123",
                        "top_asin_sales_l4w": 138.2,
                        "top_asin_clicks_l4w": 702.5,
                        "top_asin_conversion_l4w": 19.7,
                        "trend_l4w": 7.4,
                        "sales_distribution": 18.5,
                        "dstr": 6,
                        "organic_rank": 3,
                        "sponsored_rank": 7,
                        "asins_in_top_10": 2,
                        "labels": [
                          {
                            "label_name": "core-keyword",
                            "color": "green",
                            "label_id": 1
                          }
                        ]
                      },
                      {
                        "keyword": "best garlic mincer",
                        "tracked_from": "2026-01-15",
                        "keyword_clicks_l4w": 1189.6,
                        "keyword_sales_l4w": 201.9,
                        "keyword_conversion_l4w": 17,
                        "top_asin": "B0C4XYZ456",
                        "top_asin_sales_l4w": 64.8,
                        "top_asin_clicks_l4w": 348.1,
                        "top_asin_conversion_l4w": 18.6,
                        "trend_l4w": -2.1,
                        "sales_distribution": 7.3,
                        "dstr": 3,
                        "organic_rank": 9,
                        "sponsored_rank": 0,
                        "asins_in_top_10": 1,
                        "labels": []
                      }
                    ],
                    "page": {
                      "limit": 50,
                      "next_cursor": "eyJpZCI6OTM2MX0",
                      "has_more": true
                    },
                    "metrics_window": "four_weeks"
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes include `invalid_project_id`, `unknown_query_parameter`, `unknown_body_parameter`, `invalid_limit`, and `invalid_cursor`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_limit",
                    "message": "Limit must be between 1 and 200."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "Owned project not found. Implemented code is `project_not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "project_not_found",
                    "message": "Project not found."
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      },
      "post": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project keywords"
        ],
        "summary": "Add project keywords",
        "description": "Adds up to 500 keywords to a marketplace project and returns which were added or already present. Use it to start tracking new keywords, optionally applying the same labels to every new item.\n\n### Request rules\n\nUse the marketplace project’s `project_id` from `GET /v0/projects` and item-label IDs from `GET /v0/item-labels`. The project and labels must belong to your account. Project-label IDs cannot be used here. User API access and a credit balance that covers the call's 5 credits are required.\n\n#### Keywords and limits\n\n- Send 1 to 500 keywords. Surrounding whitespace is removed and text is lowercased; interior whitespace is preserved. Each normalized keyword must contain 1 to 255 characters. Repeated keywords are processed once, in first-seen order.\n- The submitted count is checked before duplicates are removed. The JSON body must fit within 1 MiB, or 1,048,576 bytes.\n- New keywords must fit within your account’s tracked-keyword allowance and the project’s 2,000-keyword limit.\n\n#### Optional labels\n\n- Omit `label_ids` or send `[]` to add new keywords without labels. Send `[12]` for one label or `[12,34]` for several. Duplicate IDs are ignored; `null` is invalid.\n- Existing keywords keep their labels, even in a mixed batch or when retrying an older POST. Use PATCH to replace or clear existing labels. Unknown fields and query parameters are rejected.\n\n### Results and errors\n\nA `200` response contains `data.project_id`, `data.added_keywords` and `data.unchanged_keywords`. Both lists preserve the order you sent, after trimming and lowercasing. If every keyword already exists, `added_keywords` is empty.\n\nFor example, if `garlic press` is new and `best garlic mincer` already exists, the result is:\n\n```json\n{\"data\":{\"project_id\":1248,\"added_keywords\":[\"garlic press\"],\"unchanged_keywords\":[\"best garlic mincer\"]}}\n```\n\nNew keywords and their labels are saved together. Invalid labels reject the entire request, even when all keywords already exist. For `400 invalid_label_ids`, correct the list; for `400 labels_unavailable`, refresh your item-label catalog and remove unavailable IDs.\n\nFor `409`, reduce the batch or free tracked-keyword capacity; no new keywords were added. After `413`, reduce the serialized body before retrying. For `404 project_not_found`, choose an accessible marketplace project. A successful addition confirms project membership; ranking results may become available later.\n\n### Rate limits and usage\n\nThe burst limit is **60 requests per 60 seconds**. When enforced, responses include `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. After `429`, wait the number of seconds in `Retry-After` before retrying.\n\nEach successful batch costs 5 credits, including a batch that changes nothing, and is recorded under `project_keywords_add`. See the shared quota headers and errors for your credit balance. Labels themselves do not consume tracked-item capacity.\n\n### Example requests\n\nReplace `<api_key>` and `<project_id>`. The keywords and label IDs below are illustrative. Start with a request without labels:\n\n```bash\ncurl --request POST \\\n  --url 'https://api.datarova.com/v0/projects/<project_id>/keywords' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"keywords\":[\"garlic press\",\"best garlic mincer\"]}'\n```\n\nTo label every new item, use this body with the same method, URL and headers. Replace 12 and 34 with IDs from your item-label catalog:\n\n```json\n{\"keywords\":[\"garlic press\",\"best garlic mincer\"],\"label_ids\":[12,34]}\n```\n\nUse `[12]` for one label. Omit `label_ids` or send `[]` for no labels on new items. Existing items keep their current labels in every variant.",
        "operationId": "addUserApiProjectKeywords",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectKeywordsAddRequest"
              },
              "examples": {
                "unlabeled": {
                  "summary": "Add items without labels",
                  "value": {
                    "keywords": [
                      "garlic press",
                      "best garlic mincer"
                    ]
                  }
                },
                "labeled": {
                  "summary": "Apply two labels to new items only",
                  "value": {
                    "keywords": [
                      "garlic press",
                      "best garlic mincer"
                    ],
                    "label_ids": [
                      12,
                      34
                    ]
                  }
                },
                "single_label": {
                  "summary": "Apply one label to new items only",
                  "value": {
                    "keywords": [
                      "garlic press"
                    ],
                    "label_ids": [
                      12
                    ]
                  }
                },
                "empty_selection": {
                  "summary": "An empty selection leaves new items unlabeled",
                  "value": {
                    "keywords": [
                      "garlic press",
                      "best garlic mincer"
                    ],
                    "label_ids": []
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The normalized batch was processed. Keywords already in the project or added by another request appear in `unchanged_keywords`.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectKeywordsAddResponse"
                },
                "example": {
                  "data": {
                    "project_id": 1248,
                    "added_keywords": [
                      "garlic press"
                    ],
                    "unchanged_keywords": [
                      "best garlic mincer"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes include `invalid_project_id`, `unknown_query_parameter`, `unknown_body_parameter`, `invalid_request_body`, `invalid_keywords`, and `invalid_keyword`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_keyword",
                    "message": "Each normalized keyword must contain between 1 and 255 characters."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "$ref": "#/components/responses/ProjectNotFound"
          },
          "409": {
            "description": "The full batch would exceed the account or project keyword limit. No keywords are added.",
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/AccountKeywordLimitExceededResponse"
                    },
                    {
                      "$ref": "#/components/schemas/ProjectKeywordLimitExceededResponse"
                    }
                  ]
                },
                "examples": {
                  "accountLimit": {
                    "value": {
                      "error": {
                        "code": "account_keyword_limit_exceeded",
                        "message": "Adding these keywords would exceed the account keyword limit.",
                        "current": 500,
                        "limit": 500,
                        "requested_new_tracked_keywords": 2
                      }
                    }
                  },
                  "projectLimit": {
                    "value": {
                      "error": {
                        "code": "project_keyword_limit_exceeded",
                        "message": "Adding these keywords would exceed the project keyword limit.",
                        "current": 2000,
                        "limit": 2000,
                        "requested_new_keywords": 2
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      },
      "delete": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project keywords"
        ],
        "summary": "Remove project keywords",
        "description": "Removes between `1` and `100` keywords from a project.\n\n**Request rules**\n\n- Send the keywords in the `keywords` array.\n- Each keyword is trimmed, converted to lowercase, and deduplicated in its original order.\n- Each normalized keyword must contain between `1` and `255` characters and no NUL character.\n\n**Results**\n\nKeywords currently in the project are returned in `removed_keywords`. Missing keywords and repeated removals are successful no-ops returned in `unchanged_keywords`. Both arrays preserve the normalized request order.\n\nThe response is returned only after the required project cleanup completes. If cleanup cannot be completed, the request returns an error rather than reporting a successful removal. If the project is not found for the account, the endpoint returns `404 project_not_found`.\n\nRate limit: `60` requests per `60` seconds. Each successful removal costs 5 credits and is recorded under `project_keywords_remove`.\n\nExample request:\n\n```bash\ncurl --request DELETE \\\n  --url https://api.datarova.com/v0/projects/1248/keywords \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"keywords\":[\" Garlic Press \",\"best garlic mincer\"]}'\n```",
        "operationId": "removeUserApiProjectKeywords",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectKeywordsRemoveRequest"
              },
              "example": {
                "keywords": [
                  " Garlic Press ",
                  "best garlic mincer"
                ]
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "The normalized batch was processed after the removal workflow completed. Keywords found in the project appear in `removed_keywords`; missing keywords or keywords removed by another request appear in `unchanged_keywords`.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectKeywordsRemoveResponse"
                },
                "examples": {
                  "mixed": {
                    "value": {
                      "data": {
                        "project_id": 1248,
                        "removed_keywords": [
                          "garlic press"
                        ],
                        "unchanged_keywords": [
                          "best garlic mincer"
                        ]
                      }
                    }
                  },
                  "allNoOp": {
                    "value": {
                      "data": {
                        "project_id": 1248,
                        "removed_keywords": [],
                        "unchanged_keywords": [
                          "garlic press",
                          "best garlic mincer"
                        ]
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes include `invalid_project_id`, `unknown_query_parameter`, `unknown_body_parameter`, `invalid_request_body`, `invalid_keywords`, and `invalid_keyword`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_keyword",
                    "message": "Each normalized keyword must contain between 1 and 255 characters."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "$ref": "#/components/responses/ProjectNotFound"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      },
      "patch": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project keywords"
        ],
        "summary": "Replace keyword labels",
        "description": "Replaces the item labels on existing keywords in one marketplace project and returns which changed or already had that selection. Use it to reorganize items or clear their labels without removing them or changing tracking and history.\n\n### Request rules\n\nUse the marketplace project’s `project_id` from `GET /v0/projects` and item-label IDs from `GET /v0/item-labels`. The project and labels must belong to your account. Project-label IDs cannot be used here. User API access and a credit balance that covers the call's 5 credits are required.\n\n- Send 1 to 1,000 keywords; the limit counts submitted entries before duplicates are removed. Normalized duplicates are processed once, in first-seen order.\n- Supply the complete desired `label_ids` selection. Labels left out are removed. Use `[12]` for one label, `[12,34]` for several, or `[]` to clear assignments without deleting catalog labels.\n- Omitted or `null` label selections are invalid. Duplicate label IDs and their order do not change the selection. No other fields or query parameters are accepted.\n\nKeywords are trimmed and lowercased, preserving interior whitespace. Each normalized keyword must contain 1 to 255 characters without NUL. Matching existing keywords follows the same normalization; their stored text is not changed.\n\nThe complete JSON body, including labels and whitespace, must fit within 2 MiB, or 2,097,152 bytes.\n\n### Results and errors\n\nA `200` response contains `data.project_id`, the accepted `data.label_ids` in ascending order, and `data.updated_keywords` and `data.unchanged_keywords`. Each normalized submitted identity appears in exactly one list. An identical retry succeeds with every item unchanged. Existing item reads show the saved labels.\n\nThe whole batch succeeds or nothing changes. For `404 project_not_found` or `404 keyword_not_found`, check the project and requested items. For `400 invalid_label_ids`, correct the list; for `400 labels_unavailable`, refresh your item-label catalog. Reduce the serialized body after `413 request_body_too_large`, and correct malformed input before retrying.\n\nThe same items in other projects or marketplaces are unaffected. Label replacement does not change tracking, history, or consume tracked-item capacity, so it remains available at that capacity limit.\n\n### Rate limits and usage\n\nThe burst limit is **60 requests per 60 seconds**. When enforced, responses include `X-RateLimit-Limit`, `X-RateLimit-Remaining` and `X-RateLimit-Reset`. After `429`, wait the number of seconds in `Retry-After` before retrying.\n\nEach successful batch costs 5 credits, including a batch that changes nothing, and is recorded under `project_keywords_update`. See the shared quota headers and errors for your credit balance. Labels themselves do not consume tracked-item capacity.\n\n### Example requests\n\nReplace `<api_key>` and `<project_id>`. The items and label IDs below are illustrative; use IDs from your own item-label catalog and items already in the selected project.\n\n```bash\ncurl --request PATCH \\\n  --url 'https://api.datarova.com/v0/projects/<project_id>/keywords' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"keywords\":[\"coffee grinder\",\"espresso grinder\"],\"label_ids\":[12,34]}'\n```\n\nTo clear labels from the same items, use this body with the same method, URL and headers:\n\n```json\n{\"keywords\":[\"coffee grinder\",\"espresso grinder\"],\"label_ids\":[]}\n```",
        "operationId": "replaceUserApiKeywordLabels",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/ProjectKeywordLabelsRequest"
              },
              "examples": {
                "replace": {
                  "summary": "Replace the labels of existing items",
                  "value": {
                    "keywords": [
                      "coffee grinder",
                      "espresso grinder"
                    ],
                    "label_ids": [
                      12,
                      34
                    ]
                  }
                },
                "clear": {
                  "summary": "Clear assignments without deleting catalog labels",
                  "value": {
                    "keywords": [
                      "coffee grinder",
                      "espresso grinder"
                    ],
                    "label_ids": []
                  }
                }
              }
            }
          }
        },
        "responses": {
          "200": {
            "description": "Atomic replacement succeeded; retries return all identities unchanged.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectKeywordLabelsResponse"
                },
                "example": {
                  "data": {
                    "project_id": 1248,
                    "label_ids": [
                      12,
                      34
                    ],
                    "updated_keywords": [
                      "coffee grinder"
                    ],
                    "unchanged_keywords": [
                      "espresso grinder"
                    ]
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request: invalid_keywords, invalid_keyword, invalid_label_ids, labels_unavailable, invalid_request_body, unknown_body_parameter or unknown_query_parameter. No assignments change.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "project_not_found or keyword_not_found. No assignments change.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "413": {
            "description": "request_body_too_large: JSON exceeds 2,097,152 bytes.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      }
    },
    "/v0/projects/{projectId}/ranks-by-asin": {
      "get": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Rank history"
        ],
        "summary": "Get rank history by ASIN",
        "description": "Returns daily keyword-rank history for one ASIN in a project.\n\n**Required query parameters**\n\n- `asin`: ASIN whose rank history should be returned.\n- `start_date`: First date in the requested range.\n- `end_date`: Last date in the requested range.\n\n**Optional query parameters**\n\n- `keywords`: Filter to project keywords. Cannot be combined with `keyword_label_ids`. Matching ignores letter case, so `Garlic Press` matches `garlic press`. How they are read depends on how many `keywords` parameters you send:\n  - **More than one:** each value is one whole keyword and is never split, so it may contain commas: `keywords=stair%20basket%2C%20wooden&keywords=dog%20bed` requests two keywords.\n  - **Exactly one:** the value is split on commas: `keywords=garlic%20press,garlic%20crusher` requests two keywords. This comma-separated form is deprecated.\n\n  To request a single keyword that contains a comma, send it twice: `keywords=stair%20basket%2C%20wooden&keywords=stair%20basket%2C%20wooden`.\n- `keyword_label_ids`: Filter to project keywords that carry at least one of these item labels. Use IDs from `GET /v0/item-labels`. Use it to read one labelled keyword group instead of every keyword in the project. Cannot be combined with `keywords`.\n- `limit`: Maximum keywords returned per page. Defaults to `20` or a lower day-aware maximum.\n- `cursor`: Opaque cursor returned by the previous page.\n\nEach page is limited to at most `600` keyword-date combinations.\n\n**Keyword label filter**\n\nA keyword matches when it carries any of the supplied labels. A label that no keyword in this project carries returns `200` with an empty `ranks` array. A label that is not in your account's item labels returns `404 label_not_found`. Sending both `keywords` and `keyword_label_ids` returns `400 conflicting_keyword_filters`. Pass the same `keyword_label_ids` with each `cursor`.\n\nRate limit: `10` requests per `60` seconds.\n\nExample request:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/projects/1248/ranks-by-asin?asin=B0C4XYZ123&start_date=2026-03-01&end_date=2026-03-07&limit=20' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n\nExample with keyword filter:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/projects/1248/ranks-by-asin?asin=B0C4XYZ123&start_date=2026-03-01&end_date=2026-03-07&keywords=garlic%20press%20stainless%20steel' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n\nExample with keyword label filter, using item labels `12` and `15`:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/projects/1248/ranks-by-asin?asin=B0C4XYZ123&start_date=2026-03-01&end_date=2026-03-07&keyword_label_ids=12,15' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "operationId": "getUserApiProjectRanksByAsin",
        "parameters": [
          {
            "$ref": "#/components/parameters/ProjectId"
          },
          {
            "$ref": "#/components/parameters/Asin"
          },
          {
            "$ref": "#/components/parameters/StartDate"
          },
          {
            "$ref": "#/components/parameters/EndDate"
          },
          {
            "$ref": "#/components/parameters/Keywords"
          },
          {
            "$ref": "#/components/parameters/KeywordLabelIds"
          },
          {
            "$ref": "#/components/parameters/RanksLimit"
          },
          {
            "$ref": "#/components/parameters/KeywordCursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Rank history page.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ProjectRanksByAsinResponse"
                },
                "example": {
                  "data": {
                    "project_id": 1248,
                    "asin": "B0C4XYZ123",
                    "start_date": "2026-03-01",
                    "end_date": "2026-03-07",
                    "ranks": [
                      {
                        "keyword": "garlic press stainless steel",
                        "daily_ranks": [
                          {
                            "date": "2026-03-01",
                            "organic_rank": 4,
                            "sponsored_rank": 7,
                            "choice_badge": true,
                            "ranked_asin": "B0C4XYZ123"
                          },
                          {
                            "date": "2026-03-02",
                            "organic_rank": 3,
                            "sponsored_rank": 6,
                            "choice_badge": true,
                            "ranked_asin": "B0C4XYZ123"
                          },
                          {
                            "date": "2026-03-03",
                            "organic_rank": 3,
                            "sponsored_rank": 5,
                            "choice_badge": false,
                            "ranked_asin": "B0C4XYZ123"
                          }
                        ]
                      },
                      {
                        "keyword": "best garlic mincer",
                        "daily_ranks": [
                          {
                            "date": "2026-03-01",
                            "organic_rank": 11,
                            "sponsored_rank": null,
                            "choice_badge": false,
                            "ranked_asin": "B0C4XYZ123"
                          },
                          {
                            "date": "2026-03-02",
                            "organic_rank": 9,
                            "sponsored_rank": null,
                            "choice_badge": false,
                            "ranked_asin": "B0C4XYZ123"
                          },
                          {
                            "date": "2026-03-03",
                            "organic_rank": 8,
                            "sponsored_rank": null,
                            "choice_badge": false,
                            "ranked_asin": "B0C4XYZ123"
                          }
                        ]
                      }
                    ],
                    "page": {
                      "limit": 20,
                      "next_cursor": "eyJsYXN0X2tleXdvcmQiOiJiZXN0IGdhcmxpYyBtaW5jZXIifQ",
                      "has_more": false
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input. Implemented codes include `unknown_query_parameter`, `unknown_body_parameter`, `invalid_project_id`, `missing_asin`, `missing_start_date`, `missing_end_date`, `invalid_asin`, `invalid_date`, `invalid_date_range`, `future_dates_not_allowed`, `date_range_exceeded`, `invalid_keywords`, `invalid_keyword_label_ids`, `conflicting_keyword_filters`, `invalid_limit`, and `invalid_cursor`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_date_range",
                    "message": "`start_date` must be less than or equal to `end_date`."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "Owned resource not found. Implemented codes include `project_not_found`, `asin_not_found`, `keyword_not_found`, and `label_not_found`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "asin_not_found",
                    "message": "ASIN not found for this project."
                  }
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      }
    },
    "/v0/project-labels": {
      "get": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project labels"
        ],
        "summary": "List project labels",
        "description": "Returns your account's project labels, ordered by `label_id` ascending.\n\n**Pagination**\n\n- `limit` defaults to `200` and accepts values from `1` to `200`.\n- Pass `data.page.next_cursor` as the `cursor` query parameter to request the next page. Stop when `data.page.has_more` is `false`.\n- Renaming or pinning a label does not change its position in the results.\n\nRate limit: `60` requests per `60` seconds. Each successful request costs 5 credits.\n\nExample request:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/project-labels?limit=50' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n\nExample next-page request:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/project-labels?limit=50&cursor=<next_cursor>' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "operationId": "listUserApiProjectLabels",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 200
            },
            "description": "Maximum number of labels returned per page. Defaults to `200`; accepts `1` to `200`."
          },
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Labels page.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelsResponse"
                },
                "example": {
                  "data": {
                    "labels": [
                      {
                        "label_id": 42,
                        "label_name": "Priority",
                        "color": "gray",
                        "pin": false
                      }
                    ],
                    "page": {
                      "limit": 50,
                      "next_cursor": null,
                      "has_more": false
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes include `unknown_query_parameter`, `unknown_body_parameter`, `invalid_limit`, and `invalid_cursor`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_cursor",
                    "message": "Invalid cursor."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      },
      "post": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project labels"
        ],
        "summary": "Create a project label",
        "description": "Creates a reusable project label in your account. Creating a label does not assign it to any projects.\n\n**Name rules**\n\n- The API trims leading and trailing whitespace. The result must contain `1` to `25` characters and must not contain NUL characters.\n- Capitalization and spaces within the name are preserved.\n- Names must be unique within your account's selected label catalog, ignoring capitalization and surrounding whitespace. A duplicate returns `409 label_already_exists`.\n- Project labels and item labels can use the same name.\n\n**Optional fields**\n\n- `color`: One of the supported label colors. Defaults to `gray`.\n- `pin`: Controls pinned placement in the app's label list. Defaults to `false`.\n\nA successful request returns `201` with the created label and its stable `label_id`. No query parameters are accepted.\n\nRate limit: `10` requests per `60` seconds per account, shared by all label creation, update, and deletion requests across both catalogs and all API keys. Each successful request costs 5 credits.\n\nExample request:\n\n```bash\ncurl --request POST \\\n  --url 'https://api.datarova.com/v0/project-labels' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"label_name\":\"Priority\"}'\n```",
        "operationId": "createUserApiProjectLabel",
        "parameters": [],
        "responses": {
          "201": {
            "description": "Created label.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelResponse"
                },
                "example": {
                  "data": {
                    "label_id": 42,
                    "label_name": "Priority",
                    "color": "gray",
                    "pin": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input: `invalid_body`, `invalid_label_name`, `invalid_color`, `invalid_pin`, `unknown_body_parameter`, or `unknown_query_parameter`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "409": {
            "description": "A project label with this name already exists in your account. Error code: `label_already_exists`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLabelRequest"
              },
              "example": {
                "label_name": "Priority"
              }
            }
          }
        }
      }
    },
    "/v0/project-labels/{label_id}": {
      "patch": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project labels"
        ],
        "summary": "Update a project label",
        "description": "Updates a project label's name, color, or pinned status. Only supplied fields are changed.\n\n**Request rules**\n\n- Supply at least one of `label_name`, `color`, or `pin`. No query parameters are accepted.\n- Omitted fields keep their current values. The label's ID and existing project assignments are preserved.\n- You can change the color or pinned status without resubmitting or changing an existing name.\n\n**Name rules**\n\n- The API trims leading and trailing whitespace. The result must contain `1` to `25` characters and must not contain NUL characters.\n- Capitalization and spaces within the name are preserved.\n- Names must be unique within your account's selected label catalog, ignoring capitalization and surrounding whitespace. A duplicate returns `409 label_already_exists`.\n- Project labels and item labels can use the same name.\n\n**Results**\n\nA successful request returns `200` with the updated label. Invalid input or a duplicate name leaves the label unchanged. A label that is not found in your account's project label catalog returns `404 label_not_found`.\n\nRate limit: `10` requests per `60` seconds per account, shared by all label creation, update, and deletion requests across both catalogs and all API keys. Each successful request costs 5 credits.\n\nExample request:\n\n```bash\ncurl --request PATCH \\\n  --url 'https://api.datarova.com/v0/project-labels/42' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"color\":\"green\",\"pin\":true}'\n```",
        "operationId": "updateUserApiProjectLabel",
        "parameters": [
          {
            "name": "label_id",
            "in": "path",
            "required": true,
            "description": "ID of the project label to update. Obtain it from the list or create response.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Updated label.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelResponse"
                },
                "example": {
                  "data": {
                    "label_id": 42,
                    "label_name": "Priority",
                    "color": "green",
                    "pin": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input: `invalid_label_id`, `invalid_body`, `invalid_label_name`, `invalid_color`, `invalid_pin`, `unknown_body_parameter`, or `unknown_query_parameter`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "`label_not_found`: label is absent or inaccessible in this account and catalog.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "A project label with this name already exists in your account. Error code: `label_already_exists`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLabelRequest"
              },
              "example": {
                "color": "green",
                "pin": true
              }
            }
          }
        }
      },
      "delete": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Project labels"
        ],
        "summary": "Delete a project label",
        "description": "Deletes a project label and removes it from all projects that use it across your account's marketplaces and project groups.\n\n**Request rules**\n\nSend the label ID in the URL. This endpoint does not accept query parameters or a request body.\n\n**Results and retries**\n\n- Returns `200` with `data.deleted: true` when the label and its assignments are removed. Projects, ASINs, keywords, and their tracking data are retained.\n- Returns `200` with `data.deleted: false` when the label is not found in your account's project label catalog, including when it was already deleted.\n- Deleting the label and removing its assignments succeed together. A persistence failure does not leave a partial deletion.\n\nRate limit: `10` requests per `60` seconds per account, shared by all label creation, update, and deletion requests across both catalogs and all API keys. Each successful request costs 5 credits. This includes successful retries that return `data.deleted: false`.\n\nExample request:\n\n```bash\ncurl --request DELETE \\\n  --url 'https://api.datarova.com/v0/project-labels/42' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "operationId": "deleteUserApiProjectLabel",
        "parameters": [
          {
            "name": "label_id",
            "in": "path",
            "required": true,
            "description": "ID of the project label to delete. Obtain it from the list or create response.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deletion outcome. Missing or inaccessible IDs succeed without changes.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "deleted"
                      ],
                      "properties": {
                        "deleted": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "deleted": {
                    "value": {
                      "data": {
                        "deleted": true
                      }
                    }
                  },
                  "absent": {
                    "value": {
                      "data": {
                        "deleted": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_label_id`, `unknown_query_parameter` or `unknown_body_parameter`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      }
    },
    "/v0/item-labels": {
      "get": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Item labels"
        ],
        "summary": "List item labels",
        "description": "Returns your account's item labels, ordered by `label_id` ascending. Item labels are shared by ASINs and keywords.\n\n**Pagination**\n\n- `limit` defaults to `200` and accepts values from `1` to `200`.\n- Pass `data.page.next_cursor` as the `cursor` query parameter to request the next page. Stop when `data.page.has_more` is `false`.\n- Renaming or pinning a label does not change its position in the results.\n\nRate limit: `60` requests per `60` seconds. Each successful request costs 5 credits.\n\nExample request:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/item-labels?limit=50' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n\nExample next-page request:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/item-labels?limit=50&cursor=<next_cursor>' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "operationId": "listUserApiItemLabels",
        "parameters": [
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 200,
              "default": 200
            },
            "description": "Maximum number of labels returned per page. Defaults to `200`; accepts `1` to `200`."
          },
          {
            "$ref": "#/components/parameters/Cursor"
          }
        ],
        "responses": {
          "200": {
            "description": "Labels page.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelsResponse"
                },
                "example": {
                  "data": {
                    "labels": [
                      {
                        "label_id": 42,
                        "label_name": "Priority",
                        "color": "gray",
                        "pin": false
                      }
                    ],
                    "page": {
                      "limit": 50,
                      "next_cursor": null,
                      "has_more": false
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes include `unknown_query_parameter`, `unknown_body_parameter`, `invalid_limit`, and `invalid_cursor`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_cursor",
                    "message": "Invalid cursor."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      },
      "post": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Item labels"
        ],
        "summary": "Create an item label",
        "description": "Creates a reusable item label in your account. Creating a label does not assign it to any ASINs or keywords.\n\n**Name rules**\n\n- The API trims leading and trailing whitespace. The result must contain `1` to `25` characters and must not contain NUL characters.\n- Capitalization and spaces within the name are preserved.\n- Names must be unique within your account's selected label catalog, ignoring capitalization and surrounding whitespace. A duplicate returns `409 label_already_exists`.\n- Project labels and item labels can use the same name.\n\n**Optional fields**\n\n- `color`: One of the supported label colors. Defaults to `gray`.\n- `pin`: Controls pinned placement in the app's label list. Defaults to `false`.\n\nA successful request returns `201` with the created label and its stable `label_id`. No query parameters are accepted.\n\nRate limit: `10` requests per `60` seconds per account, shared by all label creation, update, and deletion requests across both catalogs and all API keys. Each successful request costs 5 credits.\n\nExample request:\n\n```bash\ncurl --request POST \\\n  --url 'https://api.datarova.com/v0/item-labels' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"label_name\":\"Priority\"}'\n```",
        "operationId": "createUserApiItemLabel",
        "parameters": [],
        "responses": {
          "201": {
            "description": "Created label.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelResponse"
                },
                "example": {
                  "data": {
                    "label_id": 42,
                    "label_name": "Priority",
                    "color": "gray",
                    "pin": false
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input: `invalid_body`, `invalid_label_name`, `invalid_color`, `invalid_pin`, `unknown_body_parameter`, or `unknown_query_parameter`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "409": {
            "description": "A item label with this name already exists in your account. Error code: `label_already_exists`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateLabelRequest"
              },
              "example": {
                "label_name": "Priority"
              }
            }
          }
        }
      }
    },
    "/v0/item-labels/{label_id}": {
      "patch": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Item labels"
        ],
        "summary": "Update an item label",
        "description": "Updates an item label's name, color, or pinned status. Only supplied fields are changed.\n\n**Request rules**\n\n- Supply at least one of `label_name`, `color`, or `pin`. No query parameters are accepted.\n- Omitted fields keep their current values. The label's ID and existing ASIN and keyword assignments are preserved.\n- You can change the color or pinned status without resubmitting or changing an existing name.\n\n**Name rules**\n\n- The API trims leading and trailing whitespace. The result must contain `1` to `25` characters and must not contain NUL characters.\n- Capitalization and spaces within the name are preserved.\n- Names must be unique within your account's selected label catalog, ignoring capitalization and surrounding whitespace. A duplicate returns `409 label_already_exists`.\n- Project labels and item labels can use the same name.\n\n**Results**\n\nA successful request returns `200` with the updated label. Invalid input or a duplicate name leaves the label unchanged. A label that is not found in your account's item label catalog returns `404 label_not_found`.\n\nRate limit: `10` requests per `60` seconds per account, shared by all label creation, update, and deletion requests across both catalogs and all API keys. Each successful request costs 5 credits.\n\nExample request:\n\n```bash\ncurl --request PATCH \\\n  --url 'https://api.datarova.com/v0/item-labels/42' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"color\":\"green\",\"pin\":true}'\n```",
        "operationId": "updateUserApiItemLabel",
        "parameters": [
          {
            "name": "label_id",
            "in": "path",
            "required": true,
            "description": "ID of the item label to update. Obtain it from the list or create response.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Updated label.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/LabelResponse"
                },
                "example": {
                  "data": {
                    "label_id": 42,
                    "label_name": "Priority",
                    "color": "green",
                    "pin": true
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid input: `invalid_label_id`, `invalid_body`, `invalid_label_name`, `invalid_color`, `invalid_pin`, `unknown_body_parameter`, or `unknown_query_parameter`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "404": {
            "description": "`label_not_found`: label is absent or inaccessible in this account and catalog.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "A item label with this name already exists in your account. Error code: `label_already_exists`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        },
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/UpdateLabelRequest"
              },
              "example": {
                "color": "green",
                "pin": true
              }
            }
          }
        }
      },
      "delete": {
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "tags": [
          "Item labels"
        ],
        "summary": "Delete an item label",
        "description": "Deletes an item label and removes it from all ASINs and keywords that use it across your account's projects and marketplaces.\n\n**Request rules**\n\nSend the label ID in the URL. This endpoint does not accept query parameters or a request body.\n\n**Results and retries**\n\n- Returns `200` with `data.deleted: true` when the label and its assignments are removed. Projects, ASINs, keywords, and their tracking data are retained.\n- Returns `200` with `data.deleted: false` when the label is not found in your account's item label catalog, including when it was already deleted.\n- Deleting the label and removing its assignments succeed together. A persistence failure does not leave a partial deletion.\n\nRate limit: `10` requests per `60` seconds per account, shared by all label creation, update, and deletion requests across both catalogs and all API keys. Each successful request costs 5 credits. This includes successful retries that return `data.deleted: false`.\n\nExample request:\n\n```bash\ncurl --request DELETE \\\n  --url 'https://api.datarova.com/v0/item-labels/42' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "operationId": "deleteUserApiItemLabel",
        "parameters": [
          {
            "name": "label_id",
            "in": "path",
            "required": true,
            "description": "ID of the item label to delete. Obtain it from the list or create response.",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          }
        ],
        "responses": {
          "200": {
            "description": "Deletion outcome. Missing or inaccessible IDs succeed without changes.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "required": [
                    "data"
                  ],
                  "properties": {
                    "data": {
                      "type": "object",
                      "required": [
                        "deleted"
                      ],
                      "properties": {
                        "deleted": {
                          "type": "boolean"
                        }
                      }
                    }
                  }
                },
                "examples": {
                  "deleted": {
                    "value": {
                      "data": {
                        "deleted": true
                      }
                    }
                  },
                  "absent": {
                    "value": {
                      "data": {
                        "deleted": false
                      }
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "`invalid_label_id`, `unknown_query_parameter` or `unknown_body_parameter`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequired"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "$ref": "#/components/responses/QuotaUnavailable"
          }
        }
      }
    },
    "/v0/live-search": {
      "get": {
        "operationId": "getUserApiLiveSearch",
        "tags": [
          "Live search"
        ],
        "summary": "Run a live search",
        "description": "Retrieves one Amazon search results page in real time for a keyword, marketplace, page and delivery postal code, and returns it as structured JSON or as the raw page HTML. Use it to see what shoppers see right now, for example to measure where products and sponsored placements appear.\n\n**Request rules**\n\n- `marketplace` is required: `US`, `CA`, `MX`, `UK`, `DE`, `FR`, `IT`, `ES`, `AU`, `JP`, `BR`, `IN`, `SG`, `TR`, `NL`, `PL`, `SE`, `BE`, `SA`, `AE`, `EG`, `IE` or `ZA`, in any letter case. Any other value returns `400 invalid_marketplace`.\n- `keyword` is required: 1 to 256 characters after surrounding whitespace is trimmed.\n- `page` defaults to `1`.\n- `postal_code` is the delivery location. Each marketplace supports a set of postal codes and uses its default, listed under **Default delivery postal codes**, when `postal_code` is omitted. In `SA`, `AE` and `EG` the supported values are city names. Read the supported values, with the city and region of each, from `GET /v0/postal-codes`: the set can change, so do not hardcode it. Letter case, spaces and hyphens are ignored, so `m5h2n2` selects `M5H 2N2` and `00950` selects `00-950`. Any other value, including an empty one or a postal code that belongs to another marketplace, returns `400 unsupported_postal_code`.\n- `NL`, `BE` and `ZA` deliver to the whole country and take no `postal_code`: omit it. Any value there, including the country name, returns `400 unsupported_postal_code`.\n- The values used are echoed in `data.request_parameters`, with the marketplace in upper case and the postal code as it is listed. `postal_code` is `null` for `NL`, `BE` and `ZA`.\n- Send each parameter at most once. Unknown parameters return `400 unknown_query_parameter` and repeated ones `400 repeated_query_parameter`.\n- Invalid input is rejected before any search runs and costs nothing.\n\n**Default delivery postal codes**\n\n| Marketplace | Default postal code or city | Location |\n| --- | --- | --- |\n| `US` | `10011` | New York, New York |\n| `CA` | `M5H 2N2` | Toronto, Ontario |\n| `MX` | `01000` | Mexico City, Mexico City |\n| `UK` | `NR1 1BG` | Norwich, England |\n| `DE` | `10115` | Berlin, Berlin |\n| `FR` | `75001` | Paris, Île-de-France |\n| `IT` | `20121` | Milan, Lombardy |\n| `ES` | `28002` | Madrid, Community of Madrid |\n| `AU` | `3000` | Melbourne, Victoria |\n| `JP` | `100-0005` | Tokyo, Tokyo |\n| `BR` | `01310-100` | São Paulo, São Paulo |\n| `IN` | `400001` | Mumbai, Maharashtra |\n| `SG` | `018956` | Marina Bay, Singapore |\n| `TR` | `34134` | Istanbul, Istanbul |\n| `NL` | None: whole country | Netherlands |\n| `PL` | `00-950` | Warsaw, Masovian |\n| `SE` | `111 53` | Stockholm, Stockholm County |\n| `BE` | None: whole country | Belgium |\n| `SA` | `Riyadh` | Riyadh, Riyadh Province |\n| `AE` | `Dubai` | Dubai, Dubai |\n| `EG` | `New Cairo City` | New Cairo City, Cairo |\n| `IE` | `D02 N403` | Dublin, County Dublin |\n| `ZA` | None: whole country | South Africa |\n\n**Field groups**\n\n`include` selects groups of fields for JSON output. Omit it, or send `all`, for every field. Otherwise send a comma-separated list of group names; `core` is always returned. Names are lowercase, surrounding whitespace and duplicates are ignored, and `all` cannot be combined with other names. Unknown, empty or differently cased names return `400 invalid_include`. Selection removes fields, never products. `data.request_parameters.include` echoes the selection that was applied.\n\n| Group | Fields |\n| --- | --- |\n| `core` | Each result's `asin`, `page_position`, `position`, `is_sponsored` and `placement`, plus `request_parameters`, `request_metadata`, `search_information` and `pagination`. |\n| `product_details` | `title`, `subtitle`, `brand`, `tracked_url`, `image_url`, `size`, `attribute`, `rating`, `review_count`, `positively_reviewed_for`, `top_reviewed_for`, `monthly_sales` and `badges`. |\n| `pricing` | `pricing` and `alternative_offers`. |\n| `fulfillment` | `fulfillment`, `is_prime` and `quantity_in_stock`, on results and on selected alternative offers and ad products. |\n| `ad_blocks` | `ad_blocks`. Ad products carry their `asin` and the other selected product groups. |\n| `related_searches` | `related_searches`. |\n\n**Results**\n\nSponsored results appear inline in `search_results` with `is_sponsored: true`, and `placement` names the ad slot Amazon served each one in: `top`, `inline` or `bottom`. `page_position` counts every result on the page from 1. `position` is Amazon's own result number: sponsored and organic results share it and it continues across pages, so it is not an organic rank. A result's organic rank is `search_information.results_begin` - 1 plus its place among the page's `is_sponsored: false` results in `page_position` order; `results_begin` and `results_end` count organic results only. The same ASIN can appear more than once, for example once sponsored and once organic. Prices are bare numbers in the marketplace's currency. The number of results per page varies, Amazon caps `total_results` at 2,000, and fields without a value are omitted. A page with no products returns `200` with an empty `search_results` array.\n\n**HTML output**\n\n`output=html` returns the raw Amazon page as `text/html` instead of the JSON envelope, sent as a download (`Content-Disposition: attachment`) and compressed with gzip or Brotli when your client accepts it. `X-Effective-Marketplace`, `X-Effective-Page` and `X-Effective-Postal-Code` report the values used; `NL`, `BE` and `ZA` responses have no `X-Effective-Postal-Code`. The HTML is Amazon's markup: its structure is not part of this contract and can change without notice. `include` cannot be combined with `output=html` (`400 invalid_include`). Errors and redirect responses are always JSON, so check `Content-Type` before treating a body as HTML.\n\n**Redirects**\n\nWhen Amazon sends the keyword to a category or other non-search page, the response is `200` JSON with `data.redirect_url` and no `search_results`, in both output types. This is an answer, not a failure: the same keyword will redirect again, so do not retry it. A redirect is counted like any other successful search.\n\n**Failures**\n\nA live search that fails always returns `503` with a JSON body carrying `error.retryable: true` and, when one exists, `error.request_id`. `error.code` identifies the failure: `live_search_failed` means the page could not be retrieved or read, `live_search_timeout` means no result arrived within 55 seconds, and `live_search_unavailable` means the service is temporarily unavailable. Retry after a short delay. Failed searches cost nothing. Successful responses carry the request identifier in `X-Request-Id` and, for JSON, in `data.request_metadata.request_id`; quote it when contacting support.\n\n**Access, burst limit and credit cost**\n\nRequires an active plan with User API access. The burst limit is 180 live searches per 60 seconds per account, counted separately from other endpoints, so live searches and your other requests do not use each other's allowance. An account can also have at most 30 live searches in progress at once; the next one is refused with `concurrency_limit_exceeded` until one finishes, and that refusal does not count toward the burst limit. API keys and MCP `live_search` share both limits. After `429`, wait for `Retry-After` seconds.\n\nEach successful live search, including an empty page or a redirect, costs 1 credit from your credit balance. `X-Quota-Cost` states the cost, and `X-Quota-Remaining` already subtracts it, on every response once a request reaches the quota check: successful and failed searches and `402 insufficient_credits` responses. Authentication, access, burst-limit and validation errors happen earlier and carry no quota headers. When the credit balance cannot cover the cost, the search is refused with `402 insufficient_credits` before it runs. Live searches appear as `live_search` in `credits.used_by_action` on `GET /v0/usage`. Nothing is cached: an identical request runs and is charged again.\n\n**Examples**\n\nReplace `<api_key>` with an account API key. Product and pricing fields for page 2:\n\n```bash\ncurl --request GET --get \\\n  --url 'https://api.datarova.com/v0/live-search' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --data-urlencode 'marketplace=US' \\\n  --data-urlencode 'keyword=water bottle' \\\n  --data-urlencode 'page=2' \\\n  --data-urlencode 'include=product_details,pricing'\n```\n\nThe raw page for a delivery postal code, saved to a file:\n\n```bash\ncurl --request GET --get --compressed \\\n  --url 'https://api.datarova.com/v0/live-search' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --data-urlencode 'marketplace=US' \\\n  --data-urlencode 'keyword=water bottle' \\\n  --data-urlencode 'postal_code=90001' \\\n  --data-urlencode 'output=html' \\\n  --output amazon-search.html\n```\n\nA search in another marketplace, delivered to a postal code listed by `GET /v0/postal-codes`:\n\n```bash\ncurl --request GET --get \\\n  --url 'https://api.datarova.com/v0/live-search' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --data-urlencode 'marketplace=UK' \\\n  --data-urlencode 'keyword=water bottle' \\\n  --data-urlencode 'postal_code=CF10 1DD'\n```",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "marketplace",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "US",
                "CA",
                "MX",
                "UK",
                "DE",
                "FR",
                "IT",
                "ES",
                "AU",
                "JP",
                "BR",
                "IN",
                "SG",
                "TR",
                "NL",
                "PL",
                "SE",
                "BE",
                "SA",
                "AE",
                "EG",
                "IE",
                "ZA"
              ]
            },
            "description": "Marketplace code, in any letter case."
          },
          {
            "name": "keyword",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 256
            },
            "description": "Keyword to search. Surrounding whitespace is trimmed before the length is checked. Length is counted in UTF-16 code units, so a character outside the Basic Multilingual Plane, such as most emoji, counts as two."
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 20,
              "default": 1
            },
            "description": "Results page to retrieve."
          },
          {
            "name": "postal_code",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string"
            },
            "description": "Delivery postal code, or city name in `SA`, `AE` and `EG`. Results are those a shopper in this location sees. Each marketplace uses its default when this is omitted. The supported values are listed by `GET /v0/postal-codes` and can change. Letter case, spaces and hyphens are ignored. `NL`, `BE` and `ZA` deliver to the whole country and take no postal code: omit it there. Any other value, including an empty one, a postal code that belongs to another marketplace or a value for `NL`, `BE` or `ZA`, returns `400 unsupported_postal_code`."
          },
          {
            "name": "output",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "json",
                "html"
              ],
              "default": "json"
            },
            "description": "`json` for structured results or `html` for the raw Amazon page."
          },
          {
            "name": "include",
            "in": "query",
            "required": false,
            "style": "form",
            "explode": false,
            "schema": {
              "type": "array",
              "minItems": 1,
              "items": {
                "type": "string",
                "enum": [
                  "all",
                  "core",
                  "product_details",
                  "pricing",
                  "fulfillment",
                  "ad_blocks",
                  "related_searches"
                ]
              }
            },
            "description": "Comma-separated field groups for JSON output. Omitted means every group. `core` is always returned and `all` cannot be combined with other names. Not allowed with `output=html`."
          }
        ],
        "responses": {
          "200": {
            "description": "Search results as JSON, the raw page as HTML, or a JSON redirect response. A redirect is JSON for both output types.",
            "headers": {
              "X-Request-Id": {
                "$ref": "#/components/headers/XRequestId"
              },
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              },
              "X-Effective-Marketplace": {
                "description": "HTML output only. Marketplace searched.",
                "schema": {
                  "type": "string",
                  "enum": [
                    "US",
                    "CA",
                    "MX",
                    "UK",
                    "DE",
                    "FR",
                    "IT",
                    "ES",
                    "AU",
                    "JP",
                    "BR",
                    "IN",
                    "SG",
                    "TR",
                    "NL",
                    "PL",
                    "SE",
                    "BE",
                    "SA",
                    "AE",
                    "EG",
                    "IE",
                    "ZA"
                  ]
                }
              },
              "X-Effective-Page": {
                "description": "HTML output only. Results page returned.",
                "schema": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 20
                }
              },
              "X-Effective-Postal-Code": {
                "description": "HTML output only. Delivery postal code used. Absent for `NL`, `BE` and `ZA`, which deliver to the whole country.",
                "schema": {
                  "type": "string"
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "oneOf": [
                    {
                      "$ref": "#/components/schemas/LiveSearchResponse"
                    },
                    {
                      "$ref": "#/components/schemas/LiveSearchRedirectResponse"
                    }
                  ]
                },
                "examples": {
                  "results": {
                    "summary": "Search results",
                    "value": {
                      "data": {
                        "request_parameters": {
                          "keyword": "water bottle",
                          "marketplace": "US",
                          "page": 1,
                          "postal_code": "10011",
                          "output": "json",
                          "include": [
                            "core",
                            "product_details",
                            "pricing"
                          ]
                        },
                        "request_metadata": {
                          "request_id": "a1b2c3d4",
                          "processed_at": "2026-10-01T10:00:00.000Z",
                          "source_url": "https://www.amazon.com/s?k=water+bottle"
                        },
                        "search_information": {
                          "total_results": 2000,
                          "results_begin": 1,
                          "results_end": 48,
                          "product_count": 2,
                          "sponsored_product_count": 1,
                          "organic_product_count": 1,
                          "delivery_location": "New York 10011"
                        },
                        "search_results": [
                          {
                            "asin": "B000000009",
                            "page_position": 1,
                            "position": 1,
                            "is_sponsored": true,
                            "placement": "top",
                            "title": "Insulated water bottle, 32 oz",
                            "brand": "Example Brand",
                            "tracked_url": "https://www.amazon.com/dp/B000000009",
                            "image_url": "https://m.media-amazon.com/images/I/example-9.jpg",
                            "rating": 4.6,
                            "review_count": 5120,
                            "pricing": {
                              "price": 19.99
                            }
                          },
                          {
                            "asin": "B000000001",
                            "page_position": 2,
                            "position": 1,
                            "is_sponsored": false,
                            "title": "Stainless steel water bottle, 40 oz",
                            "brand": "Another Brand",
                            "tracked_url": "https://www.amazon.com/dp/B000000001",
                            "image_url": "https://m.media-amazon.com/images/I/example-1.jpg",
                            "rating": 4.7,
                            "review_count": 1234,
                            "monthly_sales": 2000,
                            "badges": {
                              "best_seller": {
                                "category": "Water Bottles"
                              }
                            },
                            "pricing": {
                              "price": 24.99,
                              "reference_price": {
                                "type": "list",
                                "price": 29.99
                              }
                            }
                          }
                        ],
                        "pagination": {
                          "current_page": 1,
                          "total_pages": 20,
                          "has_more": true
                        }
                      }
                    }
                  },
                  "redirect": {
                    "summary": "Keyword redirected to a category page",
                    "value": {
                      "data": {
                        "request_parameters": {
                          "keyword": "gift cards",
                          "marketplace": "US",
                          "page": 1,
                          "postal_code": "10011",
                          "output": "json",
                          "include": [
                            "all"
                          ]
                        },
                        "request_metadata": {
                          "request_id": "e5f6a7b8"
                        },
                        "redirect_url": "https://www.amazon.com/b?node=2238192011"
                      }
                    }
                  }
                }
              },
              "text/html": {
                "schema": {
                  "type": "string",
                  "description": "Amazon's search results page markup. Not part of the Datarova contract."
                }
              }
            }
          },
          "400": {
            "description": "Invalid input; no search runs. Implemented codes are `unknown_query_parameter`, `repeated_query_parameter`, `missing_marketplace`, `invalid_marketplace`, `missing_keyword`, `invalid_keyword`, `invalid_page`, `unsupported_postal_code`, `invalid_output` and `invalid_include`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "unsupported_postal_code",
                    "message": "postal_code is not supported for this marketplace. See GET /v0/postal-codes for supported values, or omit postal_code to use the marketplace default."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "Missing or expired plan (`plan_required`), or the credit balance cannot cover the search's credit cost (`insufficient_credits`, with `credit_cost`, `credit_balance` and `resets_at`). No search runs and nothing is charged.",
            "headers": {
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "This call costs 1 credit, but the credit balance is 0 credits; the credit allowance resets at 2026-12-01T00:00:00.000Z.",
                    "credit_cost": 1,
                    "credit_balance": 0,
                    "resets_at": "2026-12-01T00:00:00.000Z"
                  }
                }
              }
            }
          },
          "403": {
            "description": "The account does not have User API access. Implemented code is `feature_not_enabled`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "feature_not_enabled",
                    "message": "Access denied. User API feature is not enabled."
                  }
                }
              }
            }
          },
          "429": {
            "description": "Refused, with nothing searched or charged. Either the live search burst limit was exceeded (`rate_limit_exceeded`), or the account already has 30 live searches in progress, the most allowed at once (`concurrency_limit_exceeded`). A `concurrency_limit_exceeded` refusal does not count toward the burst limit. Shared IP edge throttling omits the account headers and returns `Retry-After: 60` with `error.retry_after: 60`.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying: the rest of the rate-limit window for `rate_limit_exceeded`, or 1 for `concurrency_limit_exceeded`.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/RateLimitedErrorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/LiveSearchConcurrencyLimitedErrorResponse"
                    }
                  ]
                },
                "examples": {
                  "rate_limit_exceeded": {
                    "summary": "Burst limit",
                    "value": {
                      "error": {
                        "code": "rate_limit_exceeded",
                        "message": "Rate limit exceeded. Please retry later.",
                        "retry_after": 12
                      }
                    }
                  },
                  "concurrency_limit_exceeded": {
                    "summary": "30 live searches in progress",
                    "value": {
                      "error": {
                        "code": "concurrency_limit_exceeded",
                        "message": "Too many live searches are in progress for this account. Retry when one finishes.",
                        "retry_after": 1,
                        "retryable": true
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "description": "The live search failed, or the credit balance could not be verified. `error.code` identifies which: `live_search_failed` (the page could not be retrieved or read), `live_search_timeout` (no result arrived within 55 seconds), `live_search_unavailable` (the service is temporarily unavailable) or `credit_balance_unavailable`. Retry after a short delay; nothing is charged. The three live search failures carry the quota headers; a `credit_balance_unavailable` response does not.",
            "headers": {
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/LiveSearchErrorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse"
                    }
                  ]
                },
                "examples": {
                  "live_search_failed": {
                    "summary": "Live search failed",
                    "value": {
                      "error": {
                        "code": "live_search_failed",
                        "message": "The live search could not be completed. Please retry.",
                        "retryable": true,
                        "request_id": "a1b2c3d4"
                      }
                    }
                  },
                  "live_search_timeout": {
                    "summary": "Live search timed out",
                    "value": {
                      "error": {
                        "code": "live_search_timeout",
                        "message": "The live search timed out. Please retry.",
                        "retryable": true,
                        "request_id": "a1b2c3d4"
                      }
                    }
                  },
                  "live_search_unavailable": {
                    "summary": "Live search unavailable",
                    "value": {
                      "error": {
                        "code": "live_search_unavailable",
                        "message": "Live search is temporarily unavailable. Please retry later.",
                        "retryable": true
                      }
                    }
                  },
                  "credit_balance_unavailable": {
                    "summary": "Credit balance could not be verified",
                    "value": {
                      "error": {
                        "code": "credit_balance_unavailable",
                        "message": "Credit balance could not be verified. Please retry later."
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    },
    "/v0/postal-codes": {
      "get": {
        "tags": [
          "Live search"
        ],
        "summary": "List postal codes",
        "operationId": "listPostalCodes",
        "description": "Lists the postal codes that live Amazon requests accept in their `postal_code` parameter: for each marketplace, every supported postal code with its city, its region and whether it is the marketplace default. Use it to choose a `postal_code` for `GET /v0/live-search`, for example to search as a shopper in a particular state or city.\n\n**Request rules**\n\n- `marketplace` is optional: `US`, `CA`, `MX`, `UK`, `DE`, `FR`, `IT`, `ES`, `AU`, `JP`, `BR`, `IN`, `SG`, `TR`, `NL`, `PL`, `SE`, `BE`, `SA`, `AE`, `EG`, `IE` or `ZA`, in any letter case. Omit it for every marketplace. Any other value returns `400 invalid_marketplace`.\n- Send `marketplace` at most once. An unknown parameter returns `400 unknown_query_parameter` and a repeated one `400 repeated_query_parameter`.\n\n**Response**\n\n`data` has one entry per marketplace, each with its `delivery_scope` and `postal_codes`. A marketplace's default postal code, the one live search uses when `postal_code` is omitted, has `is_default: true` and is listed first; the rest follow in order of region, then city. `region` is a full name: a state, province, prefecture, territory or county, a nation in the UK, and `Singapore` in Singapore. In `SA`, `AE` and `EG` the `postal_code` is a city name. Pass a `postal_code` to live search exactly as listed. The response is not paginated.\n\n`delivery_scope` is `postal_code` for marketplaces with postal codes. `NL`, `BE` and `ZA` have `delivery_scope` `country` and an empty `postal_codes` list: Amazon delivers there to the whole country, so live search takes no `postal_code` for them.\n\nThe list can change as postal codes are added or removed, so read it from this endpoint rather than hardcoding it.\n\n**Access, burst limit and cost**\n\nRequires an active plan with User API access. The call is free: it costs no credits, keeps working when the credit balance is exhausted, and is not reported by `GET /v0/usage`. It shares the default burst limit of 60 requests per 60 seconds, not the live search limit. When enforced, rate-limit headers describe the current window; after `429`, wait for `Retry-After` seconds.\n\n**Examples**\n\nReplace `<api_key>` with an account API key. Every marketplace:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/postal-codes' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n\nOne marketplace:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/postal-codes?marketplace=CA' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "marketplace",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "US",
                "CA",
                "MX",
                "UK",
                "DE",
                "FR",
                "IT",
                "ES",
                "AU",
                "JP",
                "BR",
                "IN",
                "SG",
                "TR",
                "NL",
                "PL",
                "SE",
                "BE",
                "SA",
                "AE",
                "EG",
                "IE",
                "ZA"
              ]
            },
            "description": "Only this marketplace, in any letter case. Omit it for every marketplace."
          }
        ],
        "responses": {
          "200": {
            "description": "The supported postal codes for every marketplace, or for the one requested.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PostalCodesResponse"
                },
                "example": {
                  "data": [
                    {
                      "marketplace": "CA",
                      "delivery_scope": "postal_code",
                      "postal_codes": [
                        {
                          "postal_code": "M5H 2N2",
                          "city": "Toronto",
                          "region": "Ontario",
                          "is_default": true
                        },
                        {
                          "postal_code": "V5Y 1G4",
                          "city": "Vancouver",
                          "region": "British Columbia",
                          "is_default": false
                        }
                      ]
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. Implemented codes are `unknown_query_parameter`, `repeated_query_parameter` and `invalid_marketplace`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "invalid_marketplace",
                    "message": "Invalid marketplace."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequiredFree"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/v0/data-availability": {
      "get": {
        "tags": [
          "Keywords"
        ],
        "summary": "Get keyword data availability",
        "operationId": "getDataAvailability",
        "description": "Discover valid dates before requesting weekly or monthly keyword market data. Returns every supported keyword-data marketplace and both intervals for the effective account, including an additional user's owning account. No project or keyword is required.\n\nAll dates are ISO YYYY-MM-DD period starts accepted by `GET /v0/keywords`: Sunday for weekly and the first of the month for monthly. `earliest_available_date` is the oldest period Datarova stores; `earliest_date_allowed_by_plan` is the oldest period your current plan allows; `latest_available_date` is the latest loaded period, not the current calendar period. When `earliest_date_allowed_by_plan` is later than `earliest_available_date`, the older data exists but your plan's history limit holds it back: upgrade to a plan with a longer history window to read it. Without a history limit the two dates are equal. Weekly and monthly metadata are independent. All three dates are null when an interval has no stored data. Operational metadata failures return an error.\n\nOn plans without weekly data, `weekly.available_on_plan` is `false` and its three dates are null: request monthly data instead. Select dates from `earliest_date_allowed_by_plan` to `latest_available_date`. Explain unavailable requested history instead of silently shortening the range. Availability can change; keyword-data requests still enforce their range and legacy weekly-plan restrictions.\n\nRequires an active plan with User API access. Discovery is free: it costs no credits, keeps working when the credit balance is exhausted, and is not reported by `GET /v0/usage`. Shares the default burst limit of 60 requests per 60 seconds. When enforced, rate-limit headers describe the current window; after 429 wait for `Retry-After`.\n\nReplace `<api_key>` with your account API key. Example:\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/data-availability' \\\n  --header 'Authorization: Bearer <api_key>'\n```",
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "responses": {
          "200": {
            "description": "Weekly and monthly keyword market-data availability for every supported marketplace.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/DataAvailabilityResponse"
                },
                "example": {
                  "data": [
                    {
                      "marketplace": "US",
                      "weekly": {
                        "available_on_plan": true,
                        "earliest_available_date": "2021-01-03",
                        "earliest_date_allowed_by_plan": "2026-05-03",
                        "latest_available_date": "2026-11-01"
                      },
                      "monthly": {
                        "available_on_plan": true,
                        "earliest_available_date": "2021-01-01",
                        "earliest_date_allowed_by_plan": "2026-05-01",
                        "latest_available_date": "2026-10-01"
                      }
                    }
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Invalid request. This endpoint takes no parameters; implemented codes are `unknown_query_parameter` and `unknown_body_parameter`.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "example": {
                  "error": {
                    "code": "unknown_query_parameter",
                    "message": "Unknown query parameter: marketplace."
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "$ref": "#/components/responses/PlanRequiredFree"
          },
          "403": {
            "$ref": "#/components/responses/FeatureNotEnabled"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/v0/reports": {
      "post": {
        "operationId": "createReport",
        "summary": "Request a report",
        "description": "Requests a report and returns `202 Accepted` with the new report under `data`. Use it to get keyword data for any keyword or ASIN, whether or not you track it in a project. The report has the same fields as list entries and status responses, with `result: null` until it is ready. Use `data.id` (also returned in the `Location` header) to poll `GET /v0/reports/{reportId}`, then request a download link once `state` is `ready`. Acceptance does not mean the file is ready.\n\n## Request rules\n\n- `report_type` chooses what the report contains and which `parameters` apply: `keywords_for_keyword.1` or `keywords_for_asin.1`. Each type's parameters, file fields and charging are listed in the Reports overview above. The suffix on each id is the version of that type's parameters and file; a change ships as a new id and existing ids keep working.\n- A missing or unknown `report_type`, including an export type such as `ranks_by_asin.1`, returns `400 unsupported_report_type` and creates nothing.\n- `parameters` is required and must contain only the chosen type's parameters. A missing `parameters` object, a parameter of the other type, or any unknown parameter returns `400 invalid_report_parameters`. Any other top-level field returns `400 unknown_body_parameter`.\n- Each accepted request is a separate report, including an identical resubmission after a lost response. If a response is lost, check `GET /v0/reports` before requesting again.\n\n## Errors\n\n- `400`: `unsupported_report_type`, `invalid_report_parameters`, an unknown body field, an invalid keyword, ASIN, marketplace, interval, `include_periods`, `format` or date, a range of more than 12 weeks or months, or dates outside your plan's research data. `error.code` names the problem; correct the request and submit it again.\n- `402`: no active subscription (`plan_required`), or the credit balance cannot cover the report's credit cost (`insufficient_credits`, with `credit_cost`, `credit_balance` and `resets_at`). Nothing is held or created. Renew the subscription, request fewer periods, or wait until `resets_at` (null during the renewal grace, when the credits reset as the subscription renews).\n- `403` `weekly_interval_not_allowed`: your plan has no weekly research data; use `monthly`.\n- `403`: User API access or general plan eligibility is unavailable for your account; check your plan.\n- `429` `outstanding_export_limit_reached`: the account already has five outstanding exports and reports. Wait for one to finish, then submit again.\n- `503` `research_data_unavailable`: the available research dates could not be read. Retry later.\n- `503` `credit_balance_unavailable`: the credit balance could not be verified. Nothing is created; retry later.\n\n## Limits\n\n- Only the report itself is charged, as the Reports overview describes. Listing reports, checking their status and requesting download links are free and keep working when the credit balance is exhausted.\n- The burst limit is 60 requests per 60 seconds. After a `429`, wait for the `Retry-After` delay before retrying.\n- An account can have at most five outstanding exports and reports together: accepted requests that are waiting, being generated or waiting for an automatic retry. The account's API keys and team members share the limit, and reports requested with a team member's use of the account's API key belong to the account. A sixth returns `429 outstanding_export_limit_reached` with `Retry-After: 30`, creates nothing and charges nothing.\n- Each account has one export or report generated at a time, in the order they were accepted.\n\n## Examples\n\nReplace `<api_key>` with your API key. The keyword, ASIN and dates are illustrative.\n\n```bash\ncurl --request POST \\\n  --url 'https://api.datarova.com/v0/reports' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --header 'Content-Type: application/json' \\\n  --data '{\"report_type\":\"keywords_for_keyword.1\",\"parameters\":{\"keyword\":\"yoga mat\",\"marketplace\":\"US\",\"start_date\":\"2026-05-01\",\"end_date\":\"2026-09-30\"}}'\n```\n\nFor the keywords of one ASIN, use this body with the same method, URL and headers:\n\n```json\n{\"report_type\":\"keywords_for_asin.1\",\"parameters\":{\"asin\":\"B000000001\",\"marketplace\":\"US\",\"start_date\":\"2026-05-01\",\"end_date\":\"2026-09-30\"}}\n```\n\nFor weekly data from August to September 2026, use this body:\n\n```json\n{\"report_type\":\"keywords_for_keyword.1\",\"parameters\":{\"keyword\":\"yoga mat\",\"marketplace\":\"US\",\"interval\":\"weekly\",\"start_date\":\"2026-08-02\",\"end_date\":\"2026-09-27\"}}\n```\n\nFor each keyword's month-by-month detail from July to September 2026 as a CSV file, use this body, which adds `include_periods` and `format`:\n\n```json\n{\"report_type\":\"keywords_for_asin.1\",\"parameters\":{\"asin\":\"B000000001\",\"marketplace\":\"US\",\"start_date\":\"2026-07-01\",\"end_date\":\"2026-09-30\",\"include_periods\":true,\"format\":\"csv\"}}\n```\n",
        "tags": [
          "Reports"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/CreateReportRequest"
              },
              "examples": {
                "keywordsForKeyword": {
                  "summary": "Keywords for a keyword: monthly, May to September 2026",
                  "value": {
                    "report_type": "keywords_for_keyword.1",
                    "parameters": {
                      "keyword": "yoga mat",
                      "marketplace": "US",
                      "start_date": "2026-05-01",
                      "end_date": "2026-09-30"
                    }
                  }
                },
                "keywordsForKeywordWeekly": {
                  "summary": "Keywords for a keyword: weekly, August to September 2026",
                  "value": {
                    "report_type": "keywords_for_keyword.1",
                    "parameters": {
                      "keyword": "yoga mat",
                      "marketplace": "US",
                      "interval": "weekly",
                      "start_date": "2026-08-02",
                      "end_date": "2026-09-27"
                    }
                  }
                },
                "keywordsForKeywordWithPeriods": {
                  "summary": "Keywords for a keyword: monthly with per-period detail, July to September 2026",
                  "value": {
                    "report_type": "keywords_for_keyword.1",
                    "parameters": {
                      "keyword": "yoga mat",
                      "marketplace": "US",
                      "start_date": "2026-07-01",
                      "end_date": "2026-09-30",
                      "include_periods": true
                    }
                  }
                },
                "keywordsForKeywordCsv": {
                  "summary": "Keywords for a keyword: monthly as CSV with per-period detail, July to September 2026",
                  "value": {
                    "report_type": "keywords_for_keyword.1",
                    "parameters": {
                      "keyword": "yoga mat",
                      "marketplace": "US",
                      "start_date": "2026-07-01",
                      "end_date": "2026-09-30",
                      "include_periods": true,
                      "format": "csv"
                    }
                  }
                },
                "keywordsForAsin": {
                  "summary": "Keywords for an ASIN: monthly, May to September 2026",
                  "value": {
                    "report_type": "keywords_for_asin.1",
                    "parameters": {
                      "asin": "B000000001",
                      "marketplace": "US",
                      "start_date": "2026-05-01",
                      "end_date": "2026-09-30"
                    }
                  }
                },
                "keywordsForAsinWeekly": {
                  "summary": "Keywords for an ASIN: weekly, August to September 2026",
                  "value": {
                    "report_type": "keywords_for_asin.1",
                    "parameters": {
                      "asin": "B000000001",
                      "marketplace": "US",
                      "interval": "weekly",
                      "start_date": "2026-08-02",
                      "end_date": "2026-09-27"
                    }
                  }
                },
                "keywordsForAsinWithPeriods": {
                  "summary": "Keywords for an ASIN: monthly with per-period detail, July to September 2026",
                  "value": {
                    "report_type": "keywords_for_asin.1",
                    "parameters": {
                      "asin": "B000000001",
                      "marketplace": "US",
                      "start_date": "2026-07-01",
                      "end_date": "2026-09-30",
                      "include_periods": true
                    }
                  }
                },
                "keywordsForAsinCsv": {
                  "summary": "Keywords for an ASIN: monthly as CSV with per-period detail, July to September 2026",
                  "value": {
                    "report_type": "keywords_for_asin.1",
                    "parameters": {
                      "asin": "B000000001",
                      "marketplace": "US",
                      "start_date": "2026-07-01",
                      "end_date": "2026-09-30",
                      "include_periods": true,
                      "format": "csv"
                    }
                  }
                }
              }
            }
          }
        },
        "responses": {
          "202": {
            "description": "Accepted. Poll Location after at least Retry-After seconds; no completion-time guarantee.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportResponse"
                },
                "example": {
                  "data": {
                    "id": "d41f0b8e-6a2c-4c4e-9a51-3c1f6f2b7e10",
                    "report_type": "keywords_for_keyword.1",
                    "parameters": {
                      "keyword": "yoga mat",
                      "marketplace": "US",
                      "interval": "monthly",
                      "start_date": "2026-05-01",
                      "end_date": "2026-09-30",
                      "include_periods": false,
                      "format": "json"
                    },
                    "state": "queued",
                    "failure_code": null,
                    "failure_message": null,
                    "created_at": "2026-11-01T14:00:00.000Z",
                    "started_at": null,
                    "completed_at": null,
                    "result": null
                  }
                }
              }
            },
            "headers": {
              "Location": {
                "description": "Status path.",
                "schema": {
                  "type": "string"
                }
              },
              "Retry-After": {
                "description": "Suggested polling delay in seconds.",
                "schema": {
                  "type": "integer",
                  "enum": [
                    5
                  ]
                }
              }
            }
          },
          "400": {
            "description": "Unsupported report_type, invalid parameters, or an invalid keyword, ASIN, marketplace, interval or dates. Nothing is created.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "unsupported_report_type": {
                    "summary": "Missing or unknown report_type",
                    "value": {
                      "error": {
                        "code": "unsupported_report_type",
                        "message": "Use report_type keywords_for_keyword.1 or keywords_for_asin.1 with parameters."
                      }
                    }
                  },
                  "invalid_report_parameters": {
                    "summary": "A parameter of another type",
                    "value": {
                      "error": {
                        "code": "invalid_report_parameters",
                        "message": "Unknown parameter for keywords_for_asin.1: keyword."
                      }
                    }
                  },
                  "invalid_asin": {
                    "summary": "Not a 10-character ASIN",
                    "value": {
                      "error": {
                        "code": "invalid_asin",
                        "message": "Provide a 10-character ASIN."
                      }
                    }
                  },
                  "invalid_date_range": {
                    "summary": "More than 12 months",
                    "value": {
                      "error": {
                        "code": "invalid_date_range",
                        "message": "Use a range of at most 12 months."
                      }
                    }
                  },
                  "unavailable_dates": {
                    "summary": "Outside the plan's research data",
                    "value": {
                      "error": {
                        "code": "unavailable_dates",
                        "message": "The date range is outside the data available on your plan.",
                        "earliest_date": "2024-11-01",
                        "latest_date": "2026-10-31"
                      }
                    }
                  },
                  "unknown_body_parameter": {
                    "summary": "A top-level field other than report_type and parameters",
                    "value": {
                      "error": {
                        "code": "unknown_body_parameter",
                        "message": "Unknown body parameter: format."
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "Missing or expired subscription (`plan_required`), or the credit balance cannot cover the report's credit cost (`insufficient_credits`, with `credit_cost`, `credit_balance` and `resets_at`). Nothing is created or held. A credit refusal carries the quota headers, with `X-Quota-Cost` the report's credit cost.",
            "headers": {
              "X-Quota-Limit": {
                "$ref": "#/components/headers/XQuotaLimit"
              },
              "X-Quota-Remaining": {
                "$ref": "#/components/headers/XQuotaRemaining"
              },
              "X-Quota-Cost": {
                "$ref": "#/components/headers/XQuotaCost"
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "insufficient_credits": {
                    "summary": "Credit balance cannot cover the report",
                    "value": {
                      "error": {
                        "code": "insufficient_credits",
                        "message": "This call costs 200 credits, but the credit balance is 150 credits; the credit allowance resets at 2026-12-01T00:00:00.000Z.",
                        "credit_cost": 200,
                        "credit_balance": 150,
                        "resets_at": "2026-12-01T00:00:00.000Z"
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "The account's plan has no weekly research data, or User API or plan eligibility is unavailable.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "weekly_interval_not_allowed": {
                    "summary": "No weekly data on the plan",
                    "value": {
                      "error": {
                        "code": "weekly_interval_not_allowed",
                        "message": "Weekly intervals are not available on your plan."
                      }
                    }
                  },
                  "feature_not_enabled": {
                    "summary": "No User API access",
                    "value": {
                      "error": {
                        "code": "feature_not_enabled",
                        "message": "Access denied. User API feature is not enabled."
                      }
                    }
                  }
                }
              }
            }
          },
          "429": {
            "description": "Refused, with nothing created or charged. Either the request rate limit was exceeded (`rate_limit_exceeded`), or the account already has five outstanding exports and reports, the most allowed (`outstanding_export_limit_reached`). Submit again after `Retry-After` seconds, or as soon as one of them finishes.",
            "headers": {
              "X-RateLimit-Limit": {
                "$ref": "#/components/headers/XRateLimitLimit"
              },
              "X-RateLimit-Remaining": {
                "$ref": "#/components/headers/XRateLimitRemaining"
              },
              "X-RateLimit-Reset": {
                "$ref": "#/components/headers/XRateLimitReset"
              },
              "Retry-After": {
                "description": "Seconds to wait before retrying: the rest of the rate-limit window for `rate_limit_exceeded`, or 30 for `outstanding_export_limit_reached`.",
                "schema": {
                  "type": "integer",
                  "minimum": 0
                }
              }
            },
            "content": {
              "application/json": {
                "schema": {
                  "anyOf": [
                    {
                      "$ref": "#/components/schemas/RateLimitedErrorResponse"
                    },
                    {
                      "$ref": "#/components/schemas/ErrorResponse"
                    }
                  ]
                },
                "examples": {
                  "rate_limit_exceeded": {
                    "summary": "Request rate limit",
                    "value": {
                      "error": {
                        "code": "rate_limit_exceeded",
                        "message": "Rate limit exceeded. Please retry later.",
                        "retry_after": 12
                      }
                    }
                  },
                  "outstanding_export_limit_reached": {
                    "summary": "Five outstanding exports and reports",
                    "value": {
                      "error": {
                        "code": "outstanding_export_limit_reached",
                        "message": "This account already has five exports waiting or being generated, the most allowed at once. Submit again when one of them finishes."
                      }
                    }
                  }
                }
              }
            }
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          },
          "503": {
            "description": "The available research dates could not be read (`research_data_unavailable`), or the credit balance could not be verified (`credit_balance_unavailable`). Nothing was created; retry later.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                },
                "examples": {
                  "research_data_unavailable": {
                    "summary": "Research data unavailable",
                    "value": {
                      "error": {
                        "code": "research_data_unavailable",
                        "message": "Research data is temporarily unavailable. Try again."
                      }
                    }
                  },
                  "credit_balance_unavailable": {
                    "summary": "Credit balance could not be verified",
                    "value": {
                      "error": {
                        "code": "credit_balance_unavailable",
                        "message": "Credit balance could not be verified. Please retry later."
                      }
                    }
                  }
                }
              }
            }
          }
        }
      },
      "get": {
        "operationId": "listReports",
        "summary": "List reports",
        "description": "Lists your account's reports of every type under `data.reports`, newest first, with the same fields as the request and status responses. Use it to find report IDs, types and states, or to recover a request whose response was lost. Exports are not listed.\n\n## Request rules\n\n- `report_type` optionally restricts the list to one report type; an unknown value, including an export type, returns `400 unsupported_report_type`.\n- `date_from` and `date_to` optionally filter creation dates as strict `YYYY-MM-DD` calendar dates in America/Los_Angeles. Either bound may be omitted; both boundary days are included. These filters use `created_at`, not the dates inside `parameters`.\n- Malformed or impossible dates return `400 invalid_date`. A `date_to` before `date_from` returns `400 invalid_date_range`.\n- `limit` defaults to 50 and accepts 1 to 100.\n\n## Pagination\n\nContinue while `data.page.has_more` is true, passing `data.page.next_cursor` unchanged as the next request's opaque `cursor` with the same `limit`, `report_type`, `date_from` and `date_to`. Restart without a cursor when changing filters. A cursor that is unknown or belongs to another account returns an empty page.\n\n## Limits\n\n- Listing reports, checking their status and requesting download links are free and keep working when the credit balance is exhausted.\n- The burst limit is 60 requests per 60 seconds. After a `429`, wait for the `Retry-After` delay before retrying.\n\n## Examples\n\nReplace `<api_key>` with your API key. This example finds keywords-for-ASIN reports created during November 2026 in Los Angeles time.\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/reports?limit=50&report_type=keywords_for_asin.1&date_from=2026-11-01&date_to=2026-11-30' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n\nFor the next page, replace `<next_cursor>` with the returned value; `--data-urlencode` encodes it for the URL:\n\n```bash\ncurl --request GET --get \\\n  --url 'https://api.datarova.com/v0/reports' \\\n  --header 'Authorization: Bearer <api_key>' \\\n  --data-urlencode 'limit=50' \\\n  --data-urlencode 'report_type=keywords_for_asin.1' \\\n  --data-urlencode 'date_from=2026-11-01' \\\n  --data-urlencode 'date_to=2026-11-30' \\\n  --data-urlencode 'cursor=<next_cursor>'\n```\n",
        "tags": [
          "Reports"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "date_from",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "description": "First included creation day, a strict YYYY-MM-DD date in America/Los_Angeles. Omit for no lower bound.",
            "example": "2026-11-01"
          },
          {
            "name": "date_to",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "format": "date",
              "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
            },
            "description": "Last included creation day, on or after date_from. Omit for no upper bound.",
            "example": "2026-11-30"
          },
          {
            "name": "report_type",
            "in": "query",
            "required": false,
            "schema": {
              "type": "string",
              "enum": [
                "keywords_for_keyword.1",
                "keywords_for_asin.1"
              ]
            },
            "description": "Return only reports of this type."
          },
          {
            "name": "limit",
            "in": "query",
            "schema": {
              "type": "integer",
              "minimum": 1,
              "maximum": 100,
              "default": 50
            }
          },
          {
            "name": "cursor",
            "in": "query",
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "Opaque cursor returned by the previous page."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportsResponse"
                },
                "example": {
                  "data": {
                    "reports": [
                      {
                        "id": "5b8f2c71-9d4e-4a3b-b6c0-2e1f7a9d8c35",
                        "report_type": "keywords_for_asin.1",
                        "parameters": {
                          "asin": "B000000001",
                          "marketplace": "US",
                          "interval": "monthly",
                          "start_date": "2026-05-01",
                          "end_date": "2026-09-30",
                          "include_periods": false,
                          "format": "json"
                        },
                        "state": "ready",
                        "failure_code": null,
                        "failure_message": null,
                        "created_at": "2026-11-01T14:00:00.000Z",
                        "started_at": "2026-11-01T14:00:03.000Z",
                        "completed_at": "2026-11-01T14:00:09.000Z",
                        "result": {
                          "row_count": 412,
                          "compressed_bytes": 9120,
                          "expires_at": "2026-12-01T14:00:09.000Z"
                        }
                      },
                      {
                        "id": "d41f0b8e-6a2c-4c4e-9a51-3c1f6f2b7e10",
                        "report_type": "keywords_for_keyword.1",
                        "parameters": {
                          "keyword": "yoga mat",
                          "marketplace": "US",
                          "interval": "monthly",
                          "start_date": "2026-05-01",
                          "end_date": "2026-09-30",
                          "include_periods": false,
                          "format": "json"
                        },
                        "state": "ready",
                        "failure_code": null,
                        "failure_message": null,
                        "created_at": "2026-11-01T14:00:00.000Z",
                        "started_at": "2026-11-01T14:00:03.000Z",
                        "completed_at": "2026-11-01T14:00:09.000Z",
                        "result": {
                          "row_count": 412,
                          "compressed_bytes": 9120,
                          "expires_at": "2026-12-01T14:00:09.000Z"
                        }
                      }
                    ],
                    "page": {
                      "limit": 50,
                      "has_more": false,
                      "next_cursor": null
                    }
                  }
                }
              }
            }
          },
          "400": {
            "description": "Invalid query: unknown_query_parameter, unsupported_report_type, invalid_limit, invalid_cursor, invalid_date or invalid_date_range.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "Missing or expired subscription. Listing reports, checking their status and requesting download links are free and never refused for credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/ExportAccessDenied"
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/v0/reports/{reportId}": {
      "get": {
        "operationId": "getReport",
        "summary": "Get a report",
        "description": "Returns one report's type, state, parameters and result metadata under `data`. Poll it after acceptance until the state is terminal, then request a download link for a `ready` report.\n\n## States\n\n- `queued` and `processing`: generation has not finished and `result` is null. Poll again at least five seconds apart.\n- `ready`: the file is complete. `result` contains `row_count` (the number of keywords), `compressed_bytes` and `expires_at`; call `GET /v0/reports/{reportId}/download`.\n- `failed`: generation stopped and `result` is null. `failure_code` identifies the cause and `failure_message` says what to do next. The report costs nothing and its held credits are released.\n- `expired`: the file's 30-day retention has ended. The details and `result` remain readable, but the file cannot be downloaded.\n\nTransient generation problems are retried automatically and the report stays `queued` meanwhile.\n\n## Failure codes and recovery\n\n- `retry_exhausted`: generation failed repeatedly. Request a new report; nothing was charged.\n- `invalid_asin` (`keywords_for_asin.1` only): Amazon does not list this ASIN in the requested marketplace. Check the ASIN and the marketplace, then request a new report; nothing was charged. This is decided on the first attempt and is not retried. A failure to reach Amazon is retried like any other transient problem and never reported as `invalid_asin`.\n- `invalid_export_context`: the saved request could not be processed. Request a new report; nothing was charged.\n\n## Errors\n\n- `404`: the ID is unknown, belongs to another account, or identifies an export.\n\n## Limits\n\n- Listing reports, checking their status and requesting download links are free and keep working when the credit balance is exhausted.\n- The burst limit is 60 requests per 60 seconds. After a `429`, wait for the `Retry-After` delay before retrying.\n\n## Example\n\nReplace `<api_key>` with your API key and `<report_id>` with the ID returned at acceptance.\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/reports/<report_id>' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n",
        "tags": [
          "Reports"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "A report ID returned when the report was requested or listed."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ReportResponse"
                },
                "examples": {
                  "ready": {
                    "summary": "Completed report",
                    "value": {
                      "data": {
                        "id": "d41f0b8e-6a2c-4c4e-9a51-3c1f6f2b7e10",
                        "report_type": "keywords_for_keyword.1",
                        "parameters": {
                          "keyword": "yoga mat",
                          "marketplace": "US",
                          "interval": "monthly",
                          "start_date": "2026-05-01",
                          "end_date": "2026-09-30",
                          "include_periods": false,
                          "format": "json"
                        },
                        "state": "ready",
                        "failure_code": null,
                        "failure_message": null,
                        "created_at": "2026-11-01T14:00:00.000Z",
                        "started_at": "2026-11-01T14:00:03.000Z",
                        "completed_at": "2026-11-01T14:00:09.000Z",
                        "result": {
                          "row_count": 412,
                          "compressed_bytes": 9120,
                          "expires_at": "2026-12-01T14:00:09.000Z"
                        }
                      }
                    }
                  },
                  "failed": {
                    "summary": "Generation failed repeatedly",
                    "value": {
                      "data": {
                        "id": "d41f0b8e-6a2c-4c4e-9a51-3c1f6f2b7e10",
                        "report_type": "keywords_for_keyword.1",
                        "parameters": {
                          "keyword": "yoga mat",
                          "marketplace": "US",
                          "interval": "monthly",
                          "start_date": "2026-05-01",
                          "end_date": "2026-09-30",
                          "include_periods": false,
                          "format": "json"
                        },
                        "state": "failed",
                        "failure_code": "retry_exhausted",
                        "failure_message": "Generation failed repeatedly. Request a new report; nothing was charged.",
                        "created_at": "2026-11-01T14:00:00.000Z",
                        "started_at": "2026-11-01T14:00:03.000Z",
                        "completed_at": null,
                        "result": null
                      }
                    }
                  },
                  "invalidAsin": {
                    "summary": "An ASIN Amazon does not list",
                    "value": {
                      "data": {
                        "id": "7c2e9a40-1b3d-4f5e-8a6b-9c0d1e2f3a4b",
                        "report_type": "keywords_for_asin.1",
                        "parameters": {
                          "asin": "B000000001",
                          "marketplace": "US",
                          "interval": "monthly",
                          "start_date": "2026-05-01",
                          "end_date": "2026-09-30",
                          "include_periods": false,
                          "format": "json"
                        },
                        "state": "failed",
                        "failure_code": "invalid_asin",
                        "failure_message": "Amazon does not list this ASIN in the requested marketplace. Check the ASIN and the marketplace, then request a new report; nothing was charged.",
                        "created_at": "2026-11-01T14:00:00.000Z",
                        "started_at": "2026-11-01T14:00:03.000Z",
                        "completed_at": null,
                        "result": null
                      }
                    }
                  }
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "Missing or expired subscription. Listing reports, checking their status and requesting download links are free and never refused for credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/ExportAccessDenied"
          },
          "404": {
            "description": "Unknown report, a report owned by another account, or an export.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    },
    "/v0/reports/{reportId}/download": {
      "get": {
        "operationId": "downloadReport",
        "summary": "Get a report download link",
        "description": "Returns a temporary download URL under `data.url`, with its expiry in `data.expires_at`, for a report whose state is `ready`. Use it once `GET /v0/reports/{reportId}` shows `ready`. Download the file with a plain GET on that URL; no authentication header is needed for it. Treat the complete returned URL as opaque and confidential.\n\n## Links and retention\n\n- Each link lasts at most five minutes and never beyond the file's expiry. Request a new link whenever you need one; this does not regenerate the report, charge again or extend retention.\n- The file stays available for 720 hours after completion; the report's `result.expires_at` shows when.\n\n## File format\n\nThe file is delivered as `application/gzip` with an attachment filename named after the report type and the report's `format`: `keywords-for-keyword.json.gz`, `keywords-for-keyword.jsonl.gz` or `keywords-for-keyword.csv.gz` for `keywords_for_keyword.1`, and `keywords-for-asin.json.gz`, `keywords-for-asin.jsonl.gz` or `keywords-for-asin.csv.gz` for `keywords_for_asin.1`. A JSON file is one array of keyword records, `[]` when nothing matched; a JSONL file has one record per line; a CSV file has a header row and one row per keyword, or per keyword and period with periods. Each type's fields, columns and order are described in the Reports overview.\n\n## Errors\n\n- `409` `export_not_ready`: the report is `queued`, `processing` or `failed`. Poll its status; a failed report has no file.\n- `410` `export_expired`: the file's retention period has ended. Request a new report if you still need the data.\n- `404`: the ID is unknown, belongs to another account, or identifies an export.\n\n## Limits\n\n- Listing reports, checking their status and requesting download links are free and keep working when the credit balance is exhausted.\n- The burst limit is 60 requests per 60 seconds. After a `429`, wait for the `Retry-After` delay before retrying.\n\n## Example\n\nReplace `<api_key>` with your API key and `<report_id>` with the ID of a `ready` report.\n\n```bash\ncurl --request GET \\\n  --url 'https://api.datarova.com/v0/reports/<report_id>/download' \\\n  --header 'Authorization: Bearer <api_key>'\n```\n",
        "tags": [
          "Reports"
        ],
        "security": [
          {
            "bearerAuth": []
          }
        ],
        "parameters": [
          {
            "name": "reportId",
            "in": "path",
            "required": true,
            "schema": {
              "type": "string",
              "format": "uuid"
            },
            "description": "A report ID returned when the report was requested or listed."
          }
        ],
        "responses": {
          "200": {
            "description": "Successful response.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ExportDownloadResponse"
                }
              }
            }
          },
          "401": {
            "$ref": "#/components/responses/Unauthorized"
          },
          "402": {
            "description": "Missing or expired subscription. Listing reports, checking their status and requesting download links are free and never refused for credits.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "403": {
            "$ref": "#/components/responses/ExportAccessDenied"
          },
          "404": {
            "description": "Unknown report, a report owned by another account, or an export.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "409": {
            "description": "export_not_ready. Poll queued or processing reports; failed reports have no file.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "410": {
            "description": "export_expired. The file retention period ended.",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ErrorResponse"
                }
              }
            }
          },
          "429": {
            "$ref": "#/components/responses/RateLimited"
          },
          "500": {
            "$ref": "#/components/responses/InternalError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "bearerAuth": {
        "type": "http",
        "scheme": "bearer",
        "bearerFormat": "API key",
        "description": "To try an endpoint with **Test**, paste your API key from [Datarova Connections](https://app.datarova.com/settings/connections) into its Authorize box, then click **Authorize**.\n\nPaste only the key. Don't type \"Bearer\" in front of it; that's added for you."
      }
    },
    "parameters": {
      "ProjectId": {
        "name": "projectId",
        "in": "path",
        "required": true,
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 2147483647
        }
      },
      "Limit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "description": "Default `50`. Maximum `200`.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "maximum": 200,
          "default": 50
        }
      },
      "Cursor": {
        "name": "cursor",
        "in": "query",
        "required": false,
        "description": "Opaque cursor returned by the previous page.",
        "schema": {
          "type": "string"
        }
      },
      "Asin": {
        "name": "asin",
        "in": "query",
        "required": true,
        "description": "ASIN for the owned project. The server trims whitespace and uppercases the value before validation.",
        "schema": {
          "type": "string",
          "minLength": 10,
          "maxLength": 10
        }
      },
      "StartDate": {
        "name": "start_date",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        }
      },
      "EndDate": {
        "name": "end_date",
        "in": "query",
        "required": true,
        "schema": {
          "type": "string",
          "format": "date",
          "pattern": "^\\d{4}-\\d{2}-\\d{2}$"
        }
      },
      "KeywordLabelIds": {
        "name": "keyword_label_ids",
        "in": "query",
        "required": false,
        "description": "Optional item-label filter for project keywords. Returns keywords that carry at least one of the labels. Use label IDs from `GET /v0/item-labels`. Send up to `1000` IDs as one comma-separated value, such as `keyword_label_ids=12,15`. Repeated parameters are also accepted, up to `100` of them; more returns `400 invalid_keyword_label_ids`. Cannot be combined with `keywords`.",
        "schema": {
          "type": "array",
          "minItems": 1,
          "maxItems": 1000,
          "items": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "style": "form",
        "explode": false,
        "example": [
          12,
          15
        ]
      },
      "Keywords": {
        "name": "keywords",
        "in": "query",
        "required": false,
        "description": "Optional project-keyword filter. Send one parameter per keyword. With more than one `keywords` parameter, each value is a whole keyword, commas included; with exactly one, it is split on commas (deprecated). Each keyword must match a project keyword exactly, ignoring letter case and surrounding spaces. Cannot be combined with `keyword_label_ids`.",
        "schema": {
          "type": "array",
          "items": {
            "type": "string"
          }
        },
        "style": "form",
        "explode": true
      },
      "RanksLimit": {
        "name": "limit",
        "in": "query",
        "required": false,
        "description": "Default is the smaller of `20` or the computed per-day maximum.",
        "schema": {
          "type": "integer",
          "minimum": 1,
          "default": 20
        }
      },
      "KeywordCursor": {
        "name": "cursor",
        "in": "query",
        "required": false,
        "description": "Opaque keyword cursor returned by the previous `ranks-by-asin` page.",
        "schema": {
          "type": "string"
        }
      }
    },
    "headers": {
      "XRateLimitLimit": {
        "description": "The maximum number of requests allowed for the current rate-limit window.",
        "schema": {
          "type": "integer"
        }
      },
      "XRateLimitRemaining": {
        "description": "The number of requests remaining in the current rate-limit window.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "XRateLimitReset": {
        "description": "Unix timestamp in seconds when the current rate-limit window resets.",
        "schema": {
          "type": "integer"
        }
      },
      "XQuotaLimit": {
        "description": "The credit allowance for the current allowance cycle: the credits granted for it, including any mid-cycle upgrade or adjustment.",
        "schema": {
          "type": "integer"
        }
      },
      "XQuotaRemaining": {
        "description": "The credit balance left in the current allowance cycle after this call: the balance less `X-Quota-Cost`, never below 0. On an `insufficient_credits` refusal, the current credit balance.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "RetryAfter": {
        "description": "Number of seconds until the client can retry after hitting the rate limit.",
        "schema": {
          "type": "integer",
          "minimum": 0
        }
      },
      "XQuotaCost": {
        "description": "This call's credit cost: 5 credits on every endpoint except those that state a different cost. `X-Quota-Remaining` already subtracts it. On an `insufficient_credits` refusal, the credits the call would have cost.",
        "schema": {
          "type": "integer",
          "minimum": 1
        }
      },
      "XRequestId": {
        "description": "Identifier of the live search. Quote it when contacting support.",
        "schema": {
          "type": "string"
        }
      }
    },
    "responses": {
      "BadRequest": {
        "description": "Invalid request. Implemented codes vary by endpoint and can include `unknown_query_parameter`, `unknown_body_parameter`, `invalid_limit`, `invalid_cursor`, and `invalid_project_id`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "Unauthorized": {
        "description": "Missing or invalid API key. Implemented codes are `missing_api_key` and `invalid_api_key`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "PlanRequiredFree": {
        "description": "Missing or expired plan (`plan_required`). This endpoint is free, so it is never refused for lack of credits.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "error": {
                "code": "plan_required",
                "message": "Please choose a plan."
              }
            }
          }
        }
      },
      "PlanRequired": {
        "description": "Missing or expired plan (`plan_required`). Chargeable endpoints also return `402 insufficient_credits` when the credit balance cannot cover the call's credit cost. The call does not run and costs nothing; the error carries `credit_cost`, `credit_balance` and `resets_at`, and the quota headers report the credit allowance, the credit balance and the call's cost.",
        "headers": {
          "X-Quota-Limit": {
            "$ref": "#/components/headers/XQuotaLimit"
          },
          "X-Quota-Remaining": {
            "$ref": "#/components/headers/XQuotaRemaining"
          },
          "X-Quota-Cost": {
            "$ref": "#/components/headers/XQuotaCost"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "examples": {
              "plan_required": {
                "summary": "No active plan",
                "value": {
                  "error": {
                    "code": "plan_required",
                    "message": "Please choose a plan."
                  }
                }
              },
              "insufficient_credits": {
                "summary": "Credit balance cannot cover the call",
                "value": {
                  "error": {
                    "code": "insufficient_credits",
                    "message": "This call costs 5 credits, but the credit balance is 3 credits; the credit allowance resets at 2026-12-01T00:00:00.000Z.",
                    "credit_cost": 5,
                    "credit_balance": 3,
                    "resets_at": "2026-12-01T00:00:00.000Z"
                  }
                }
              }
            }
          }
        }
      },
      "ProjectNotFound": {
        "description": "Owned project not found. Implemented code is `project_not_found`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "FeatureNotEnabled": {
        "description": "Authenticated account does not have the `user-api` feature enabled. Implemented code is `feature_not_enabled`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "error": {
                "code": "feature_not_enabled",
                "message": "Access denied. User API feature is not enabled."
              }
            }
          }
        }
      },
      "InternalError": {
        "description": "Unexpected server error. Implemented code is `internal_error`.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "RateLimited": {
        "description": "Request rate limit exceeded. Implemented code is `rate_limit_exceeded`. Account-level throttling includes the `X-RateLimit-*` headers. Shared IP edge throttling omits those account headers and returns `Retry-After: 60` with `error.retry_after: 60`; this delay is not a guaranteed reset time.",
        "headers": {
          "X-RateLimit-Limit": {
            "$ref": "#/components/headers/XRateLimitLimit"
          },
          "X-RateLimit-Remaining": {
            "$ref": "#/components/headers/XRateLimitRemaining"
          },
          "X-RateLimit-Reset": {
            "$ref": "#/components/headers/XRateLimitReset"
          },
          "Retry-After": {
            "$ref": "#/components/headers/RetryAfter"
          }
        },
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/RateLimitedErrorResponse"
            },
            "example": {
              "error": {
                "code": "rate_limit_exceeded",
                "message": "Rate limit exceeded. Please retry later.",
                "retry_after": 12
              }
            }
          }
        }
      },
      "QuotaUnavailable": {
        "description": "The credit balance could not be verified. Implemented code is `credit_balance_unavailable`; retry later.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "error": {
                "code": "credit_balance_unavailable",
                "message": "Credit balance could not be verified. Please retry later."
              }
            }
          }
        }
      },
      "ExportAccessDenied": {
        "description": "Current User API or plan resource eligibility is unavailable.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            },
            "example": {
              "error": {
                "code": "feature_not_enabled",
                "message": "Access denied. User API feature is not enabled."
              }
            }
          }
        }
      }
    },
    "schemas": {
      "MetricsWindow": {
        "type": "string",
        "enum": [
          "four_weeks",
          "latest_month"
        ],
        "description": "The period the keyword metrics cover, set by the account's plan. `four_weeks`: the latest four loaded weeks, compared with the four weeks before them. `latest_month`: the latest loaded month, compared with the month before it, for plans without weekly data. Fields ending in `_l4w` hold values for this window whichever it is."
      },
      "KeywordPeriodAvailability": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "available_on_plan",
          "earliest_available_date",
          "earliest_date_allowed_by_plan",
          "latest_available_date"
        ],
        "description": "ISO YYYY-MM-DD period starts: Sunday for weekly, first of the month for monthly. All three dates are null when this interval has no stored data, or when the plan does not include it.",
        "properties": {
          "available_on_plan": {
            "type": "boolean",
            "description": "Whether the current plan includes this interval. `false` for weekly on plans without weekly data: the three dates are then null, and `GET /v0/keywords` and weekly reports refuse weekly requests. Always `true` for monthly."
          },
          "earliest_available_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Oldest stored period start, including history your current plan does not allow. Null when this interval has no stored data."
          },
          "earliest_date_allowed_by_plan": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Oldest period start your current plan allows. When later than `earliest_available_date`, the plan's history limit holds back the older stored data and a plan with a longer history window can read it. Equals `earliest_available_date` when the plan has no history limit. Null when this interval has no stored data."
          },
          "latest_available_date": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Latest loaded period start, independent of the current calendar period. Null when this interval has no stored data."
          }
        }
      },
      "PostalCodesResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "description": "One entry per marketplace.",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "marketplace",
                "delivery_scope",
                "postal_codes"
              ],
              "properties": {
                "marketplace": {
                  "type": "string",
                  "enum": [
                    "US",
                    "CA",
                    "MX",
                    "UK",
                    "DE",
                    "FR",
                    "IT",
                    "ES",
                    "AU",
                    "JP",
                    "BR",
                    "IN",
                    "SG",
                    "TR",
                    "NL",
                    "PL",
                    "SE",
                    "BE",
                    "SA",
                    "AE",
                    "EG",
                    "IE",
                    "ZA"
                  ]
                },
                "delivery_scope": {
                  "type": "string",
                  "enum": [
                    "postal_code",
                    "country"
                  ],
                  "description": "`country` when Amazon delivers to the whole country, so live search takes no `postal_code` and `postal_codes` is empty (`NL`, `BE` and `ZA`); otherwise `postal_code`."
                },
                "postal_codes": {
                  "type": "array",
                  "description": "The marketplace's postal codes: the default first, then by region and city. Empty when `delivery_scope` is `country`.",
                  "items": {
                    "$ref": "#/components/schemas/PostalCode"
                  }
                }
              }
            }
          }
        }
      },
      "PostalCode": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "postal_code",
          "city",
          "region",
          "is_default"
        ],
        "properties": {
          "postal_code": {
            "type": "string",
            "minLength": 1,
            "description": "Postal code to pass to live search as `postal_code`, exactly as listed. In `SA`, `AE` and `EG` it is a city name."
          },
          "city": {
            "type": "string",
            "minLength": 1,
            "description": "City the postal code is in."
          },
          "region": {
            "type": "string",
            "minLength": 1,
            "description": "Full name of the state, province, prefecture, territory, county or UK nation the postal code is in. In Singapore, which has none, it is `Singapore` and `city` names the district."
          },
          "is_default": {
            "type": "boolean",
            "description": "Whether live search uses this postal code when `postal_code` is omitted. Exactly one postal code per marketplace is the default."
          }
        }
      },
      "DataAvailabilityResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "array",
            "items": {
              "type": "object",
              "additionalProperties": false,
              "required": [
                "marketplace",
                "weekly",
                "monthly"
              ],
              "properties": {
                "marketplace": {
                  "type": "string",
                  "enum": [
                    "US",
                    "CA",
                    "MX",
                    "UK",
                    "DE",
                    "FR",
                    "IT",
                    "ES",
                    "AU"
                  ]
                },
                "weekly": {
                  "$ref": "#/components/schemas/KeywordPeriodAvailability"
                },
                "monthly": {
                  "$ref": "#/components/schemas/KeywordPeriodAvailability"
                }
              }
            }
          }
        }
      },
      "ProjectNote": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "note_id",
          "project_id",
          "asin",
          "date_from",
          "date_to",
          "title",
          "description",
          "color",
          "keywords",
          "created_at",
          "updated_at"
        ],
        "properties": {
          "note_id": {
            "type": "integer",
            "minimum": 1,
            "description": "Stable note identity, used for retrieval, editing and deletion."
          },
          "project_id": {
            "type": "integer",
            "minimum": 1,
            "description": "The owning marketplace project, not the project group."
          },
          "asin": {
            "type": "string",
            "description": "Stored ASIN identity, retained after detachment or a primary-ASIN change."
          },
          "date_from": {
            "type": "string",
            "format": "date",
            "description": "First included calendar date."
          },
          "date_to": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Last included date, or null for a single-day note."
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Complete stored title. Historical app notes may exceed API write limits."
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "description": "Complete stored plain text, including line breaks. Historical app notes may exceed API write limits."
          },
          "color": {
            "type": [
              "string",
              "null"
            ],
            "description": "Stored app color. Supported write colors are green, yellow, orange, red, purple and lilac."
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Stored keyword selection, including detached keywords. An empty list means an ASIN-level annotation."
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Creation timestamp when available; existing absent timestamps remain null."
          },
          "updated_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time",
            "description": "Last-update timestamp when available; existing absent timestamps remain null."
          }
        }
      },
      "ProjectNoteResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "note"
            ],
            "properties": {
              "note": {
                "$ref": "#/components/schemas/ProjectNote"
              }
            }
          }
        }
      },
      "ProjectNotesResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "notes",
              "page"
            ],
            "properties": {
              "notes": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProjectNote"
                }
              },
              "page": {
                "$ref": "#/components/schemas/Page"
              }
            }
          }
        }
      },
      "ProjectAsinLabelsResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "project_id",
              "label_ids",
              "updated_asins",
              "unchanged_asins"
            ],
            "properties": {
              "project_id": {
                "type": "integer"
              },
              "label_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                }
              },
              "updated_asins": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "unchanged_asins": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "ProjectAsinLabelsRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "asins",
          "label_ids"
        ],
        "properties": {
          "asins": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "items": {
              "type": "string",
              "description": "Ten letters or digits after trimming and uppercasing."
            }
          },
          "label_ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          }
        }
      },
      "ProjectKeywordLabelsResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "project_id",
              "label_ids",
              "updated_keywords",
              "unchanged_keywords"
            ],
            "properties": {
              "project_id": {
                "type": "integer"
              },
              "label_ids": {
                "type": "array",
                "items": {
                  "type": "integer",
                  "minimum": 1,
                  "maximum": 2147483647
                }
              },
              "updated_keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "unchanged_keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              }
            }
          }
        }
      },
      "ProjectKeywordLabelsRequest": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "keywords",
          "label_ids"
        ],
        "properties": {
          "keywords": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "items": {
              "type": "string",
              "description": "1 to 255 characters after trimming and lowercasing."
            }
          },
          "label_ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          }
        }
      },
      "CreateRankingExportRequest": {
        "title": "Ranks by ASIN",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "export_type",
          "parameters"
        ],
        "properties": {
          "export_type": {
            "type": "string",
            "enum": [
              "ranks_by_asin.1"
            ]
          },
          "parameters": {
            "$ref": "#/components/schemas/RankingExportParameters"
          }
        },
        "description": "Request body for a daily keyword-rank export. The version suffix on `export_type` identifies the parameter set and output schema; a future change ships as a new id."
      },
      "CreateProjectKeywordsExportRequest": {
        "title": "Project keywords",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "export_type",
          "parameters"
        ],
        "properties": {
          "export_type": {
            "type": "string",
            "enum": [
              "project_keywords.1"
            ]
          },
          "parameters": {
            "$ref": "#/components/schemas/ProjectKeywordsExportParameters"
          }
        },
        "description": "Request body for a project keywords export. The version suffix on `export_type` identifies the parameter set and output schema; a future change ships as a new id."
      },
      "CreateExportRequest": {
        "type": "object",
        "required": [
          "export_type"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/CreateRankingExportRequest"
          },
          {
            "$ref": "#/components/schemas/CreateProjectKeywordsExportRequest"
          }
        ],
        "discriminator": {
          "propertyName": "export_type",
          "mapping": {
            "ranks_by_asin.1": "#/components/schemas/CreateRankingExportRequest",
            "project_keywords.1": "#/components/schemas/CreateProjectKeywordsExportRequest"
          }
        }
      },
      "ExportRunBase": {
        "type": "object",
        "required": [
          "id",
          "state",
          "failure_code",
          "failure_message",
          "created_at",
          "started_at",
          "completed_at",
          "result"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "state": {
            "type": "string",
            "enum": [
              "queued",
              "processing",
              "ready",
              "failed",
              "expired"
            ],
            "description": "`queued` and `processing` are unfinished; poll at least 5 seconds apart. `ready` has a file. `failed` and `expired` are terminal. Decide failure from `state`, not `failure_code`."
          },
          "failure_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Stable terminal failure code. export_record_limit_exceeded means the estimated or generated count exceeds 1,000,000 per export. insufficient_credits means the complete file costs more credits than its hold and the rest of the credit balance. export_allowance_insufficient is historical, from exports accepted before credits launched. See Get an export for recovery guidance."
          },
          "failure_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Plain-language explanation and next step for a `failed` export. Null in every other state."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the export request was accepted."
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "result": {
            "type": [
              "object",
              "null"
            ],
            "description": "Null until successful completion, including failed exports. Ready and expired exports retain this metadata; a successful empty file has row_count 0. Download URLs are returned only by the download-link endpoint.",
            "required": [
              "row_count",
              "compressed_bytes",
              "expires_at"
            ],
            "additionalProperties": false,
            "properties": {
              "row_count": {
                "type": "integer",
                "minimum": 0
              },
              "compressed_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "expires_at": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        }
      },
      "RankingExportRunParameters": {
        "title": "ranks_by_asin.1 parameters (normalised)",
        "description": "The parameters echoed on a stored export: the request parameters with `format` and `primary_asin_only` always present after defaults are applied.",
        "allOf": [
          {
            "$ref": "#/components/schemas/RankingExportParameters"
          },
          {
            "type": "object",
            "required": [
              "format",
              "primary_asin_only"
            ]
          }
        ]
      },
      "ProjectKeywordsExportRunParameters": {
        "title": "project_keywords.1 parameters (normalised)",
        "description": "The parameters echoed on a stored export: the request parameters with `format` always present after the default is applied.",
        "allOf": [
          {
            "$ref": "#/components/schemas/ProjectKeywordsExportParameters"
          },
          {
            "type": "object",
            "required": [
              "format"
            ]
          }
        ]
      },
      "RanksByAsinExportRun": {
        "title": "Ranks by ASIN",
        "allOf": [
          {
            "$ref": "#/components/schemas/ExportRunBase"
          },
          {
            "type": "object",
            "required": [
              "export_type",
              "parameters"
            ],
            "properties": {
              "export_type": {
                "type": "string",
                "enum": [
                  "ranks_by_asin.1"
                ]
              },
              "parameters": {
                "$ref": "#/components/schemas/RankingExportRunParameters"
              }
            }
          }
        ]
      },
      "ProjectKeywordsExportRun": {
        "title": "Project keywords",
        "allOf": [
          {
            "$ref": "#/components/schemas/ExportRunBase"
          },
          {
            "type": "object",
            "required": [
              "export_type",
              "parameters",
              "metrics_window"
            ],
            "properties": {
              "export_type": {
                "type": "string",
                "enum": [
                  "project_keywords.1"
                ]
              },
              "parameters": {
                "$ref": "#/components/schemas/ProjectKeywordsExportRunParameters"
              },
              "metrics_window": {
                "$ref": "#/components/schemas/MetricsWindow",
                "description": "The window the file's keyword metrics cover, fixed by the account's plan when the export was accepted."
              }
            }
          }
        ]
      },
      "ExportRun": {
        "type": "object",
        "description": "One accepted export and its result. `failure_code` is machine-readable and `failure_message` says what to do next: `export_record_limit_exceeded` means the estimated or generated count exceeds 1,000,000 records; reduce the selection or dates. `insufficient_credits` means the complete file costs more credits than the balance covers, so submit a smaller request; `export_allowance_insufficient` is historical, from before credits, so submit a new export; `selected_label_deleted` and `project_access_changed` are retained historical failures, so submit a new export; `generation_failed` retries internally; `retry_exhausted` is terminal, so submit a new export; `invalid_export_context` means the saved request could not be processed, so submit a new export; Failed exports cost nothing. Finished details remain at least 90 days after activity and cycle end and longer while reconciliation needs them, then may return 404. Usage counters remain.",
        "required": [
          "export_type"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/RanksByAsinExportRun"
          },
          {
            "$ref": "#/components/schemas/ProjectKeywordsExportRun"
          }
        ],
        "discriminator": {
          "propertyName": "export_type",
          "mapping": {
            "ranks_by_asin.1": "#/components/schemas/RanksByAsinExportRun",
            "project_keywords.1": "#/components/schemas/ProjectKeywordsExportRun"
          }
        }
      },
      "RanksByAsinRecord": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "date",
          "project_id",
          "project_name",
          "marketplace",
          "asin",
          "keyword",
          "organic_rank",
          "sponsored_rank",
          "choice_badge",
          "ranked_asin"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date"
          },
          "project_id": {
            "type": "integer",
            "minimum": 1
          },
          "project_name": {
            "type": "string"
          },
          "marketplace": {
            "type": "string",
            "enum": [
              "US",
              "CA",
              "MX",
              "UK",
              "DE",
              "FR",
              "IT",
              "ES",
              "AU"
            ]
          },
          "asin": {
            "type": "string",
            "minLength": 10,
            "maxLength": 10
          },
          "keyword": {
            "type": "string"
          },
          "organic_rank": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1
          },
          "sponsored_rank": {
            "type": [
              "integer",
              "null"
            ],
            "minimum": 1
          },
          "choice_badge": {
            "type": [
              "boolean",
              "null"
            ]
          },
          "ranked_asin": {
            "type": [
              "string",
              "null"
            ]
          }
        },
        "description": "One eligible tracking day, marketplace project, selected ASIN and keyword. Names are captured at generation start. Tracked days without observations emit null ranks and count as records toward the export's credit cost. Pre-tracking days are omitted. Existing daily ranking and variation calculations are preserved, with asin separate from ranked_asin."
      },
      "ProjectKeywordsRecord": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "project_id",
          "project_name",
          "marketplace",
          "keyword",
          "keyword_clicks_l4w",
          "keyword_sales_l4w",
          "keyword_conversion_l4w",
          "top_asin",
          "top_asin_sales_l4w",
          "top_asin_clicks_l4w",
          "top_asin_conversion_l4w",
          "trend_l4w",
          "sales_distribution",
          "dstr",
          "organic_rank",
          "sponsored_rank",
          "asins_in_top_10",
          "labels"
        ],
        "properties": {
          "project_id": {
            "type": "integer",
            "description": "Marketplace project ID."
          },
          "project_name": {
            "type": "string",
            "description": "Project name when that project is read during the successful attempt."
          },
          "marketplace": {
            "type": "string",
            "description": "Marketplace code such as `US`."
          },
          "keyword": {
            "type": "string"
          },
          "keyword_clicks_l4w": {
            "type": "number"
          },
          "keyword_sales_l4w": {
            "type": "number"
          },
          "keyword_conversion_l4w": {
            "type": "number"
          },
          "top_asin": {
            "type": "string"
          },
          "top_asin_sales_l4w": {
            "type": "integer"
          },
          "top_asin_clicks_l4w": {
            "type": "integer"
          },
          "top_asin_conversion_l4w": {
            "type": "number"
          },
          "trend_l4w": {
            "type": "number",
            "description": "Percentage change in `keyword_sales_l4w` compared with the period of the same length before the window (the previous four weeks, or the previous month), rounded to one decimal place. When the keyword had no sales in that period, the change is measured against 1 sale, so it equals `keyword_sales_l4w` × 100."
          },
          "sales_distribution": {
            "type": "number",
            "description": "The keyword attachment's share of the combined `keyword_sales_l4w` of every keyword attachment in its marketplace project, as a percentage rounded to one decimal place. It is calculated over the whole project, so export filters do not change it. `0` when the project's keywords had no sales in the period."
          },
          "dstr": {
            "type": "integer",
            "description": "Daily Sales To Rank (DSTR): the estimated number of daily sales an ASIN needs from searches for this keyword to rank in the top 3. It is a whole number, the larger of two estimates over the latest four loaded weeks, whatever `metrics_window` is: the keyword's sales over those weeks / 112, rounded to the nearest whole number, and the top-selling ASIN's sales for the keyword / 28 × 1.1, rounded up. `0` when the keyword has no sales data for the period."
          },
          "organic_rank": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Organic search position of the project's primary ASIN for the keyword on the latest Los Angeles day: yesterday, or today for a project created today. `0` when the keyword was tracked but no rank was found for the ASIN, including days without a successful scrape. `null` when no rank is known: the project has no primary ASIN, the keyword was not tracked that day, or a newly added keyword is still being checked."
          },
          "sponsored_rank": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Sponsored position of the project's primary ASIN for the keyword on the latest Los Angeles day: yesterday, or today for a project created today. `0` when the keyword was tracked but no sponsored rank was found for the ASIN, including days without a successful scrape. `null` when no rank is known: the project has no primary ASIN, the keyword was not tracked that day, or a newly added keyword is still being checked. While a keyword is still being checked, both `organic_rank` and `sponsored_rank` are `null`."
          },
          "asins_in_top_10": {
            "type": "integer"
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            },
            "description": "The keyword attachment's item labels. In CSV this column holds the label names joined with \", \", or is empty when the keyword has none."
          }
        },
        "description": "One record of a `project_keywords.1` file, in JSON and CSV field order. After the three project fields, the fields are those of `ProjectKeyword` from `GET /v0/projects/{projectId}/keywords`, with the same names and meanings, without `tracked_from`."
      },
      "ExportRunResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "$ref": "#/components/schemas/ExportRun"
          }
        }
      },
      "ExportRunsResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "exports",
              "page"
            ],
            "properties": {
              "exports": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ExportRun"
                }
              },
              "page": {
                "type": "object",
                "required": [
                  "limit",
                  "has_more",
                  "next_cursor"
                ],
                "properties": {
                  "limit": {
                    "type": "integer"
                  },
                  "has_more": {
                    "type": "boolean"
                  },
                  "next_cursor": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              }
            }
          }
        }
      },
      "ExportDownloadResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "url",
              "expires_at"
            ],
            "properties": {
              "url": {
                "type": "string",
                "format": "uri",
                "description": "Confidential temporary link to the gzip-compressed file in the export's JSON, JSONL or CSV format. Use the complete URL unchanged, without Datarova authentication headers."
              },
              "expires_at": {
                "type": "string",
                "format": "date-time",
                "description": "When this link stops working: at most five minutes after issue and never after the file expires. A new link does not extend the file."
              }
            }
          }
        }
      },
      "ErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "credit_cost": {
                "type": "integer",
                "minimum": 0,
                "description": "`insufficient_credits` only: the credits the call would have cost."
              },
              "credit_balance": {
                "type": "integer",
                "minimum": 0,
                "description": "`insufficient_credits` only: the credit balance when the call was refused."
              },
              "resets_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "`insufficient_credits` only: when the allowance cycle ends and a full credit allowance is granted again. Null during the renewal grace after a billing period ends."
              }
            },
            "additionalProperties": true
          }
        },
        "additionalProperties": false
      },
      "KeywordPeriodErrorResponse": {
        "type": "object",
        "description": "Error for a keyword-data request outside the plan history window on a plan with a history limit. Both bounds are period start dates for the requested marketplace and interval.",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "allowed_start_date",
              "latest_loaded_period"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "date_range_not_available_on_plan"
                ]
              },
              "message": {
                "type": "string"
              },
              "allowed_start_date": {
                "type": "string",
                "format": "date",
                "description": "Start date of the first period in the plan history window. Matches `data.plan_history_window.start_period` on success."
              },
              "latest_loaded_period": {
                "type": "string",
                "format": "date",
                "description": "Start date of the latest loaded period. Matches `data.plan_history_window.latest_loaded_period` on success."
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "CreateProjectConflictResponse": {
        "oneOf": [
          {
            "type": "object",
            "required": [
              "error"
            ],
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message",
                  "project_id"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "enum": [
                      "project_already_exists"
                    ]
                  },
                  "message": {
                    "type": "string"
                  },
                  "project_id": {
                    "type": "integer"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          },
          {
            "type": "object",
            "required": [
              "error"
            ],
            "properties": {
              "error": {
                "type": "object",
                "required": [
                  "code",
                  "message"
                ],
                "properties": {
                  "code": {
                    "type": "string",
                    "enum": [
                      "project_settings_conflict",
                      "project_group_ambiguous"
                    ]
                  },
                  "message": {
                    "type": "string"
                  }
                },
                "additionalProperties": false
              }
            },
            "additionalProperties": false
          }
        ]
      },
      "RateLimitedErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "retry_after"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "rate_limit_exceeded"
                ]
              },
              "message": {
                "type": "string"
              },
              "retry_after": {
                "type": "integer",
                "minimum": 0
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "LiveSearchConcurrencyLimitedErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "retry_after",
              "retryable"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "concurrency_limit_exceeded"
                ]
              },
              "message": {
                "type": "string"
              },
              "retry_after": {
                "type": "integer",
                "minimum": 0,
                "description": "Seconds to wait before retrying: always 1."
              },
              "retryable": {
                "type": "boolean",
                "description": "Always `true`: the search can succeed once one in progress finishes."
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "Label": {
        "type": "object",
        "required": [
          "label_id",
          "label_name",
          "color"
        ],
        "properties": {
          "label_name": {
            "type": "string"
          },
          "color": {
            "type": "string"
          },
          "label_id": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          }
        },
        "additionalProperties": false,
        "description": "A label assigned in this result. The default app color is returned as `gray`."
      },
      "Page": {
        "type": "object",
        "required": [
          "limit",
          "next_cursor",
          "has_more"
        ],
        "properties": {
          "limit": {
            "type": "integer",
            "description": "Page size used for this call."
          },
          "next_cursor": {
            "type": [
              "string",
              "null"
            ],
            "description": "Opaque cursor for the next page, or null on the last page. Pass it unchanged with the same filters and limit."
          },
          "has_more": {
            "type": "boolean",
            "description": "Whether another page exists. When true, this page is a partial result."
          }
        },
        "additionalProperties": false
      },
      "CreateProjectRequest": {
        "type": "object",
        "required": [
          "project_name",
          "marketplace"
        ],
        "properties": {
          "project_name": {
            "type": "string",
            "minLength": 1,
            "description": "Display name. Outer ASCII whitespace is removed; casing and internal whitespace are preserved."
          },
          "marketplace": {
            "type": "string",
            "description": "Marketplace code. Input is trimmed and uppercased before validation."
          },
          "should_track_variations": {
            "type": "boolean",
            "description": "Optional variation tracking setting. Omission defaults to `true` for a new group and inherits the stored setting when joining an existing group. An explicit value must match an existing group's setting."
          },
          "label_ids": {
            "type": "array",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "description": "Optional complete project-label selection for every marketplace in the group. Existing account-owned project-label IDs only. Duplicates are ignored. Empty clears; omission inherits without rewriting siblings. Null and non-integer IDs are invalid. Catalog pagination size is not an assignment limit."
          }
        },
        "additionalProperties": false
      },
      "ProjectSummary": {
        "type": "object",
        "required": [
          "project_id",
          "project_name",
          "created_at",
          "marketplace",
          "should_track_variations",
          "keywords_count",
          "asins_count",
          "labels"
        ],
        "properties": {
          "project_id": {
            "type": "integer"
          },
          "project_name": {
            "type": "string"
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Creation date, or null when no creation date is stored."
          },
          "marketplace": {
            "type": "string"
          },
          "should_track_variations": {
            "type": "boolean",
            "description": "Whether rank metrics also count tracked variations of each ASIN. Shared by every marketplace project in the group."
          },
          "keywords_count": {
            "type": "integer",
            "description": "Keywords attached to this marketplace project."
          },
          "asins_count": {
            "type": "integer",
            "description": "ASINs attached to this marketplace project."
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            }
          }
        },
        "additionalProperties": false
      },
      "LinkedProjectSummary": {
        "type": "object",
        "required": [
          "project_id",
          "marketplace",
          "created_at",
          "keywords_count",
          "asins_count"
        ],
        "properties": {
          "project_id": {
            "type": "integer",
            "description": "Marketplace project ID used by every project read."
          },
          "marketplace": {
            "type": [
              "string",
              "null"
            ]
          },
          "created_at": {
            "type": [
              "string",
              "null"
            ],
            "description": "Creation date when stored."
          },
          "keywords_count": {
            "type": "integer",
            "description": "Keywords attached to this marketplace project."
          },
          "asins_count": {
            "type": "integer",
            "description": "ASINs attached to this marketplace project."
          }
        },
        "additionalProperties": false
      },
      "ProjectGroupSummary": {
        "type": "object",
        "required": [
          "project_name",
          "should_track_variations",
          "keywords_count",
          "asins_count",
          "labels",
          "marketplaces"
        ],
        "properties": {
          "project_name": {
            "type": "string"
          },
          "should_track_variations": {
            "type": "boolean",
            "description": "Whether rank metrics also count tracked variations of each ASIN. Shared by every marketplace project in the group."
          },
          "keywords_count": {
            "type": "integer",
            "description": "Keyword attachments summed across the group's marketplace projects. This differs from the distinct keyword consumption reported by usage."
          },
          "asins_count": {
            "type": "integer",
            "description": "ASIN attachments summed across the group's marketplace projects. This differs from the distinct ASIN consumption reported by usage."
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            }
          },
          "marketplaces": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LinkedProjectSummary"
            },
            "description": "One marketplace project per marketplace in the group."
          }
        },
        "additionalProperties": false,
        "description": "A project group: one set of products and keywords tracked in one or more marketplaces. Project reads take a `marketplaces[].project_id`, not the group."
      },
      "ProjectAsin": {
        "type": "object",
        "required": [
          "asin",
          "title",
          "brand",
          "image_url",
          "price",
          "reviews",
          "rating",
          "primary_asin",
          "keywords_in_top_10",
          "choice_badges",
          "visibility",
          "latest_bsr",
          "top_level_category",
          "labels"
        ],
        "properties": {
          "asin": {
            "type": "string"
          },
          "title": {
            "type": [
              "string",
              "null"
            ],
            "description": "Stored catalog title, or null when unavailable."
          },
          "brand": {
            "type": [
              "string",
              "null"
            ],
            "description": "Stored catalog brand, or null when unavailable."
          },
          "image_url": {
            "type": [
              "string",
              "null"
            ],
            "description": "Stored catalog image URL, or null when unavailable."
          },
          "price": {
            "type": [
              "number",
              "null"
            ],
            "description": "Stored price, or null when unavailable. No currency is returned."
          },
          "reviews": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Highest stored review count among this ASIN and, when the group tracks variations, its tracked variations. Null when none is stored."
          },
          "rating": {
            "type": [
              "number",
              "null"
            ],
            "description": "Highest stored star rating among the same ASINs, chosen independently of `reviews`. Null when none is stored."
          },
          "primary_asin": {
            "type": "boolean",
            "description": "Whether this is the project's primary ASIN, whose ranks appear in project keyword results."
          },
          "keywords_in_top_10": {
            "type": "integer",
            "description": "Tracked project keywords for which this ASIN, or one of its tracked variations, has a latest organic rank from 1 to 10."
          },
          "choice_badges": {
            "type": "integer",
            "description": "Tracked project keywords for which this ASIN, or one of its tracked variations, has an Amazon’s Choice badge in the latest ranks."
          },
          "visibility": {
            "type": [
              "number",
              "null"
            ],
            "description": "Stored visibility value for the project's primary ASIN. Null for other ASINs and when unavailable. Its scale is not documented, so report it as given."
          },
          "latest_bsr": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Latest stored Best Sellers Rank of this ASIN in `top_level_category`, or null when unavailable."
          },
          "top_level_category": {
            "type": [
              "string",
              "null"
            ],
            "description": "Category of `latest_bsr`, or null when unavailable."
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            },
            "description": "Item labels assigned to this ASIN in this marketplace project."
          }
        },
        "additionalProperties": false,
        "description": "An attached product with stored Datarova values. They are not live Amazon observations and do not share a common as-of time."
      },
      "ProjectKeyword": {
        "type": "object",
        "required": [
          "keyword",
          "tracked_from",
          "keyword_clicks_l4w",
          "keyword_sales_l4w",
          "keyword_conversion_l4w",
          "top_asin",
          "top_asin_sales_l4w",
          "top_asin_clicks_l4w",
          "top_asin_conversion_l4w",
          "trend_l4w",
          "sales_distribution",
          "dstr",
          "organic_rank",
          "sponsored_rank",
          "asins_in_top_10",
          "labels"
        ],
        "properties": {
          "keyword": {
            "type": "string"
          },
          "tracked_from": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Date the keyword was attached to the project, or null for older attachments without one."
          },
          "keyword_clicks_l4w": {
            "type": "number",
            "description": "Amazon search clicks for the keyword over the window named by `metrics_window`: the latest four loaded weeks, or the latest loaded month."
          },
          "keyword_sales_l4w": {
            "type": "number",
            "description": "Estimated Amazon search sales for the keyword over the same window."
          },
          "keyword_conversion_l4w": {
            "type": "number",
            "description": "`keyword_sales_l4w` / `keyword_clicks_l4w` as a percentage, rounded to one decimal place. `0` without clicks."
          },
          "top_asin": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ASIN with the most accumulated sales across the keyword's top-ASIN market slots over the window. It is not the organic rank-one product. Empty or null when unknown."
          },
          "top_asin_sales_l4w": {
            "type": "number",
            "description": "Sales of `top_asin` for the keyword over the window."
          },
          "top_asin_clicks_l4w": {
            "type": "number",
            "description": "Clicks of `top_asin` for the keyword over the window."
          },
          "top_asin_conversion_l4w": {
            "type": "number",
            "description": "Conversion of `top_asin` for the keyword as a percentage, rounded to one decimal place."
          },
          "trend_l4w": {
            "type": "number",
            "description": "Percentage change in `keyword_sales_l4w` compared with the period of the same length before the window (the previous four weeks, or the previous month), rounded to one decimal place. When the keyword had no sales in that period, the change is measured against 1 sale, so it equals `keyword_sales_l4w` × 100."
          },
          "sales_distribution": {
            "type": "number",
            "description": "The keyword's share of the combined `keyword_sales_l4w` of every keyword in this marketplace project, as a percentage rounded to one decimal place. It is calculated over the whole project, so `limit` and the page do not change it. `0` when the project's keywords had no sales in the period."
          },
          "dstr": {
            "type": "number",
            "description": "Daily Sales To Rank (DSTR): the estimated number of daily sales an ASIN needs from searches for this keyword to rank in the top 3. It is a whole number, the larger of two estimates over the latest four loaded weeks, whatever `metrics_window` is: the keyword's sales over those weeks / 112, rounded to the nearest whole number, and the top-selling ASIN's sales for the keyword / 28 × 1.1, rounded up. `0` when the keyword has no sales data for the period."
          },
          "organic_rank": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Organic search position of the project's primary ASIN for the keyword on the latest tracked day. `0` when the keyword was tracked but no rank was found for the ASIN, including days without a successful scrape. `null` when no rank is known: the project has no primary ASIN, the keyword was not tracked that day, or a newly added keyword is still being checked."
          },
          "sponsored_rank": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Sponsored position of the project's primary ASIN for the keyword on the latest tracked day. `0` when the keyword was tracked but no sponsored rank was found for the ASIN, including days without a successful scrape. `null` when no rank is known: the project has no primary ASIN, the keyword was not tracked that day, or a newly added keyword is still being checked. While a keyword is still being checked, both `organic_rank` and `sponsored_rank` are `null`."
          },
          "asins_in_top_10": {
            "type": "integer",
            "description": "Organic top-10 rank rows on the latest tracked day across the project's ASINs and their tracked variations, capped at 10. Each variation row counts, so this is not a count of distinct parent ASINs."
          },
          "labels": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/Label"
            },
            "description": "Item labels assigned to this keyword in this marketplace project."
          }
        },
        "additionalProperties": false,
        "description": "A tracked project keyword. Market metrics cover the window named by `metrics_window`; ranks cover the latest tracked day, so their time bases differ."
      },
      "KeywordPositionRecord": {
        "type": "object",
        "required": [
          "asin",
          "clicks",
          "sales",
          "conversion_rate"
        ],
        "properties": {
          "asin": {
            "type": [
              "string",
              "null"
            ]
          },
          "clicks": {
            "type": [
              "number",
              "null"
            ]
          },
          "sales": {
            "type": [
              "number",
              "null"
            ]
          },
          "conversion_rate": {
            "type": [
              "number",
              "null"
            ]
          }
        },
        "additionalProperties": false,
        "description": "One market-period ASIN slot. Fields are null when the slot is empty; stored numeric values may be normalized to 0."
      },
      "KeywordIntervalRecord": {
        "type": "object",
        "required": [
          "date",
          "clicks",
          "sales",
          "conversion_rate"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "description": "Start date of the stored weekly or monthly period."
          },
          "clicks": {
            "type": "number",
            "description": "Amazon search clicks for the keyword in the period."
          },
          "sales": {
            "type": "number",
            "description": "Estimated Amazon search sales for the keyword in the period."
          },
          "conversion_rate": {
            "type": "number",
            "description": "Sales divided by clicks as a percentage."
          },
          "asin_1": {
            "$ref": "#/components/schemas/KeywordPositionRecord",
            "description": "First top-ASIN market slot for the period. Present only when ASIN details are requested. Not an organic position."
          },
          "asin_2": {
            "$ref": "#/components/schemas/KeywordPositionRecord",
            "description": "Second top-ASIN market slot. Present only when ASIN details are requested."
          },
          "asin_3": {
            "$ref": "#/components/schemas/KeywordPositionRecord",
            "description": "Third top-ASIN market slot. Present only when ASIN details are requested."
          }
        },
        "additionalProperties": false
      },
      "KeywordIntervalItem": {
        "type": "object",
        "required": [
          "keyword",
          "records"
        ],
        "properties": {
          "keyword": {
            "type": "string"
          },
          "records": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/KeywordIntervalRecord"
            },
            "description": "One record per stored period. Empty when nothing is stored for the keyword."
          }
        },
        "additionalProperties": false
      },
      "KeywordsResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "marketplace",
              "start_date",
              "end_date",
              "interval",
              "plan_history_window",
              "requested_keywords",
              "keywords"
            ],
            "properties": {
              "marketplace": {
                "type": "string"
              },
              "start_date": {
                "type": "string",
                "format": "date"
              },
              "end_date": {
                "type": "string",
                "format": "date"
              },
              "interval": {
                "type": "string",
                "enum": [
                  "weekly",
                  "monthly"
                ]
              },
              "plan_history_window": {
                "type": "object",
                "description": "The caller's plan history window for the requested marketplace and interval. Both bounds are period start dates. Plans with a history limit must stay between them; on other plans, periods outside them are missing from `records`.",
                "required": [
                  "start_period",
                  "latest_loaded_period"
                ],
                "properties": {
                  "start_period": {
                    "type": "string",
                    "format": "date",
                    "description": "Start date of the first readable period: the oldest stored period, or later when the plan limits history. Same value as `allowed_start_date` in period errors."
                  },
                  "latest_loaded_period": {
                    "type": "string",
                    "format": "date",
                    "description": "Start date of the newest period Datarova has loaded for this marketplace and interval."
                  }
                },
                "additionalProperties": false
              },
              "requested_keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "keywords": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/KeywordIntervalItem"
                }
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "DailyRank": {
        "type": "object",
        "required": [
          "date",
          "organic_rank",
          "sponsored_rank",
          "choice_badge",
          "ranked_asin"
        ],
        "properties": {
          "date": {
            "type": "string",
            "format": "date",
            "description": "Los Angeles calendar day."
          },
          "organic_rank": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Organic search position that day, or null when no positive rank was stored."
          },
          "sponsored_rank": {
            "type": [
              "integer",
              "null"
            ],
            "description": "Sponsored position that day, or null when no positive rank was stored."
          },
          "choice_badge": {
            "type": [
              "boolean",
              "null"
            ],
            "description": "Whether `ranked_asin` had an Amazon’s Choice badge that day, or null when unknown."
          },
          "ranked_asin": {
            "type": [
              "string",
              "null"
            ],
            "description": "The ASIN that ranked: the requested ASIN or, when the group tracks variations, one of its variations. Null when unknown."
          }
        },
        "additionalProperties": false
      },
      "RankHistoryItem": {
        "type": "object",
        "required": [
          "keyword",
          "daily_ranks"
        ],
        "properties": {
          "keyword": {
            "type": "string"
          },
          "daily_ranks": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/DailyRank"
            },
            "description": "One entry per day with a stored rank row. Missing days have no entry: never fill them with zero or treat them as unranked."
          }
        },
        "additionalProperties": false,
        "description": "Daily ranks of the requested ASIN for one project keyword."
      },
      "ProjectNoteCreate": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "title",
          "date_from"
        ],
        "properties": {
          "asin": {
            "type": "string",
            "description": "Exact attached ASIN, trimmed and uppercased. Only omission uses the current primary ASIN. No parent or sibling alias resolution. Empty, null, invalid or unattached values are rejected."
          },
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Required for creation. Trimmed outer whitespace; 1 to 200 Unicode code points after trimming. Whitespace-only text and null are invalid. NUL characters, U+0000, are rejected with 400 invalid_title."
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 10000,
            "description": "Plain text, preserving line breaks. At most 10000 Unicode code points. Empty string or null clears it; omission preserves it on PATCH and creates no description on POST. NUL characters, U+0000, are rejected with 400 invalid_description."
          },
          "color": {
            "type": "string",
            "enum": [
              "green",
              "yellow",
              "orange",
              "red",
              "purple",
              "lilac"
            ],
            "description": "Omitted on creation defaults to green. Omitted on PATCH is unchanged; null is invalid."
          },
          "date_from": {
            "type": "string",
            "format": "date",
            "description": "Valid YYYY-MM-DD calendar start date, required on creation. Future dates are allowed. Cannot be cleared."
          },
          "date_to": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Inclusive end date, on or after the resulting start date. Omission on creation, null, or an equal end date means a single day and returns null. Omission on PATCH preserves the current end date."
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Current keyword attachments in this marketplace project. Outer whitespace is trimmed, case is lowered, duplicates and blank entries are removed. Omitted on creation or [] creates an ASIN-level annotation. On PATCH a list replaces the selection, [] clears it, omission preserves even detached historical keywords. null is invalid. NUL characters, U+0000, are rejected with 400 invalid_keywords."
          }
        }
      },
      "ProjectNotePatch": {
        "type": "object",
        "additionalProperties": false,
        "minProperties": 1,
        "properties": {
          "title": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "Required for creation. Trimmed outer whitespace; 1 to 200 Unicode code points after trimming. Whitespace-only text and null are invalid. NUL characters, U+0000, are rejected with 400 invalid_title."
          },
          "description": {
            "type": [
              "string",
              "null"
            ],
            "maxLength": 10000,
            "description": "Plain text, preserving line breaks. At most 10000 Unicode code points. Empty string or null clears it; omission preserves it on PATCH and creates no description on POST. NUL characters, U+0000, are rejected with 400 invalid_description."
          },
          "color": {
            "type": "string",
            "enum": [
              "green",
              "yellow",
              "orange",
              "red",
              "purple",
              "lilac"
            ],
            "description": "Omitted on creation defaults to green. Omitted on PATCH is unchanged; null is invalid."
          },
          "date_from": {
            "type": "string",
            "format": "date",
            "description": "Valid YYYY-MM-DD calendar start date, required on creation. Future dates are allowed. Cannot be cleared."
          },
          "date_to": {
            "type": [
              "string",
              "null"
            ],
            "format": "date",
            "description": "Inclusive end date, on or after the resulting start date. Omission on creation, null, or an equal end date means a single day and returns null. Omission on PATCH preserves the current end date."
          },
          "keywords": {
            "type": "array",
            "items": {
              "type": "string"
            },
            "description": "Current keyword attachments in this marketplace project. Outer whitespace is trimmed, case is lowered, duplicates and blank entries are removed. Omitted on creation or [] creates an ASIN-level annotation. On PATCH a list replaces the selection, [] clears it, omission preserves even detached historical keywords. null is invalid. NUL characters, U+0000, are rejected with 400 invalid_keywords."
          }
        }
      },
      "UsageEndpointCounts": {
        "type": "object",
        "properties": {
          "project_create": {
            "type": "integer",
            "minimum": 0
          },
          "project_delete": {
            "type": "integer",
            "minimum": 0
          },
          "project_label_update": {
            "type": "integer",
            "minimum": 0
          },
          "item_label_update": {
            "type": "integer",
            "minimum": 0
          },
          "keywords": {
            "type": "integer"
          },
          "projects": {
            "type": "integer"
          },
          "project_detail": {
            "type": "integer"
          },
          "project_asins": {
            "type": "integer"
          },
          "project_asins_update": {
            "type": "integer",
            "minimum": 0
          },
          "project_asins_add": {
            "type": "integer",
            "description": "Successful `POST /v0/projects/{projectId}/asins` requests. Missing counters in older usage rows map to zero."
          },
          "project_asins_remove": {
            "type": "integer",
            "description": "Successful `DELETE /v0/projects/{projectId}/asins` requests. Missing counters in older usage rows map to zero."
          },
          "project_keywords": {
            "type": "integer"
          },
          "project_keywords_update": {
            "type": "integer",
            "minimum": 0
          },
          "project_keywords_add": {
            "type": "integer",
            "description": "Successful `POST /v0/projects/{projectId}/keywords` requests."
          },
          "project_keywords_remove": {
            "type": "integer",
            "description": "Successful `DELETE /v0/projects/{projectId}/keywords` requests."
          },
          "project_ranks_by_asin": {
            "type": "integer"
          },
          "project_labels": {
            "type": "integer",
            "minimum": 0
          },
          "project_label_delete": {
            "type": "integer",
            "minimum": 0
          },
          "item_label_delete": {
            "type": "integer",
            "minimum": 0
          },
          "project_label_create": {
            "type": "integer",
            "minimum": 0
          },
          "item_labels": {
            "type": "integer",
            "minimum": 0
          },
          "item_label_create": {
            "type": "integer",
            "minimum": 0
          },
          "project_update": {
            "type": "integer",
            "minimum": 0
          },
          "export_create": {
            "type": "integer",
            "minimum": 0
          },
          "exports": {
            "type": "integer",
            "minimum": 0
          },
          "export_detail": {
            "type": "integer",
            "minimum": 0
          },
          "export_download": {
            "type": "integer",
            "minimum": 0
          },
          "project_notes": {
            "type": "integer",
            "minimum": 0
          },
          "project_note_detail": {
            "type": "integer",
            "minimum": 0
          },
          "project_note_create": {
            "type": "integer",
            "minimum": 0
          },
          "project_note_delete": {
            "type": "integer",
            "description": "Successful project note deletion requests, including absent-note retries."
          },
          "project_note_update": {
            "type": "integer",
            "minimum": 0
          },
          "live_search": {
            "type": "integer",
            "minimum": 0
          },
          "asin_family": {
            "type": "integer",
            "minimum": 0,
            "description": "Successful MCP `get_asin_family` calls. The tool has no User API endpoint but is charged from the same credit balance."
          }
        },
        "required": [
          "keywords",
          "projects",
          "project_detail",
          "project_asins",
          "project_asins_add",
          "project_asins_update",
          "project_asins_remove",
          "project_keywords",
          "project_keywords_add",
          "project_keywords_update",
          "project_keywords_remove",
          "project_ranks_by_asin",
          "project_create",
          "project_delete",
          "project_label_update",
          "item_label_update",
          "project_labels",
          "project_label_create",
          "project_label_delete",
          "item_label_delete",
          "item_labels",
          "item_label_create",
          "project_update",
          "project_notes",
          "project_note_detail",
          "project_note_create",
          "project_note_delete",
          "project_note_update",
          "live_search",
          "asin_family",
          "export_create",
          "exports",
          "export_detail",
          "export_download"
        ],
        "additionalProperties": false
      },
      "ResourceUsageDimension": {
        "type": "object",
        "required": [
          "current",
          "limit"
        ],
        "properties": {
          "current": {
            "type": "integer",
            "minimum": 0
          },
          "limit": {
            "type": "integer",
            "minimum": 0
          }
        },
        "additionalProperties": false
      },
      "ResourceUsage": {
        "type": "object",
        "required": [
          "projects",
          "keywords",
          "asins"
        ],
        "properties": {
          "projects": {
            "$ref": "#/components/schemas/ResourceUsageDimension",
            "description": "Project groups compared with the plan's project limit."
          },
          "keywords": {
            "$ref": "#/components/schemas/ResourceUsageDimension",
            "description": "Distinct normalized keyword and marketplace pairs compared with the plan's keyword limit. Not the sum of attachments."
          },
          "asins": {
            "$ref": "#/components/schemas/ResourceUsageDimension",
            "description": "Distinct ASIN and marketplace pairs compared with the plan's ASIN limit. Not the sum of attachments."
          }
        },
        "additionalProperties": false,
        "description": "Current plan consumption, calculated when the request is handled."
      },
      "UsageResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "period_start",
              "period_end",
              "request_limit",
              "requests_remaining",
              "request_count",
              "error_count",
              "endpoint_counts",
              "resource_usage",
              "updated_at",
              "export_record_allowance",
              "export_records_used"
            ],
            "properties": {
              "period_start": {
                "type": "string",
                "format": "date",
                "description": "First day of the usage period, as a UTC date."
              },
              "period_end": {
                "type": "string",
                "format": "date",
                "description": "Last day of the usage period, as a UTC date. The credit allowance resets after it."
              },
              "credits": {
                "type": "object",
                "additionalProperties": false,
                "description": "Your credits for this allowance cycle, shared by the app, the User API and MCP. Present when your account is charged in credits. The balance resets to the full allowance when the cycle ends, on the UTC date in `period_end`; `402 insufficient_credits` gives the exact time in `resets_at`.",
                "required": [
                  "allowance",
                  "used",
                  "held",
                  "balance",
                  "used_by_action"
                ],
                "properties": {
                  "allowance": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Credits granted for this cycle: your plan's credit allowance, raised by any mid-cycle upgrade or adjustment."
                  },
                  "used": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Credits consumed this cycle by successful actions in the app, the User API and MCP. Held credits are not included."
                  },
                  "held": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Credits reserved for exports and reports still running. They are consumed or released when the work finishes."
                  },
                  "balance": {
                    "type": "integer",
                    "minimum": 0,
                    "description": "Credits left to spend: allowance less used and held, never below 0."
                  },
                  "used_by_action": {
                    "type": "array",
                    "description": "Credits used this cycle per action, ordered by group then by credits (most first). Actions with no credits used are omitted.",
                    "items": {
                      "type": "object",
                      "additionalProperties": false,
                      "required": [
                        "action",
                        "name",
                        "group",
                        "credits"
                      ],
                      "properties": {
                        "action": {
                          "type": "string",
                          "description": "The action, for example `live_search`, `keywords`, `keywords_for_keyword` (Keyword Spy searches and reports, in the app or the API) or `keywords_for_asin` (ASIN Insights searches and reports). `research_combined` holds Keyword Spy and ASIN Insights credits recorded before they were reported separately."
                        },
                        "name": {
                          "type": "string",
                          "description": "A readable name for the action, for example `ASIN Insights (keywords for an ASIN)`."
                        },
                        "group": {
                          "type": "string",
                          "enum": [
                            "reports",
                            "exports",
                            "live_searches",
                            "keyword_data",
                            "standard_requests"
                          ],
                          "description": "The billing page group the action's credits are shown under."
                        },
                        "credits": {
                          "type": "integer",
                          "minimum": 1,
                          "description": "Credits the action used this cycle."
                        }
                      }
                    }
                  }
                }
              },
              "request_limit": {
                "type": [
                  "integer",
                  "null"
                ],
                "deprecated": true,
                "description": "Deprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits."
              },
              "requests_remaining": {
                "type": [
                  "integer",
                  "null"
                ],
                "deprecated": true,
                "description": "Deprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits."
              },
              "request_count": {
                "type": "integer",
                "deprecated": true,
                "description": "Deprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits."
              },
              "error_count": {
                "type": "integer",
                "deprecated": true,
                "description": "Deprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits."
              },
              "export_record_allowance": {
                "type": [
                  "integer",
                  "null"
                ],
                "minimum": 0,
                "deprecated": true,
                "description": "Deprecated: blank (null) when the account is charged in credits; removed one month after credits go live. Use credits."
              },
              "export_records_used": {
                "type": "integer",
                "minimum": 0,
                "deprecated": true,
                "description": "Deprecated: blank (0) when the account is charged in credits; removed one month after credits go live. Use credits."
              },
              "endpoint_counts": {
                "$ref": "#/components/schemas/UsageEndpointCounts",
                "deprecated": true,
                "description": "Deprecated: blank (every count 0) when the account is charged in credits; removed one month after credits go live. Use credits."
              },
              "resource_usage": {
                "$ref": "#/components/schemas/ResourceUsage"
              },
              "updated_at": {
                "type": [
                  "string",
                  "null"
                ],
                "format": "date-time",
                "description": "When this period's usage record was last updated. This timestamp does not apply to resource_usage, which is calculated when the request is handled."
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "ProjectsResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "projects",
              "page"
            ],
            "properties": {
              "projects": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProjectGroupSummary"
                }
              },
              "page": {
                "$ref": "#/components/schemas/Page"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "ProjectResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "project"
            ],
            "properties": {
              "project": {
                "$ref": "#/components/schemas/ProjectSummary"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "ProjectAsinsResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "asins",
              "page"
            ],
            "properties": {
              "asins": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProjectAsin"
                }
              },
              "page": {
                "$ref": "#/components/schemas/Page"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "ProjectAsinsAddRequest": {
        "type": "object",
        "required": [
          "asins"
        ],
        "properties": {
          "label_ids": {
            "type": "array",
            "description": "Optional shared account-owned item-label selection for new attachments only. Omit or send [] for unlabeled creation. Existing attachments retain their labels.",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          },
          "asins": {
            "type": "array",
            "minItems": 1,
            "maxItems": 25,
            "description": "ASIN strings. Values are trimmed, uppercased, and deduplicated in first-seen order. A non-string member rejects the request; a malformed normalized ASIN is returned per item in `invalid_asins`. The maximum of 25 submitted items applies before deduplication.",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "ProjectAsinsRemoveRequest": {
        "type": "object",
        "required": [
          "asins"
        ],
        "properties": {
          "asins": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "description": "ASIN or retained-parent alias strings. Values are trimmed, uppercased, and deduplicated in first-seen order. Every member must be a string.",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "ProjectAsinAddedResult": {
        "type": "object",
        "required": [
          "requested_asin",
          "added_asin",
          "is_primary"
        ],
        "properties": {
          "requested_asin": {
            "type": "string",
            "description": "Normalized first-seen request identity."
          },
          "added_asin": {
            "type": "string",
            "description": "The ASIN added to the project. This can differ from the requested ASIN when a parent ASIN resolves to a child ASIN."
          },
          "is_primary": {
            "type": "boolean",
            "description": "Whether the stored ASIN is primary. For a removed entry, this reports its primary state before removal."
          }
        },
        "additionalProperties": false
      },
      "ProjectAsinRemovedResult": {
        "type": "object",
        "required": [
          "requested_asin",
          "removed_asin",
          "is_primary"
        ],
        "properties": {
          "requested_asin": {
            "type": "string",
            "description": "Normalized first-seen request identity."
          },
          "removed_asin": {
            "type": "string",
            "description": "The ASIN removed from the project. This can differ from the requested ASIN when a parent ASIN identifies a child ASIN."
          },
          "is_primary": {
            "type": "boolean",
            "description": "Whether the removed ASIN was primary before removal."
          }
        },
        "additionalProperties": false
      },
      "ProjectAsinUnchangedResult": {
        "type": "object",
        "required": [
          "requested_asin",
          "unchanged_asin",
          "is_primary"
        ],
        "properties": {
          "requested_asin": {
            "type": "string",
            "description": "Normalized first-seen request identity."
          },
          "unchanged_asin": {
            "type": "string",
            "description": "The corresponding ASIN that was not changed by the request."
          },
          "is_primary": {
            "type": "boolean",
            "description": "Whether the unchanged ASIN is primary."
          }
        },
        "additionalProperties": false
      },
      "ProjectAsinInvalidResult": {
        "type": "object",
        "required": [
          "requested_asin",
          "reason"
        ],
        "properties": {
          "requested_asin": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "enum": [
              "invalid_asin",
              "asin_not_found",
              "variation_parent_not_allowed",
              "variation_parent_has_no_children"
            ]
          }
        },
        "additionalProperties": false
      },
      "ProjectAsinValidationUnavailableResult": {
        "type": "object",
        "required": [
          "requested_asin",
          "reason"
        ],
        "properties": {
          "requested_asin": {
            "type": "string"
          },
          "reason": {
            "type": "string",
            "enum": [
              "amazon_validation_unavailable"
            ]
          }
        },
        "additionalProperties": false
      },
      "ProjectAsinsAddResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "project_id",
              "added_asins",
              "unchanged_asins",
              "invalid_asins",
              "validation_unavailable_asins",
              "primary_asin"
            ],
            "properties": {
              "project_id": {
                "type": "integer"
              },
              "added_asins": {
                "type": "array",
                "description": "ASINs added by this request, preserving relative normalized request order.",
                "items": {
                  "$ref": "#/components/schemas/ProjectAsinAddedResult"
                }
              },
              "unchanged_asins": {
                "type": "array",
                "description": "ASINs or variation families already in the project, plus ASINs added by another request, preserving relative normalized request order.",
                "items": {
                  "$ref": "#/components/schemas/ProjectAsinUnchangedResult"
                }
              },
              "invalid_asins": {
                "type": "array",
                "description": "Malformed, not-found, or disallowed parent identities, preserving relative normalized request order.",
                "items": {
                  "$ref": "#/components/schemas/ProjectAsinInvalidResult"
                }
              },
              "validation_unavailable_asins": {
                "type": "array",
                "description": "Items Amazon could not validate because of a temporary dependency or credential failure. Retry these identities later.",
                "items": {
                  "$ref": "#/components/schemas/ProjectAsinValidationUnavailableResult"
                }
              },
              "primary_asin": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Primary ASIN after the operation."
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "ProjectAsinsRemoveResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "project_id",
              "removed_asins",
              "unchanged_asins",
              "primary_asin"
            ],
            "properties": {
              "project_id": {
                "type": "integer"
              },
              "removed_asins": {
                "type": "array",
                "description": "Distinct ASINs removed by this request, preserving relative normalized request order.",
                "items": {
                  "$ref": "#/components/schemas/ProjectAsinRemovedResult"
                }
              },
              "unchanged_asins": {
                "type": "array",
                "description": "Missing ASINs and repeated or equivalent identifiers that did not remove another ASIN, preserving relative normalized request order.",
                "items": {
                  "$ref": "#/components/schemas/ProjectAsinUnchangedResult"
                }
              },
              "primary_asin": {
                "type": [
                  "string",
                  "null"
                ],
                "description": "Primary ASIN after removal; null when the project contains no ASINs."
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "TrackedAsinLimitExceededResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "current",
              "limit",
              "requested_new_tracked_asins"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "tracked_asin_limit_exceeded"
                ]
              },
              "message": {
                "type": "string"
              },
              "current": {
                "type": "integer",
                "minimum": 0
              },
              "limit": {
                "type": "integer",
                "minimum": 0
              },
              "requested_new_tracked_asins": {
                "type": "integer",
                "minimum": 1
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "ProjectKeywordsAddRequest": {
        "type": "object",
        "required": [
          "keywords"
        ],
        "properties": {
          "label_ids": {
            "type": "array",
            "description": "Optional shared selection of account-owned item-label IDs for new attachments only. Omitted or [] creates unlabeled attachments. IDs are deduplicated; order is irrelevant. Null, foreign, deleted, or project-label-only IDs are invalid, even when all keywords already exist.",
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            },
            "example": [
              12,
              34
            ]
          },
          "keywords": {
            "type": "array",
            "minItems": 1,
            "maxItems": 500,
            "description": "Keyword strings. Each value is trimmed and lowercased; normalized values must contain 1 to 255 characters and no NUL character. Normalized duplicates are processed once in first-seen order. The maximum of 500 submitted items applies before deduplication.",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "ProjectKeywordsAddResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "project_id",
              "added_keywords",
              "unchanged_keywords"
            ],
            "properties": {
              "project_id": {
                "type": "integer"
              },
              "added_keywords": {
                "type": "array",
                "items": {
                  "type": "string"
                }
              },
              "unchanged_keywords": {
                "type": "array",
                "description": "Normalized keywords already in the project, duplicated in the request, or added by another request.",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "ProjectKeywordsRemoveRequest": {
        "type": "object",
        "required": [
          "keywords"
        ],
        "properties": {
          "keywords": {
            "type": "array",
            "minItems": 1,
            "maxItems": 100,
            "description": "Keyword strings. Each value is trimmed and lowercased; normalized values must contain 1 to 255 characters and no NUL character. Normalized duplicates are processed once in first-seen order.",
            "items": {
              "type": "string"
            }
          }
        },
        "additionalProperties": false
      },
      "ProjectKeywordsRemoveResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "project_id",
              "removed_keywords",
              "unchanged_keywords"
            ],
            "properties": {
              "project_id": {
                "type": "integer"
              },
              "removed_keywords": {
                "type": "array",
                "description": "Normalized keywords removed from the project by this request.",
                "items": {
                  "type": "string"
                }
              },
              "unchanged_keywords": {
                "type": "array",
                "description": "Normalized keywords that were missing or concurrently removed and therefore remained unchanged.",
                "items": {
                  "type": "string"
                }
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "AccountKeywordLimitExceededResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "current",
              "limit",
              "requested_new_tracked_keywords"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "account_keyword_limit_exceeded"
                ]
              },
              "message": {
                "type": "string"
              },
              "current": {
                "type": "integer",
                "minimum": 0
              },
              "limit": {
                "type": "integer",
                "minimum": 0
              },
              "requested_new_tracked_keywords": {
                "type": "integer",
                "minimum": 1
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "ProjectKeywordLimitExceededResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "current",
              "limit",
              "requested_new_keywords"
            ],
            "properties": {
              "code": {
                "type": "string",
                "enum": [
                  "project_keyword_limit_exceeded"
                ]
              },
              "message": {
                "type": "string"
              },
              "current": {
                "type": "integer",
                "minimum": 0
              },
              "limit": {
                "type": "integer",
                "minimum": 0
              },
              "requested_new_keywords": {
                "type": "integer",
                "minimum": 1
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "ProjectKeywordsResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "keywords",
              "page",
              "metrics_window"
            ],
            "properties": {
              "keywords": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/ProjectKeyword"
                }
              },
              "page": {
                "$ref": "#/components/schemas/Page"
              },
              "metrics_window": {
                "$ref": "#/components/schemas/MetricsWindow"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "ProjectRanksByAsinResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "project_id",
              "asin",
              "start_date",
              "end_date",
              "ranks",
              "page"
            ],
            "properties": {
              "project_id": {
                "type": "integer"
              },
              "asin": {
                "type": "string"
              },
              "start_date": {
                "type": "string",
                "format": "date"
              },
              "end_date": {
                "type": "string",
                "format": "date"
              },
              "ranks": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/RankHistoryItem"
                }
              },
              "page": {
                "$ref": "#/components/schemas/Page"
              }
            },
            "additionalProperties": false
          }
        },
        "additionalProperties": false
      },
      "UpdateLabelRequest": {
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "label_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 25,
            "description": "The API trims leading and trailing whitespace. The result must contain 1 to 25 characters and must not contain NUL characters. Capitalization and spaces within the name are preserved. Names are compared case-insensitively within your account's selected label catalog."
          },
          "color": {
            "type": "string",
            "enum": [
              "gray",
              "green",
              "yellow",
              "orange",
              "red",
              "purple",
              "lilac"
            ],
            "description": "Label color shown in the app. Omit to keep the current color."
          },
          "pin": {
            "type": "boolean",
            "description": "Whether the label is pinned in the app's label list. Pinning does not change the API's label-ID ordering. Omit to keep the current pinned status."
          }
        },
        "minProperties": 1
      },
      "CatalogLabel": {
        "type": "object",
        "description": "A reusable account label. Existing app-created labels may contain null fields or colors outside the values accepted for new writes. The default app color is returned as `gray`. Updating a label preserves fields you omit.",
        "required": [
          "label_id",
          "label_name",
          "color",
          "pin"
        ],
        "properties": {
          "label_id": {
            "type": "integer",
            "minimum": 1,
            "maximum": 2147483647
          },
          "label_name": {
            "type": [
              "string",
              "null"
            ]
          },
          "color": {
            "type": [
              "string",
              "null"
            ]
          },
          "pin": {
            "type": [
              "boolean",
              "null"
            ]
          }
        },
        "additionalProperties": false
      },
      "CreateLabelRequest": {
        "type": "object",
        "required": [
          "label_name"
        ],
        "additionalProperties": false,
        "properties": {
          "label_name": {
            "type": "string",
            "minLength": 1,
            "maxLength": 25,
            "description": "The API trims leading and trailing whitespace. The result must contain 1 to 25 characters and must not contain NUL characters. Capitalization and spaces within the name are preserved. Names are compared case-insensitively within your account's selected label catalog."
          },
          "color": {
            "type": "string",
            "enum": [
              "gray",
              "green",
              "yellow",
              "orange",
              "red",
              "purple",
              "lilac"
            ],
            "default": "gray",
            "description": "Label color shown in the app. Defaults to `gray`."
          },
          "pin": {
            "type": "boolean",
            "default": false,
            "description": "Whether the label is pinned in the app's label list. Pinning does not change the API's label-ID ordering. Defaults to `false`."
          }
        }
      },
      "LabelResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "$ref": "#/components/schemas/CatalogLabel"
          }
        }
      },
      "LabelsResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "labels",
              "page"
            ],
            "properties": {
              "labels": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/CatalogLabel"
                }
              },
              "page": {
                "$ref": "#/components/schemas/Page"
              }
            }
          }
        }
      },
      "RankingExportParameters": {
        "title": "ranks_by_asin.1 parameters",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "start_date",
          "end_date"
        ],
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "json",
              "jsonl",
              "csv"
            ],
            "description": "CSV prefixes an apostrophe to text starting with an ASCII control character or DEL, or with =, +, - or @ after optional whitespace, so spreadsheets treat those cells as text. This includes project names and keywords. Numeric columns and JSON/JSONL values are unchanged.",
            "default": "json"
          },
          "start_date": {
            "type": "string",
            "format": "date"
          },
          "end_date": {
            "type": "string",
            "format": "date",
            "description": "Inclusive Los Angeles ranking day, no later than today in America/Los_Angeles. Today's records are a snapshot taken when the file is generated. Future dates return `400 future_dates_not_allowed`."
          },
          "primary_asin_only": {
            "type": "boolean",
            "default": true
          },
          "project_ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          },
          "marketplaces": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "items": {
              "type": "string",
              "enum": [
                "US",
                "CA",
                "MX",
                "UK",
                "DE",
                "FR",
                "IT",
                "ES",
                "AU"
              ]
            }
          },
          "project_label_ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          },
          "asin_label_ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          },
          "keyword_label_ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          }
        },
        "description": "Daily keyword ranks for the selected ASINs over an inclusive date range. Every option, including the output format and the filter parameters, is a direct property of this object. Before file generation, the background worker estimates selected ASINs × selected keywords × inclusive days per marketplace project and sums those products. Estimates above 1,000,000 fail asynchronously; equality passes. Acceptance holds credits for the estimate. Historical tracking periods do not reduce the estimate."
      },
      "ProjectKeywordsExportParameters": {
        "title": "project_keywords.1 parameters",
        "type": "object",
        "additionalProperties": false,
        "properties": {
          "format": {
            "type": "string",
            "enum": [
              "json",
              "jsonl",
              "csv"
            ],
            "description": "CSV joins label names with \", \" and prefixes an apostrophe to text starting with an ASCII control character or DEL, or with =, +, - or @ after optional whitespace, so spreadsheets treat those cells as text. This includes project names, keywords and label names. Numeric columns and JSON/JSONL values are unchanged.",
            "default": "json"
          },
          "project_ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          },
          "marketplaces": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "items": {
              "type": "string",
              "enum": [
                "US",
                "CA",
                "MX",
                "UK",
                "DE",
                "FR",
                "IT",
                "ES",
                "AU"
              ]
            }
          },
          "project_label_ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          },
          "keyword_label_ids": {
            "type": "array",
            "minItems": 1,
            "maxItems": 1000,
            "items": {
              "type": "integer",
              "minimum": 1,
              "maximum": 2147483647
            }
          }
        },
        "description": "The current keyword metrics of every selected keyword attachment, one record each. Every parameter is optional; an empty object exports every keyword attachment in your projects. There are no dates: `start_date`, `end_date`, `asin_label_ids`, `primary_asin_only` and any other key are rejected with `invalid_export_parameters`. After acceptance, each generation attempt first estimates one record per selected keyword attachment. Estimates above 1,000,000 fail asynchronously; equality passes. Acceptance holds credits for the estimate."
      },
      "LiveSearchRequestParameters": {
        "type": "object",
        "description": "The effective request, with public parameter names.",
        "required": [
          "keyword",
          "marketplace",
          "page",
          "postal_code",
          "output"
        ],
        "properties": {
          "keyword": {
            "type": "string",
            "description": "Keyword searched, after surrounding whitespace was trimmed."
          },
          "marketplace": {
            "type": "string",
            "description": "Marketplace code.",
            "enum": [
              "US",
              "CA",
              "MX",
              "UK",
              "DE",
              "FR",
              "IT",
              "ES",
              "AU",
              "JP",
              "BR",
              "IN",
              "SG",
              "TR",
              "NL",
              "PL",
              "SE",
              "BE",
              "SA",
              "AE",
              "EG",
              "IE",
              "ZA"
            ]
          },
          "page": {
            "type": "integer",
            "description": "Results page searched.",
            "minimum": 1,
            "maximum": 20
          },
          "postal_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Delivery postal code used for the search, as it is listed. `null` for `NL`, `BE` and `ZA`, which deliver to the whole country."
          },
          "output": {
            "type": "string",
            "description": "Output type requested.",
            "enum": [
              "json",
              "html"
            ]
          },
          "include": {
            "type": "array",
            "items": {
              "type": "string",
              "enum": [
                "all",
                "core",
                "product_details",
                "pricing",
                "fulfillment",
                "ad_blocks",
                "related_searches"
              ]
            },
            "description": "Field groups applied to this response. `[\"all\"]` when `include` was omitted or was `all`; otherwise `core` followed by the named groups in a fixed order. Sending this value back as `include` returns the same field shape. Absent from an HTML request's redirect response."
          }
        }
      },
      "LiveSearchRequestMetadata": {
        "type": "object",
        "required": [
          "request_id"
        ],
        "properties": {
          "request_id": {
            "type": "string",
            "description": "Identifier of this search. Quote it when contacting support."
          },
          "processed_at": {
            "type": "string",
            "description": "When the search was processed.",
            "format": "date-time"
          },
          "source_url": {
            "type": "string",
            "description": "Amazon address that was read.",
            "format": "uri"
          }
        }
      },
      "LiveSearchInformation": {
        "type": "object",
        "required": [
          "product_count",
          "sponsored_product_count",
          "organic_product_count"
        ],
        "properties": {
          "total_results": {
            "type": "integer",
            "description": "Result count Amazon reported, capped by Amazon at 2,000.",
            "minimum": 0
          },
          "results_begin": {
            "type": "integer",
            "description": "Number of the first organic result on this page, as Amazon reported it. It counts organic results only and continues across pages, so it is the organic rank of the page's first organic result.",
            "minimum": 0
          },
          "results_end": {
            "type": "integer",
            "description": "Number of the last organic result on this page, as Amazon reported it.",
            "minimum": 0
          },
          "product_count": {
            "type": "integer",
            "description": "Products on this page.",
            "minimum": 0
          },
          "sponsored_product_count": {
            "type": "integer",
            "description": "Sponsored products on this page.",
            "minimum": 0
          },
          "organic_product_count": {
            "type": "integer",
            "description": "Organic products on this page.",
            "minimum": 0
          },
          "delivery_location": {
            "type": "string",
            "description": "Delivery location Amazon showed for the page."
          }
        }
      },
      "LiveSearchPagination": {
        "type": "object",
        "properties": {
          "current_page": {
            "type": "integer",
            "minimum": 1
          },
          "total_pages": {
            "type": "integer",
            "minimum": 0
          },
          "has_more": {
            "type": "boolean",
            "description": "Whether Amazon offers a later results page."
          }
        }
      },
      "LiveSearchFulfillmentOption": {
        "type": "object",
        "required": [
          "method",
          "display_text"
        ],
        "properties": {
          "method": {
            "type": "string",
            "enum": [
              "delivery",
              "pickup"
            ]
          },
          "estimate": {
            "type": "string",
            "description": "Estimated delivery or pickup date as Amazon displayed it."
          },
          "fee": {
            "type": "number",
            "description": "Fee in the marketplace's currency, when shown."
          },
          "display_text": {
            "type": "string",
            "description": "Text Amazon displayed for this option."
          }
        }
      },
      "LiveSearchPromotion": {
        "type": "object",
        "required": [
          "type",
          "display_text"
        ],
        "properties": {
          "type": {
            "type": "string",
            "description": "The kind of promotion Amazon showed. `preowned_deal` is Amazon's deal badge on a pre-owned, renewed or refurbished offer (`Preowned deal` on `US` and `CA`, `Promo Reacondicionado` on `MX`): it marks the offer's condition, not a time-limited deal.",
            "enum": [
              "coupon",
              "limited_time_deal",
              "final_sale",
              "price_discount",
              "best_price",
              "preowned_deal",
              "deal_countdown",
              "prime_deal",
              "prime_price",
              "rebate",
              "checkout_discount",
              "quantity_discount",
              "multibuy",
              "spend_discount",
              "subscription_discount",
              "amazon_credit",
              "gift_card",
              "free_trial",
              "bundle_offer",
              "other"
            ]
          },
          "display_text": {
            "type": "string",
            "description": "Text Amazon displayed for the promotion."
          },
          "price": {
            "type": "number"
          },
          "discount_amount": {
            "type": "number"
          },
          "discount_percentage": {
            "type": "number"
          },
          "minimum_quantity": {
            "type": "number"
          },
          "discounted_quantity": {
            "type": "number"
          },
          "minimum_spend": {
            "type": "number"
          },
          "pay_for_quantity": {
            "type": "number"
          },
          "buy_quantity": {
            "type": "number"
          },
          "free_quantity": {
            "type": "number"
          },
          "bundle_price": {
            "type": "number"
          },
          "minimum_rebate_amount": {
            "type": "number"
          },
          "credit_amount": {
            "type": "number"
          },
          "eligibility_text": {
            "type": "string"
          },
          "benefit_text": {
            "type": "string"
          },
          "countdown": {
            "type": "string"
          }
        }
      },
      "LiveSearchPricing": {
        "type": "object",
        "description": "In the `pricing` group. Every amount in it, including ranges, unit, reference, promotion and buying-choice prices, is in the marketplace's currency.",
        "properties": {
          "price": {
            "type": "number",
            "description": "Displayed price in the marketplace's currency (USD for US, CAD for CA, MXN for MX, GBP for UK, EUR for DE, FR, IT and ES, AUD for AU, JPY for JP, BRL for BR, INR for IN, SGD for SG, TRY for TR, PLN for PL, SEK for SE, SAR for SA, AED for AE, EGP for EG, EUR for NL, BE and IE, ZAR for ZA). The response has no currency field."
          },
          "price_is_estimated": {
            "type": "boolean",
            "description": "Present and `true` when the price is an estimate.",
            "enum": [
              true
            ]
          },
          "price_unit": {
            "type": "string"
          },
          "price_range": {
            "type": "object",
            "required": [
              "minimum",
              "maximum"
            ],
            "properties": {
              "minimum": {
                "type": "number"
              },
              "maximum": {
                "type": "number"
              }
            }
          },
          "price_qualification": {
            "type": "string"
          },
          "price_period": {
            "type": "string"
          },
          "price_message": {
            "type": "string"
          },
          "unit_price": {
            "type": "object",
            "required": [
              "price",
              "unit"
            ],
            "properties": {
              "price": {
                "type": "number"
              },
              "unit": {
                "type": "string"
              }
            }
          },
          "reference_price": {
            "type": "object",
            "required": [
              "type",
              "price"
            ],
            "properties": {
              "type": {
                "type": "string",
                "description": "The kind of reference price Amazon showed. `recent_low` is the lowest price of recent days, which Amazon shows under EU price rules (for example `Najniższa:` on `PL`, `Le plus bas` on `FR`).",
                "enum": [
                  "list",
                  "typical",
                  "previous",
                  "recent_low",
                  "new_condition",
                  "other"
                ]
              },
              "price": {
                "type": "number"
              },
              "display_text": {
                "type": "string"
              }
            }
          },
          "promotions": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiveSearchPromotion"
            }
          },
          "more_buying_choices": {
            "type": "object",
            "required": [
              "price",
              "offer_count",
              "offer_count_is_minimum",
              "condition"
            ],
            "properties": {
              "price": {
                "type": "number"
              },
              "offer_count": {
                "type": "integer",
                "minimum": 0
              },
              "offer_count_is_minimum": {
                "type": "boolean"
              },
              "condition": {
                "type": "string",
                "enum": [
                  "new",
                  "used",
                  "used_and_new"
                ]
              }
            }
          }
        }
      },
      "LiveSearchBadges": {
        "type": "object",
        "description": "In the `product_details` group.",
        "properties": {
          "best_seller": {
            "type": "object",
            "properties": {
              "category": {
                "type": "string"
              }
            }
          },
          "amazons_choice": {
            "type": "object",
            "required": [
              "type"
            ],
            "properties": {
              "type": {
                "type": "string",
                "enum": [
                  "overall_pick",
                  "popular_brand_pick",
                  "new_arrival_pick",
                  "unspecified"
                ]
              }
            }
          },
          "small_business": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "sustainability_features": {
            "type": "array",
            "items": {
              "type": "string",
              "minLength": 1
            }
          }
        }
      },
      "LiveSearchAlternativeOffer": {
        "type": "object",
        "description": "In the `pricing` group.",
        "properties": {
          "label": {
            "type": "string"
          },
          "pricing": {
            "$ref": "#/components/schemas/LiveSearchPricing"
          },
          "display_text": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          },
          "offer_count": {
            "type": "number"
          },
          "offer_count_is_minimum": {
            "type": "boolean",
            "enum": [
              true
            ]
          },
          "condition": {
            "type": "string",
            "enum": [
              "new",
              "used",
              "used_and_new"
            ]
          },
          "is_prime": {
            "type": "boolean",
            "description": "In the `fulfillment` group."
          },
          "quantity_in_stock": {
            "type": "integer",
            "description": "In the `fulfillment` group.",
            "minimum": 0
          },
          "fulfillment": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiveSearchFulfillmentOption"
            },
            "description": "In the `fulfillment` group."
          }
        }
      },
      "LiveSearchResult": {
        "type": "object",
        "description": "One product occurrence on the page. Fields outside `core` appear only when their group is selected and Amazon showed a value.",
        "required": [
          "asin",
          "page_position",
          "is_sponsored"
        ],
        "properties": {
          "asin": {
            "type": "string",
            "description": "In the `core` group."
          },
          "page_position": {
            "type": "integer",
            "description": "Position on the page among all results, sponsored and organic. In the `core` group.",
            "minimum": 1
          },
          "position": {
            "type": "integer",
            "description": "Amazon's own number for this result, read from its result link. Sponsored and organic results share one sequence, which continues across pages, so it is not an organic rank: a result's organic rank is `search_information.results_begin` - 1 plus its place among `is_sponsored: false` results in `page_position` order. Omitted when the link carries no number. In the `core` group.",
            "minimum": 1
          },
          "is_sponsored": {
            "type": "boolean",
            "description": "Whether the result is a sponsored placement. In the `core` group."
          },
          "placement": {
            "type": "string",
            "enum": [
              "top",
              "inline",
              "bottom"
            ],
            "description": "The ad slot Amazon served a sponsored result in, the same English token in every marketplace. It is Amazon's own slot label, so it does not vary with screen size or say whether a shopper saw the ad without scrolling. Omitted for organic results and for sponsored results whose slot Amazon does not name. In the `core` group."
          },
          "title": {
            "type": "string",
            "description": "In the `product_details` group."
          },
          "subtitle": {
            "type": "string",
            "description": "Second line of a product title that Amazon shows split in two, in the page's language. In the `product_details` group."
          },
          "brand": {
            "type": "string",
            "description": "In the `product_details` group."
          },
          "tracked_url": {
            "type": "string",
            "description": "Product link. In the `product_details` group.",
            "format": "uri"
          },
          "image_url": {
            "type": "string",
            "description": "In the `product_details` group.",
            "format": "uri"
          },
          "size": {
            "type": "string",
            "description": "Size text shown with the product. In the `product_details` group."
          },
          "attribute": {
            "type": "string",
            "description": "Attribute text shown with the product, such as a colour. In the `product_details` group."
          },
          "rating": {
            "type": "number",
            "description": "Average star rating. In the `product_details` group.",
            "minimum": 0,
            "maximum": 5
          },
          "review_count": {
            "type": "integer",
            "description": "In the `product_details` group.",
            "minimum": 0
          },
          "positively_reviewed_for": {
            "type": "string",
            "description": "Review highlight. In the `product_details` group."
          },
          "top_reviewed_for": {
            "type": "string",
            "description": "Review highlight. In the `product_details` group."
          },
          "monthly_sales": {
            "type": "integer",
            "description": "Lower bound of the \"bought in past month\" figure. In the `product_details` group.",
            "minimum": 0
          },
          "badges": {
            "$ref": "#/components/schemas/LiveSearchBadges"
          },
          "pricing": {
            "$ref": "#/components/schemas/LiveSearchPricing"
          },
          "alternative_offers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiveSearchAlternativeOffer"
            },
            "description": "In the `pricing` group."
          },
          "is_prime": {
            "type": "boolean",
            "description": "In the `fulfillment` group."
          },
          "quantity_in_stock": {
            "type": "integer",
            "description": "Stock count, when Amazon shows one. In the `fulfillment` group.",
            "minimum": 0
          },
          "fulfillment": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiveSearchFulfillmentOption"
            },
            "description": "In the `fulfillment` group."
          }
        }
      },
      "LiveSearchAdProduct": {
        "type": "object",
        "description": "Product in an ad block, carrying its `asin` and the selected product groups.",
        "properties": {
          "asin": {
            "type": "string"
          },
          "title": {
            "type": "string",
            "description": "In the `product_details` group."
          },
          "tracked_url": {
            "type": "string",
            "description": "Product link. In the `product_details` group.",
            "format": "uri"
          },
          "image_url": {
            "type": "string",
            "description": "In the `product_details` group.",
            "format": "uri"
          },
          "size": {
            "type": "string",
            "description": "Size text shown with the product. In the `product_details` group."
          },
          "attribute": {
            "type": "string",
            "description": "Attribute text shown with the product, such as a colour. In the `product_details` group."
          },
          "rating": {
            "type": "number",
            "description": "Average star rating. In the `product_details` group.",
            "minimum": 0,
            "maximum": 5
          },
          "review_count": {
            "type": "integer",
            "description": "In the `product_details` group.",
            "minimum": 0
          },
          "positively_reviewed_for": {
            "type": "string",
            "description": "Review highlight. In the `product_details` group."
          },
          "top_reviewed_for": {
            "type": "string",
            "description": "Review highlight. In the `product_details` group."
          },
          "monthly_sales": {
            "type": "integer",
            "description": "Lower bound of the \"bought in past month\" figure. In the `product_details` group.",
            "minimum": 0
          },
          "badges": {
            "$ref": "#/components/schemas/LiveSearchBadges"
          },
          "pricing": {
            "$ref": "#/components/schemas/LiveSearchPricing"
          },
          "alternative_offers": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiveSearchAlternativeOffer"
            },
            "description": "In the `pricing` group."
          },
          "is_prime": {
            "type": "boolean",
            "description": "In the `fulfillment` group."
          },
          "quantity_in_stock": {
            "type": "integer",
            "description": "Stock count, when Amazon shows one. In the `fulfillment` group.",
            "minimum": 0
          },
          "fulfillment": {
            "type": "array",
            "items": {
              "$ref": "#/components/schemas/LiveSearchFulfillmentOption"
            },
            "description": "In the `fulfillment` group."
          }
        }
      },
      "LiveSearchAdBlock": {
        "type": "object",
        "description": "Sponsored brand, video and collection placement. In the `ad_blocks` group.",
        "required": [
          "position",
          "type",
          "items"
        ],
        "properties": {
          "position": {
            "type": "integer",
            "description": "Order of the ad block on the page.",
            "minimum": 1
          },
          "heading": {
            "type": "string"
          },
          "subtitle": {
            "type": "string"
          },
          "brand": {
            "type": "object",
            "properties": {
              "name": {
                "type": "string"
              },
              "logo_url": {
                "type": "string",
                "format": "uri"
              },
              "store_url": {
                "type": "string",
                "format": "uri"
              }
            }
          },
          "type": {
            "type": "string",
            "enum": [
              "brand_collection",
              "brand_video",
              "video_collection",
              "store_collection",
              "product_video",
              "product_collection",
              "shopping_adviser",
              "unknown"
            ]
          },
          "placement": {
            "type": "string",
            "enum": [
              "top",
              "inline",
              "bottom"
            ]
          },
          "media": {
            "type": "array",
            "items": {
              "type": "object",
              "required": [
                "type"
              ],
              "properties": {
                "type": {
                  "type": "string",
                  "enum": [
                    "video",
                    "image"
                  ]
                },
                "url": {
                  "type": "string",
                  "format": "uri"
                },
                "poster_url": {
                  "type": "string",
                  "format": "uri"
                },
                "features": {
                  "type": "array",
                  "items": {
                    "type": "object",
                    "required": [
                      "label"
                    ],
                    "properties": {
                      "label": {
                        "type": "string"
                      }
                    }
                  }
                }
              }
            }
          },
          "items": {
            "type": "array",
            "items": {
              "oneOf": [
                {
                  "type": "object",
                  "description": "A product item. `product` is omitted when nothing selected is available for it.",
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "product"
                      ]
                    },
                    "label": {
                      "type": "string"
                    },
                    "product": {
                      "$ref": "#/components/schemas/LiveSearchAdProduct"
                    }
                  }
                },
                {
                  "type": "object",
                  "description": "A link to a brand store.",
                  "required": [
                    "type"
                  ],
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "store_link"
                      ]
                    },
                    "label": {
                      "type": "string"
                    },
                    "image_url": {
                      "type": "string",
                      "format": "uri"
                    },
                    "url": {
                      "type": "string",
                      "format": "uri"
                    }
                  }
                }
              ]
            }
          }
        }
      },
      "LiveSearchRelatedSearch": {
        "type": "object",
        "required": [
          "search_term",
          "url"
        ],
        "properties": {
          "search_term": {
            "type": "string"
          },
          "url": {
            "type": "string",
            "format": "uri"
          }
        }
      },
      "LiveSearchResponse": {
        "type": "object",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "request_parameters",
              "request_metadata",
              "search_information",
              "search_results"
            ],
            "properties": {
              "request_parameters": {
                "$ref": "#/components/schemas/LiveSearchRequestParameters"
              },
              "request_metadata": {
                "$ref": "#/components/schemas/LiveSearchRequestMetadata"
              },
              "search_information": {
                "$ref": "#/components/schemas/LiveSearchInformation"
              },
              "search_results": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LiveSearchResult"
                },
                "description": "Products in page order. Empty when the page has no products."
              },
              "pagination": {
                "$ref": "#/components/schemas/LiveSearchPagination"
              },
              "related_searches": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LiveSearchRelatedSearch"
                },
                "description": "In the `related_searches` group; an empty array when selected and Amazon showed none."
              },
              "ad_blocks": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/LiveSearchAdBlock"
                },
                "description": "In the `ad_blocks` group; an empty array when selected and Amazon showed none."
              }
            }
          }
        }
      },
      "LiveSearchRedirectResponse": {
        "type": "object",
        "description": "Amazon redirected the keyword to a category or other non-search page. There are no results.",
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "required": [
              "request_parameters",
              "request_metadata",
              "redirect_url"
            ],
            "properties": {
              "request_parameters": {
                "$ref": "#/components/schemas/LiveSearchRequestParameters"
              },
              "request_metadata": {
                "type": "object",
                "properties": {
                  "request_id": {
                    "type": "string",
                    "description": "Identifier of this search."
                  }
                }
              },
              "redirect_url": {
                "type": "string",
                "description": "Amazon page the keyword was redirected to.",
                "format": "uri"
              }
            }
          }
        }
      },
      "LiveSearchErrorResponse": {
        "type": "object",
        "required": [
          "error"
        ],
        "properties": {
          "error": {
            "type": "object",
            "required": [
              "code",
              "message",
              "retryable"
            ],
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              },
              "retryable": {
                "type": "boolean",
                "description": "Always `true` for a live search failure: the same search can succeed later."
              },
              "request_id": {
                "type": "string",
                "description": "Identifier of the failed search, when one exists. Quote it when contacting support."
              }
            }
          }
        }
      },
      "KeywordsForKeywordReportParameters": {
        "title": "Keywords for a keyword parameters",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "keyword",
          "marketplace",
          "start_date",
          "end_date"
        ],
        "properties": {
          "keyword": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "The keyword to research. The report covers it and every keyword that contains it, as the app's default Keyword Spy search finds them. For data on an exact list of keywords use `GET /v0/keywords`. Surrounding and repeated spaces are removed and it is stored in lower case."
          },
          "marketplace": {
            "type": "string",
            "enum": [
              "US",
              "CA",
              "MX",
              "UK",
              "DE",
              "FR",
              "IT",
              "ES",
              "AU"
            ],
            "description": "The marketplace to research. Case-insensitive; stored in upper case."
          },
          "interval": {
            "type": "string",
            "enum": [
              "weekly",
              "monthly"
            ],
            "default": "monthly",
            "description": "Whether `clicks` and `sales` are weekly or monthly averages. `weekly` returns `403 weekly_interval_not_allowed` on plans without weekly data."
          },
          "start_date": {
            "type": "string",
            "format": "date",
            "description": "First week or month of the range, `YYYY-MM-DD`: the first day of a month, or the Sunday that starts a week. Any other day returns `400 invalid_date` with `error.suggested_start_date`."
          },
          "end_date": {
            "type": "string",
            "format": "date",
            "description": "Last week or month of the range, `YYYY-MM-DD`, on or after `start_date`. The range covers at most 12 weeks or months and must lie within the research data available on your plan."
          },
          "include_periods": {
            "type": "boolean",
            "default": false,
            "description": "Whether each record gains a `periods` array with the keyword's week-by-week or month-by-month detail, oldest first. Any value other than `true` or `false` returns `400 invalid_include_periods`."
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "jsonl",
              "csv"
            ],
            "default": "json",
            "description": "The file format: `json` (one array of records), `jsonl` (one record per line) or `csv` (one row per keyword, or per keyword and period with `include_periods`). Every format holds the same keywords, values and order, and costs the same. Any other value, including a different case, returns `400 invalid_format`."
          }
        },
        "description": "What to research. Any other key, including `asin`, returns `400 invalid_report_parameters`."
      },
      "KeywordsForKeywordReportRunParameters": {
        "title": "Keywords for a keyword parameters, as accepted",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "keyword",
          "marketplace",
          "interval",
          "start_date",
          "end_date"
        ],
        "properties": {
          "keyword": {
            "type": "string",
            "minLength": 1,
            "maxLength": 200,
            "description": "The keyword to research. The report covers it and every keyword that contains it, as the app's default Keyword Spy search finds them. For data on an exact list of keywords use `GET /v0/keywords`. Surrounding and repeated spaces are removed and it is stored in lower case."
          },
          "marketplace": {
            "type": "string",
            "enum": [
              "US",
              "CA",
              "MX",
              "UK",
              "DE",
              "FR",
              "IT",
              "ES",
              "AU"
            ],
            "description": "The marketplace to research. Case-insensitive; stored in upper case."
          },
          "interval": {
            "type": "string",
            "enum": [
              "weekly",
              "monthly"
            ],
            "default": "monthly",
            "description": "Whether `clicks` and `sales` are weekly or monthly averages. `weekly` returns `403 weekly_interval_not_allowed` on plans without weekly data."
          },
          "start_date": {
            "type": "string",
            "format": "date",
            "description": "First week or month of the range, `YYYY-MM-DD`: the first day of a month, or the Sunday that starts a week. Any other day returns `400 invalid_date` with `error.suggested_start_date`."
          },
          "end_date": {
            "type": "string",
            "format": "date",
            "description": "Last week or month of the range, `YYYY-MM-DD`, on or after `start_date`. The range covers at most 12 weeks or months and must lie within the research data available on your plan."
          },
          "include_periods": {
            "type": "boolean",
            "default": false,
            "description": "Whether each record has a `periods` array with the keyword's week-by-week or month-by-month detail."
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "jsonl",
              "csv"
            ],
            "default": "json",
            "description": "The file format."
          }
        },
        "description": "The request's parameters as accepted: normalised, with the defaults of `interval`, `include_periods` and `format` filled in."
      },
      "CreateKeywordsForKeywordReportRequest": {
        "title": "Keywords for a keyword",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "report_type",
          "parameters"
        ],
        "properties": {
          "report_type": {
            "type": "string",
            "enum": [
              "keywords_for_keyword.1"
            ]
          },
          "parameters": {
            "$ref": "#/components/schemas/KeywordsForKeywordReportParameters"
          }
        },
        "description": "Request body for a keywords_for_keyword.1 report. The version suffix on `report_type` identifies the parameter set and file fields; a future change ships as a new id."
      },
      "KeywordsForAsinReportParameters": {
        "title": "Keywords for an ASIN parameters",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "asin",
          "marketplace",
          "start_date",
          "end_date"
        ],
        "properties": {
          "asin": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{10}$",
            "description": "The ASIN to research: 10 letters and digits. Surrounding spaces are removed and it is stored in upper case. The report always includes the ASIN's variations."
          },
          "marketplace": {
            "type": "string",
            "enum": [
              "US",
              "CA",
              "MX",
              "UK",
              "DE",
              "FR",
              "IT",
              "ES",
              "AU"
            ],
            "description": "The marketplace to research. Case-insensitive; stored in upper case."
          },
          "interval": {
            "type": "string",
            "enum": [
              "weekly",
              "monthly"
            ],
            "default": "monthly",
            "description": "Whether `clicks` and `sales` are weekly or monthly averages. `weekly` returns `403 weekly_interval_not_allowed` on plans without weekly data."
          },
          "start_date": {
            "type": "string",
            "format": "date",
            "description": "First week or month of the range, `YYYY-MM-DD`: the first day of a month, or the Sunday that starts a week. Any other day returns `400 invalid_date` with `error.suggested_start_date`."
          },
          "end_date": {
            "type": "string",
            "format": "date",
            "description": "Last week or month of the range, `YYYY-MM-DD`, on or after `start_date`. The range covers at most 12 weeks or months and must lie within the research data available on your plan."
          },
          "include_periods": {
            "type": "boolean",
            "default": false,
            "description": "Whether each record gains a `periods` array with the keyword's week-by-week or month-by-month detail, oldest first. Any value other than `true` or `false` returns `400 invalid_include_periods`."
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "jsonl",
              "csv"
            ],
            "default": "json",
            "description": "The file format: `json` (one array of records), `jsonl` (one record per line) or `csv` (one row per keyword, or per keyword and period with `include_periods`). Every format holds the same keywords, values and order, and costs the same. Any other value, including a different case, returns `400 invalid_format`."
          }
        },
        "description": "What to research. Any other key, including `keyword`, returns `400 invalid_report_parameters`."
      },
      "KeywordsForAsinReportRunParameters": {
        "title": "Keywords for an ASIN parameters, as accepted",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "asin",
          "marketplace",
          "interval",
          "start_date",
          "end_date"
        ],
        "properties": {
          "asin": {
            "type": "string",
            "pattern": "^[A-Za-z0-9]{10}$",
            "description": "The ASIN to research: 10 letters and digits. Surrounding spaces are removed and it is stored in upper case. The report always includes the ASIN's variations."
          },
          "marketplace": {
            "type": "string",
            "enum": [
              "US",
              "CA",
              "MX",
              "UK",
              "DE",
              "FR",
              "IT",
              "ES",
              "AU"
            ],
            "description": "The marketplace to research. Case-insensitive; stored in upper case."
          },
          "interval": {
            "type": "string",
            "enum": [
              "weekly",
              "monthly"
            ],
            "default": "monthly",
            "description": "Whether `clicks` and `sales` are weekly or monthly averages. `weekly` returns `403 weekly_interval_not_allowed` on plans without weekly data."
          },
          "start_date": {
            "type": "string",
            "format": "date",
            "description": "First week or month of the range, `YYYY-MM-DD`: the first day of a month, or the Sunday that starts a week. Any other day returns `400 invalid_date` with `error.suggested_start_date`."
          },
          "end_date": {
            "type": "string",
            "format": "date",
            "description": "Last week or month of the range, `YYYY-MM-DD`, on or after `start_date`. The range covers at most 12 weeks or months and must lie within the research data available on your plan."
          },
          "include_periods": {
            "type": "boolean",
            "default": false,
            "description": "Whether each record has a `periods` array with the keyword's week-by-week or month-by-month detail."
          },
          "format": {
            "type": "string",
            "enum": [
              "json",
              "jsonl",
              "csv"
            ],
            "default": "json",
            "description": "The file format."
          }
        },
        "description": "The request's parameters as accepted: normalised, with the defaults of `interval`, `include_periods` and `format` filled in."
      },
      "CreateKeywordsForAsinReportRequest": {
        "title": "Keywords for an ASIN",
        "type": "object",
        "additionalProperties": false,
        "required": [
          "report_type",
          "parameters"
        ],
        "properties": {
          "report_type": {
            "type": "string",
            "enum": [
              "keywords_for_asin.1"
            ]
          },
          "parameters": {
            "$ref": "#/components/schemas/KeywordsForAsinReportParameters"
          }
        },
        "description": "Request body for a keywords_for_asin.1 report. The version suffix on `report_type` identifies the parameter set and file fields; a future change ships as a new id."
      },
      "CreateReportRequest": {
        "type": "object",
        "required": [
          "report_type",
          "parameters"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/CreateKeywordsForKeywordReportRequest"
          },
          {
            "$ref": "#/components/schemas/CreateKeywordsForAsinReportRequest"
          }
        ],
        "discriminator": {
          "propertyName": "report_type",
          "mapping": {
            "keywords_for_keyword.1": "#/components/schemas/CreateKeywordsForKeywordReportRequest",
            "keywords_for_asin.1": "#/components/schemas/CreateKeywordsForAsinReportRequest"
          }
        }
      },
      "KeywordsForKeywordReport": {
        "title": "Keywords for a keyword",
        "type": "object",
        "additionalProperties": false,
        "description": "One accepted keywords_for_keyword.1 report and its result. The fields and states are those of an export, with `report_type` in place of `export_type`.",
        "required": [
          "id",
          "report_type",
          "parameters",
          "state",
          "failure_code",
          "failure_message",
          "created_at",
          "started_at",
          "completed_at",
          "result"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "report_type": {
            "type": "string",
            "enum": [
              "keywords_for_keyword.1"
            ]
          },
          "parameters": {
            "$ref": "#/components/schemas/KeywordsForKeywordReportRunParameters"
          },
          "state": {
            "type": "string",
            "enum": [
              "queued",
              "processing",
              "ready",
              "failed",
              "expired"
            ],
            "description": "`queued` and `processing` are unfinished; poll at least 5 seconds apart. `ready` has a file. `failed` and `expired` are terminal. Decide failure from `state`, not `failure_code`."
          },
          "failure_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Stable terminal failure code. See Get a report for recovery."
          },
          "failure_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Plain-language explanation and next step for a `failed` report. Null in every other state."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the request was accepted."
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "result": {
            "type": [
              "object",
              "null"
            ],
            "description": "Null until successful completion. Ready and expired reports keep this metadata; a report with no matching keywords has `row_count` 0. Download links come only from the download endpoint.",
            "required": [
              "row_count",
              "compressed_bytes",
              "expires_at"
            ],
            "additionalProperties": false,
            "properties": {
              "row_count": {
                "type": "integer",
                "minimum": 0,
                "description": "Keywords in the file, whatever its format. A CSV header is not counted, and a CSV with periods can have more rows than keywords."
              },
              "compressed_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "expires_at": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        }
      },
      "KeywordsForAsinReport": {
        "title": "Keywords for an ASIN",
        "type": "object",
        "additionalProperties": false,
        "description": "One accepted keywords_for_asin.1 report and its result. The fields and states are those of an export, with `report_type` in place of `export_type`.",
        "required": [
          "id",
          "report_type",
          "parameters",
          "state",
          "failure_code",
          "failure_message",
          "created_at",
          "started_at",
          "completed_at",
          "result"
        ],
        "properties": {
          "id": {
            "type": "string",
            "format": "uuid"
          },
          "report_type": {
            "type": "string",
            "enum": [
              "keywords_for_asin.1"
            ]
          },
          "parameters": {
            "$ref": "#/components/schemas/KeywordsForAsinReportRunParameters"
          },
          "state": {
            "type": "string",
            "enum": [
              "queued",
              "processing",
              "ready",
              "failed",
              "expired"
            ],
            "description": "`queued` and `processing` are unfinished; poll at least 5 seconds apart. `ready` has a file. `failed` and `expired` are terminal. Decide failure from `state`, not `failure_code`."
          },
          "failure_code": {
            "type": [
              "string",
              "null"
            ],
            "description": "Stable terminal failure code. See Get a report for recovery."
          },
          "failure_message": {
            "type": [
              "string",
              "null"
            ],
            "description": "Plain-language explanation and next step for a `failed` report. Null in every other state."
          },
          "created_at": {
            "type": "string",
            "format": "date-time",
            "description": "When the request was accepted."
          },
          "started_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "completed_at": {
            "type": [
              "string",
              "null"
            ],
            "format": "date-time"
          },
          "result": {
            "type": [
              "object",
              "null"
            ],
            "description": "Null until successful completion. Ready and expired reports keep this metadata; a report with no matching keywords has `row_count` 0. Download links come only from the download endpoint.",
            "required": [
              "row_count",
              "compressed_bytes",
              "expires_at"
            ],
            "additionalProperties": false,
            "properties": {
              "row_count": {
                "type": "integer",
                "minimum": 0,
                "description": "Keywords in the file, whatever its format. A CSV header is not counted, and a CSV with periods can have more rows than keywords."
              },
              "compressed_bytes": {
                "type": "integer",
                "minimum": 0
              },
              "expires_at": {
                "type": "string",
                "format": "date-time"
              }
            }
          }
        }
      },
      "Report": {
        "type": "object",
        "description": "One accepted report and its result. `report_type` says which type it is and which `parameters` it has. `failure_code` is machine-readable and `failure_message` says what to do next; see Get a report for every code.",
        "required": [
          "report_type"
        ],
        "oneOf": [
          {
            "$ref": "#/components/schemas/KeywordsForKeywordReport"
          },
          {
            "$ref": "#/components/schemas/KeywordsForAsinReport"
          }
        ],
        "discriminator": {
          "propertyName": "report_type",
          "mapping": {
            "keywords_for_keyword.1": "#/components/schemas/KeywordsForKeywordReport",
            "keywords_for_asin.1": "#/components/schemas/KeywordsForAsinReport"
          }
        }
      },
      "ReportResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "$ref": "#/components/schemas/Report"
          }
        }
      },
      "ReportsResponse": {
        "type": "object",
        "additionalProperties": false,
        "required": [
          "data"
        ],
        "properties": {
          "data": {
            "type": "object",
            "additionalProperties": false,
            "required": [
              "reports",
              "page"
            ],
            "properties": {
              "reports": {
                "type": "array",
                "items": {
                  "$ref": "#/components/schemas/Report"
                }
              },
              "page": {
                "type": "object",
                "required": [
                  "limit",
                  "has_more",
                  "next_cursor"
                ],
                "properties": {
                  "limit": {
                    "type": "integer"
                  },
                  "has_more": {
                    "type": "boolean"
                  },
                  "next_cursor": {
                    "type": [
                      "string",
                      "null"
                    ]
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "x-tagGroups": [
    {
      "name": "Account",
      "tags": [
        "Account"
      ]
    },
    {
      "name": "Keywords",
      "tags": [
        "Keywords"
      ]
    },
    {
      "name": "Projects",
      "tags": [
        "Project management",
        "Project ASINs",
        "Project keywords",
        "Project notes",
        "Rank history"
      ]
    },
    {
      "name": "Labels",
      "tags": [
        "Project labels",
        "Item labels"
      ]
    },
    {
      "name": "Exports",
      "tags": [
        "Exports"
      ]
    },
    {
      "name": "Live search",
      "tags": [
        "Live search"
      ]
    },
    {
      "name": "Reports",
      "tags": [
        "Reports"
      ]
    }
  ]
}
