App Store search endpoint

GEThttps://api.scrapereviews.com/v1/appstore/apps/search1 credit per call, up to 20 apps (also when nothing matches)

The App Store search endpoint finds iOS apps by name, developer or keyword in one country store. Each result is a unified Entity with the same fields as the app endpoint, so the id it returns can go straight into the reviews endpoint.

Apple returns one list of up to 50 matches per search; the API returns up to 20 per call and meta.next_cursor reads the rest of the list.

Parameters

Query parameters

ParameterTypeDefaultDescription
querystringrequiredApp name, developer or keyword (1-200 characters)
countrystringusStore country, ISO 3166-1 alpha-2 (us, it, de...): the store to search
limitinteger 1-2010Apps per response
cursorstring-meta.next_cursor of the previous response, with the same parameters

Authenticate with your API key in the X-API-Key header or as Authorization: Bearer (see authentication).

Example request

curl "https://api.scrapereviews.com/v1/appstore/apps/search?query=meditation&country=gb&limit=10" \
  -H "X-API-Key: sr_your_api_key"

Response

Shape
{ "data": Entity[], "meta": ListMeta }
Example (shortened)
{
  "data": [
    { "source": "appstore", "type": "app", "id": "571800810", "handle": "571800810", "name": "Calm: Sleep & Meditation",
      "url": "https://apps.apple.com/gb/app/calm-sleep-meditation/id571800810", "rating": 4.8, "rating_scale": 5,
      "review_count": 2000000, "categories": [{ "id": "6013", "name": "Health & Fitness", "is_primary": true }],
      "extra": { "country": "GB", "bundle_id": "com.calm.calmapp", "developer": "Calm.com, Inc.", "price": 0.0 } }
  ],
  "meta": { "credits_used": 1, "cache_hit": false, "count": 10, "total": 50,
            "has_more": true, "next_cursor": "eyJ..." }
}

Every field is described in the response models. Successful responses also carry the X-Credits-Used header.

Cost

Search costs 1 credit per call, up to 20 apps (also when nothing matches). A search that matches nothing returns an empty list and costs 1 credit; errors cost nothing.

Only successful calls are billed: every error costs 0 credits. You get 30 free calls every month; see pricing for credit packs.

Errors

Errors come with an HTTP status and this JSON body: branch on detail.error, show detail.message to humans.

Example error
{
  "detail": {
    "error": "invalid_parameter",
    "message": "'usa' is not a valid ISO 3166-1 alpha-2 country code"
  }
}
HTTPerrorMeaning
400invalid_parameterA parameter is invalid: bad domain, stars, language or date, missing query, limit out of range...
401missing_api_keyNo API key in X-API-Key or Authorization: Bearer.
401invalid_api_keyThe key does not exist or has been revoked.
402insufficient_creditsYour credit balance is 0.
422invalid_cursorThe cursor is malformed, tampered with, or was created for other filters.
429rate_limit_exceededToo many requests per minute.
429insufficient_credits_retry_laterThe balance ran out on recent calls and the key is cooling down.
502upstream_changedThe source (Trustpilot, App Store or Google Play, named in the message) changed its format and the response could not be read.
503upstream_blockedThe source is temporarily blocking requests.
503feature_disabledThe endpoint is temporarily switched off by us (detail.feature names it). The call is not billed.
504upstream_timeoutThe source did not answer in time.

What to do for each code: error handling.

Use cases

  • Find the App Store id of an app from its name before reading its reviews.
  • List the apps that rank for a keyword in a country, with their ratings.

Related endpoints

  • App Store app GET /v1/appstore/apps/{app_id}: An iOS app in one country: rating, rating count, genres, description, developer, price, version.
  • App Store reviews GET /v1/appstore/apps/{app_id}/reviews: The reviews of an iOS app in one country, newest or most helpful first, with star and date filters.

ScrapeReviews is an independent service and is not affiliated with or endorsed by Apple.