API

Use the AppSays REST API for keyword ranks, downloads, revenue, reviews and Apple Ads data: API keys, pagination, errors and rate limits.

The AppSays REST API exposes every operation the web app uses. If you can see or do it in AppSays, you can do it with the API, under the same permissions and plan limits.

  • Base URL: https://api.appsays.com/v1
  • Format: JSON in and out, UTF-8. Field names are snake_case.
  • Reference: the OpenAPI document at GET https://api.appsays.com/v1/openapi, generated from the same schemas the API validates with.

Authentication

Scripts authenticate with an API key sent in the X-Api-Key header. Never put a key in a URL.

curl https://api.appsays.com/v1/apps \
  -H "X-Api-Key: $APPSAYS_API_KEY"

Create a key

An owner or admin creates keys in the web app, under Settings, API keys. A key belongs to the Organization, not to the person who made it, so it keeps working when that person leaves.

When you create a key you choose:

  1. Scopes. What the key may do, by area: aso:read, analytics:read, reviews:read, reviews:write, alerts:write and so on. New keys get read scopes only. write does not include read; ask for both if you need both.
  2. Apps. All apps, or a list. The key reaches only those apps.
  3. Expiry. Optional, from one day to two years.

The secret is shown once. Store it in your secret manager. If you lose it, revoke the key and create a new one.

Publishing from a key

reviews:publish lets a key send replies to the stores with no person watching. It is off by default, the form warns you before you add it, and an admin can block all keys and agents from publishing for the whole Organization.

A key is bound to one Organization, so requests never name one. A key cannot create other keys, enter store credentials or change billing. Those operations answer WEB_REQUIRED with a link to the right page.

Responses

A successful response has this shape:

{
  "success": true,
  "data": { "...": "..." },
  "meta": { "request_id": "req_...", "next_cursor": "..." }
}

meta can also hold total, labels, usage and warnings. Clients must ignore fields they do not recognize: the API adds fields without a new version.

Labeled values

Every number that comes from a store or from AppSays' collection is labeled with data_quality (measured, estimated or unavailable), its data_source and as_of. An unavailable value always has a reason, such as not_connected, withheld_by_store, outside_history or plan_limit. In tables, the default label for a column is in meta.labels, and a cell that differs is an object with its own label. Never read an unavailable value as zero.

AI output, such as a reply draft or a theme, carries a generated object instead, with edited: true once a person or agent changes the text.

Pagination

Lists use cursors. Send limit (default 50, maximum 200) and the cursor from the previous page. The response's meta.next_cursor is null on the last page.

curl "https://api.appsays.com/v1/reviews?app_id=app_...&rating=1,2&limit=100&cursor=..." \
  -H "X-Api-Key: $APPSAYS_API_KEY"

A cursor remembers the filters and sort it was made with. Changing them mid-way is a VALIDATION_ERROR; start again without a cursor. Time series are not paged; they are bounded by the date range.

Filters, sorting and dates

  • Filters are query fields named after the field: country=us, rating=1,2 (a comma means any of).
  • Ranges use _min and _max: keyword_rank_max=10.
  • sort takes one field, with - for descending: sort=-popularity.
  • Dates use from and to (inclusive, 2026-10-01), or a period such as last_30_days, month_to_date or last_12_months. compare=previous_period adds a comparison series.
  • Unknown filters and fields are refused, never ignored.

Reads that take a long list, such as hundreds of keywords, can be sent as POST on the same path with the header X-HTTP-Method-Override: GET and the input in the body.

Errors

Errors return an error object with a stable code, a human-readable message, optional details and the request_id. Act on the code; messages may change.

CodeHTTPMeaning
VALIDATION_ERROR400A field is wrong or unknown. details lists each one.
AUTH_REQUIRED401No valid key, token or session.
FORBIDDEN403The role does not allow the operation.
INSUFFICIENT_SCOPE403The key lacks a scope. required_scopes says which.
WEB_REQUIRED403The operation runs in the web app only. web_url links to it.
LIMIT_REACHED403A plan limit is full. The error says which limit, what is used, when it resets and which plan lifts it.
NOT_FOUND404It does not exist, or the key's apps do not include it.
CONFLICT409The current state does not allow it, for example a review already replied to elsewhere.
CONFIRMATION_INVALID409A confirmation token was used, expired or is for different content.
IDEMPOTENCY_CONFLICT409An idempotency key was reused with a different body.
NOT_SUPPORTED_BY_STORE422The store has no such action, such as deleting a Google Play reply.
RATE_LIMIT_EXCEEDED429Too many requests. Wait for Retry-After.
STORE_UNAVAILABLE503A live lookup could not reach the store. Retry after Retry-After.
AI_UNAVAILABLE503The AI model did not answer in time. Nothing was charged.

No access reads as NOT_FOUND, so a key cannot learn that an app exists outside its access.

Store writes and confirmation

A call that changes something on a store, such as publish_reply, runs in two steps:

  1. Call it without confirmation_token. Nothing is sent. The response is 202 with status: "confirmation_required", a confirmation.token, and the exact changes that would be made.
  2. Call it again with the same input and the token. The write runs once. The token expires after ten minutes and works only for that exact content.

If your Organization requires approval, the second call returns status: "pending_approval" until a member approves it in the web app.

Idempotency

Send an Idempotency-Key header on any POST. A retry with the same key and body returns the first response, with Idempotent-Replayed: true, and is not charged again. Use it on every call that runs an AI generation, such as draft_reply. PUT, PATCH and DELETE are idempotent without it.

Rate limits and usage

Requests are rate limited per API key, per connected agent and per Organization. Past the limit the API answers 429 RATE_LIMIT_EXCEEDED with a Retry-After header in seconds. Back off for that long, then retry.

Rate limits protect the service and are separate from your plan's limits. Reading data you already track never costs anything but rate limit. Metered calls, such as a lookup of an untracked keyword or an AI draft, return meta.usage with what is left:

{ "usage": [{ "limit": "lookups", "counted": true, "used": 137, "remaining": 363, "resets_at": "2026-12-01T00:00:00Z" }] }

Versioning

The major version is in the path. v1 only changes by addition: new routes, new optional inputs, new fields and new enumeration values. A breaking change gets a new path version, and the old one keeps working for at least 12 months with Deprecation and Sunset headers.

Common tasks

TaskRequest
List your appsGET /v1/apps
Keyword table for an appGET /v1/apps/:app_id/tracked-keywords
Track keywordsPOST /v1/apps/:app_id/tracked-keywords
Downloads by dayGET /v1/metric-observations?app_id=...&metrics=downloads&period=last_30_days
Unanswered low-star reviewsGET /v1/reviews?app_id=...&rating=1,2&reply_state=not_replied
Draft a replyPOST /v1/reviews/:review_id/reply-drafts