Guide
How to Check Your App Store Ranking With the iTunes Search API
To check your App Store ranking with the iTunes Search API, request https://itunes.apple.com/search with your keyword as term, a two-letter country, media=software, entity=software and limit=200, then find your app's trackId in the returned results array. Its 1-based position in that array is your rank for that keyword in that storefront.
Updated
What you need
- Your app's numeric ID. It is the number after
idin the App Store URL: inapps.apple.com/us/app/streakly/id1234567890the ID is1234567890. The hypothetical app Streakly is used below. - Node 18 or later, which has
fetchbuilt in. Any language that can make an HTTPS request and parse JSON works the same way. - The keywords and countries you want to check.
Step 1: Build the request
Apple documents these parameters: term is required and URL-encoded, country is a two-letter ISO code that defaults to US, media and entity choose the content type, and limit takes 1 to 200 with a default of 50 (Apple: iTunes Search API). For apps use media=software; the documented software entities are software, iPadSoftware and desktopSoftware, and the iPad guide shows when the second one matters.
Always set country. If you leave it out you get the US storefront, which is easy to forget when you check a German keyword. Set limit=200, because a rank below 50 is still useful information and the default would hide it.
Step 2: Run this script
Save it as rank-check.mjs and run node rank-check.mjs:
const APP_ID = "1234567890"; // your app's numeric ID
const TERMS = ["habit tracker", "streak counter"];
const COUNTRIES = ["us", "gb", "de"];
const sleep = (ms) => new Promise((r) => setTimeout(r, ms));
async function rank(term, country) {
const params = new URLSearchParams({ term, country, media: "software", entity: "software", limit: "200" });
const res = await fetch(`https://itunes.apple.com/search?${params}`);
if (!res.ok) throw new Error(`HTTP ${res.status} for "${term}" in ${country}`);
const { resultCount, results } = await res.json();
const i = results.findIndex((app) => String(app.trackId) === APP_ID);
return i === -1 ? `not in ${resultCount} results` : `#${i + 1} of ${resultCount}`;
}
for (const country of COUNTRIES) {
for (const term of TERMS) {
console.log(country, term, await rank(term, country));
await sleep(3500); // about 17 calls a minute
}
}
A run prints one line per keyword and country, for example us habit tracker #14 of 193. The resultCount matters: in a check run on 2026-11-20 a limit=200 request for a common phrase in the US returned 193 apps, not 200. So "not found" means "not among the apps the API returned", which is what LocalASO shows as "200+".
Step 3: Stay under the rate limit
Apple states the API is limited to approximately 20 calls per minute, subject to change, and recommends caching for search and lookup requests. The script above waits 3.5 seconds between calls. Three keywords in three countries is nine calls, about 32 seconds. Twenty keywords in ten countries is 200 calls, about 12 minutes, so store the answers instead of asking twice: keep a file keyed by term, country and date, and skip a call when you already have today's value. If a response is not OK, wait and retry later instead of looping.
Step 4: Know what one number can and cannot say
| The API shows | It does not show |
|---|---|
| Ordered list of apps for a term and storefront | Ads, editorial cards, In-App Events or app tags that the store page may add |
| App name, ratings count, price, ID | Subtitle and keyword field (the response has neither) |
| One snapshot at the time of the call | Your rank for a signed-in user with a history |
Rating counts lag behind current popularity, and results vary by device, account, time and personalization. Treat the API rank as a consistent yardstick, not as a promise of what every person sees. Check one keyword by hand in the App Store on a phone and confirm your position is close. For the day-to-day routine, see tracking keyword rankings over time, and for what the store page adds around the list, see the anatomy of search results.
Where to go next
If you need app details instead of a ranked list, the Lookup API guide shows which fields come back. To log the numbers on a schedule on your own Mac, use the Mac rank-tracking routine. The rate limit answer lists every parameter.
In LocalASO
LocalASO does this for you across up to 52 storefronts: it reads the same public search results, keeps its own limiter and a 6-hour cache, and stores a daily history on your Mac. Volume and difficulty on the board are estimates from rating counts, not Apple counts. See the keyword research docs.
Questions
- Do I need an API key for the iTunes Search API?
- No. Apple's documentation describes a public URL with parameters and no key. Apple states the service is limited to approximately 20 calls per minute.
- Why is my app not in the results even though it is live?
- The API returns at most the limit you set (1 to 200), and it can return fewer. If your app is not among the returned apps, treat the rank as unranked for that term and country, and check that you used the right storefront code.
Sources
- Apple: performance-partners.apple.com/search-api (checked November 1, 2026)
- itunes.apple.com/search?term=habit+tracker&country=us&media=software&entity=software&limit=200 (live call, 2026-11-20) (checked November 20, 2026)
- itunes.apple.com/search (live calls, 2026-11-20) (checked November 20, 2026)
Do this for every country, in minutes