App Store search endpoint
https://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
| Parameter | Type | Default | Description |
|---|---|---|---|
| query | string | required | App name, developer or keyword (1-200 characters) |
| country | string | us | Store country, ISO 3166-1 alpha-2 (us, it, de...): the store to search |
| limit | integer 1-20 | 10 | Apps per response |
| cursor | string | - | 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
{ "data": Entity[], "meta": ListMeta }{
"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.
{
"detail": {
"error": "invalid_parameter",
"message": "'usa' is not a valid ISO 3166-1 alpha-2 country code"
}
}| HTTP | error | Meaning |
|---|---|---|
| 400 | invalid_parameter | A parameter is invalid: bad domain, stars, language or date, missing query, limit out of range... |
| 401 | missing_api_key | No API key in X-API-Key or Authorization: Bearer. |
| 401 | invalid_api_key | The key does not exist or has been revoked. |
| 402 | insufficient_credits | Your credit balance is 0. |
| 422 | invalid_cursor | The cursor is malformed, tampered with, or was created for other filters. |
| 429 | rate_limit_exceeded | Too many requests per minute. |
| 429 | insufficient_credits_retry_later | The balance ran out on recent calls and the key is cooling down. |
| 502 | upstream_changed | The source (Trustpilot, App Store or Google Play, named in the message) changed its format and the response could not be read. |
| 503 | upstream_blocked | The source is temporarily blocking requests. |
| 503 | feature_disabled | The endpoint is temporarily switched off by us (detail.feature names it). The call is not billed. |
| 504 | upstream_timeout | The 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.