100 free credits. No credit card required. Get a key

App Store storefronts API

Every App Store storefront: country code, name and storefront id.

GET /v1/appstore/locations1 credit per callRefunded on failure
import os, requests

res = requests.get(
    "https://api.groundsocial.dev/v1/appstore/locations",
    headers={"Authorization": f"Bearer {os.environ['GROUNDSOCIAL_API_KEY']}"},
)
res.raise_for_status()
data = res.json()
Response
200 · 1 credit
{
"locations": [
{
"country": "US",
"name": "United States",
"storefront_id": 143441
},
{
"country": "FR",
"name": "France",
"storefront_id": 143442
},
"… 108 more"
]
}

Parameters

NameTypeDescription
location_typequery"country" | "all"country (default) or all. One of country, all.
Response fields

200 with a AppStoreLocations, in Apple’s own iTunes Search and Lookup JSON.

FieldTypeDescription
locationsobject[]
Status codes
StatusMeaning
200Storefronts.
400Invalid input. Nothing was charged.
401Missing or invalid API key.
402Not enough credits, a spend cap was reached, or payment is required.
403The target is private, or the account is suspended.
404The app does not exist in that storefront.
429Too many requests. Wait for Retry-After seconds.
503App Store is temporarily unavailable. Retryable; nothing was charged.

Every error has code, message, hint and retryable. All error codes

App Store is a trademark of Apple Inc. We are not affiliated with or endorsed by Apple.