Account
get_data_availability
Get data availability ยท Read-only, idempotent
Discover weekly and monthly keyword market-data dates for every supported marketplace before choosing dates.
- Returns period starts:
earliest_available_date(oldest stored),earliest_date_allowed_by_plan(oldest the account's current plan allows) andlatest_available_date(latest loaded). - When the plan date is later, older data exists but the plan's history limit holds it back: tell the user that upgrading to a plan with a longer history window unlocks it.
- On plans without weekly data,
weekly.available_on_planis false and its dates are null: choose monthly dates instead of weekly ones. - All three dates are null when an interval has no stored data.
Cost and limits: Costs no credits; shared 60-per-minute limit.
Input
No fields.
Output
Read this object from the result's structuredContent. The result's content carries a text version for the model, which is not always the same JSON.
data is an array. Fields of each data[] item:
| Name | Type | Required | Description |
|---|---|---|---|
marketplace | string | Required | One of US, CA, MX, UK, DE, FR, IT, ES, AU. |
weekly | KeywordPeriodAvailability | Required | 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. |
monthly | KeywordPeriodAvailability | Required | 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. |
data[].weekly
| Name | Type | Required | Description |
|---|---|---|---|
available_on_plan | boolean | Required | 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 | string | null (date) | Required | 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 | string | null (date) | Required | 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 | string | null (date) | Required | Latest loaded period start, independent of the current calendar period. Null when this interval has no stored data. |
data[].monthly
| Name | Type | Required | Description |
|---|---|---|---|
available_on_plan | boolean | Required | 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 | string | null (date) | Required | 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 | string | null (date) | Required | 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 | string | null (date) | Required | Latest loaded period start, independent of the current calendar period. Null when this interval has no stored data. |
Full input and output JSON Schema
Code