NativePort
← All use cases

Read app listings from the Apple App Store

Give your agent an iOS app’s store description, rating, and product information for a selected country.

The problem

An iOS app’s store page is a changing source of product information. An agent may know the app’s name but still lack its current description, rating, or country-specific listing. A normal text prompt cannot retrieve that page or reliably match it to the correct app.

How NativePort helps

NativePort gives the agent access to SerpApi’s App Store product lookup. Supply the numeric app ID and country, and receive the listing in structured form. The agent can compare the returned information with another app or explain it while retaining the store link.

Technical implementation

Use Python 3 with requests installed (python -m pip install requests). Set NATIVEPORT_API_KEY in your environment to your NativePort key. Run the snippets on your server, where your key stays private.

Set APP_STORE_APP_ID to the numeric identifier after id in the App Store URL, such as 422689480. This example reads one US listing using the Apple Product engine.

python
import json
import os
import requests

BASE = "https://api.nativeport.ai"
HEADERS = {"Authorization": f"Bearer {os.environ['NATIVEPORT_API_KEY']}"}

response = requests.get(
    BASE + "/serpapi",
    headers=HEADERS,
    params={"engine": "apple_product", "type": "app",
            "product_id": os.environ["APP_STORE_APP_ID"], "country": "us"},
    timeout=120,
)
response.raise_for_status()
result = response.json()
if result.get("error"):
    raise RuntimeError(result["error"])
if not result.get("title"):
    raise RuntimeError("No app listing returned for this ID and country")
print(json.dumps(result, indent=2, ensure_ascii=False))

Store the numeric ID and country with the result. Descriptions, prices, and availability may differ across storefronts. Public ratings do not reveal private installation or revenue data. This example retrieves the product page, not the complete review history. For an Android listing, follow the Google Play guide.

Tool costs

Tool used in the examplePrice per call
SerpApi — Apple App Store product lookup $0.026375 / call

Prices in USD. Usage-based tools have no fixed per-call price. View pricing.

Let your agent build it

You don’t need to write this code yourself. Copy this page’s link and paste it into your agent. Ask it to follow the guide and implement the feature for you.