Use the authenticated DataSEO endpoint to search public Apple App Store listing data for a keyword. Send exactly one task object in a JSON array. The result is a bounded set of search observations, not a complete App Store database. A successful request costs $0.01 in API credit; failed requests are free.
Prepare one authenticated request
POST to https://dataseo.dev/api/v3/app_data/apple/app_listings/search/live. Keep DATASEO_API_KEY in server-side or tool credential storage and send it in the Authorization: Bearer header. The JSON body is an array containing exactly one task object. The accepted fields are keyword, location_code, language_code, limit and offset. This is authenticated API access to public listing data, not an unauthenticated endpoint.
DataSEO API contract · DataSEO agent integration instructions
Respect the input and request limits
The keyword must contain 1–200 characters. Limit must be an integer from 1 to 50 and offset an integer from 0 to 100. language_code must be en. location_code is an accepted field. The source enforces one Apple search request every four seconds. Client recommendation: validate input locally and space requests at least four seconds apart; stop on HTTP 402 rather than purchasing credit automatically.
DataSEO agent integration instructions · DataSEO API contract
Read app wrappers instead of page metadata
Check the HTTP response, root status_code and task status_code before using business fields. Read the first app wrapper at tasks[0].result[0].items[0]. The wrapper contains app_id and a nested item object. Page-analysis meta and checks paths belong to a different operation. Client recommendation: handle an empty items array explicitly rather than assuming at least one result. Handling empty results is client design guidance rather than a claim that the controlled example exercised every empty-result case.
DataSEO API contract · Controlled runtime and arithmetic checks
Inspect the controlled example
The self-authored fixture submitted keyword planner with limit 1 and supplied an injected synthetic Apple response to the current runtime. It returned a wrapper with app_id 123 and a nested Fixture Task Planner listing. This executed a controlled integration path without calling Apple, the production DataSEO API or billing. It proves the illustrated transformation for that fixture, not that the app exists or has any live search position. The reference code below uses the same minimal input shape but is not a recorded production execution.
Controlled runtime and arithmetic checks · DataSEO API contract
Handle an invalid limit before searching
A separate controlled case submitted keyword planner with limit 51. The runtime returned HTTP 400 with the message “Limit must be 1–50 and offset 0–100.” That response establishes validation behavior for the shown input. Correct the request before submitting it again. Under the billing policy, failed requests do not consume API credit.
Controlled runtime and arithmetic checks · DataSEO prepaid pricing
Estimate cost and choose the next step
Each successful App Store search consumes $0.01 of prepaid USD API credit. For example, $5 allocated entirely to this operation can cover 500 successful requests at the current rate. This is request arithmetic, not a promise of 500 unique apps or complete market coverage. Use the documented contract for implementation and the pricing navigation link for further information.
Server-side reference request; not a recorded live call
Server-side reference example. javascript
// Reference request only. No production call was executed for this article.
const key = process.env.DATASEO_API_KEY;
if (!key) throw new Error("Set DATASEO_API_KEY on your server");
const res = await fetch("https://dataseo.dev/api/v3/app_data/apple/app_listings/search/live", {
method: "POST",
headers: { Authorization: "Bearer " + key, "Content-Type": "application/json" },
body: JSON.stringify([{ keyword: "planner", limit: 1 }]),
});
if (res.status === 402) throw new Error("Insufficient credit: stop without automatic purchase.");
if (!res.ok) throw new Error("HTTP " + res.status);
const body = await res.json();
if (body.status_code !== 20000) throw new Error("Root response failed");
const task = body.tasks?.[0];
if (task?.status_code !== 20000) throw new Error("Task failed");
const items = task.result?.[0]?.items;
if (!Array.isArray(items)) throw new Error("Expected an items array");
if (items.length === 0) console.log("No items returned");
else console.log(items[0].app_id, items[0].item);
Limits and interpretation
- The search is not a full App Store database or export.
- The synthetic fixture does not establish current real app listings, rankings or store coverage.
- Client error and empty-result handling are implementation recommendations; only the named controlled cases were executed.
Sources and verification
Reviewed against first-party documentation and the current DataSEO implementation. Worked scenarios are illustrative unless explicitly identified otherwise. Reviewed 14 November 2026.
- DataSEO prepaid pricing
- DataSEO API contract
- Controlled runtime and arithmetic checks — Synthetic fixtures and pure calculations; no production request or payment was executed.
- DataSEO agent integration instructions
