Datarova
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) and latest_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_plan is 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:

NameTypeRequiredDescription
marketplacestringRequiredOne of US, CA, MX, UK, DE, FR, IT, ES, AU.
weeklyKeywordPeriodAvailabilityRequiredISO 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.
monthlyKeywordPeriodAvailabilityRequiredISO 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

NameTypeRequiredDescription
available_on_planbooleanRequiredWhether 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_datestring | null (date)RequiredOldest stored period start, including history your current plan does not allow. Null when this interval has no stored data.
earliest_date_allowed_by_planstring | null (date)RequiredOldest 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_datestring | null (date)RequiredLatest loaded period start, independent of the current calendar period. Null when this interval has no stored data.

data[].monthly

NameTypeRequiredDescription
available_on_planbooleanRequiredWhether 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_datestring | null (date)RequiredOldest stored period start, including history your current plan does not allow. Null when this interval has no stored data.
earliest_date_allowed_by_planstring | null (date)RequiredOldest 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_datestring | null (date)RequiredLatest loaded period start, independent of the current calendar period. Null when this interval has no stored data.
Full input and output JSON Schema
JSONCode
{ "inputSchema": { "type": "object", "$schema": "https://json-schema.org/draft/2020-12/schema", "properties": {}, "additionalProperties": false }, "outputSchema": { "type": "object", "required": [ "data" ], "properties": { "data": { "type": "array", "items": { "type": "object", "required": [ "marketplace", "weekly", "monthly" ], "properties": { "marketplace": { "type": "string", "enum": [ "US", "CA", "MX", "UK", "DE", "FR", "IT", "ES", "AU" ] }, "weekly": { "$ref": "#/$defs/KeywordPeriodAvailability" }, "monthly": { "$ref": "#/$defs/KeywordPeriodAvailability" } } } } }, "$defs": { "KeywordPeriodAvailability": { "type": "object", "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." } } } } } }