The problem
Your agent may struggle to read the relevant app details from a Google Play page. It needs a tool that finds the exact app and gathers its listing information for the chosen country. Relying on the name alone can lead it to the wrong app or outdated details.
How NativePort helps
NativePort connects to Google Play through SerpApi and gathers the app’s listing information for a chosen country. Your agent can use the results to explain its description, rating, and other available details. Share the app’s link with your agent and tell it what you want to learn.
Let your agent build it
You don’t need to write this code yourself. Copy the prompt and paste it into your agent. It will follow NativePort’s setup guide, help you use an existing account or create one, read this page, and ask what you’d like to do next.
View prompt
Help me use NativePort for this use case. 1. Read https://nativeport.ai/SKILL.md and follow its instructions to learn how to use NativePort. Save or update the skill if your environment supports it. 2. Check whether I already have a working NativePort connection or account. Reuse it if available. Otherwise, help me sign in or create an account by following the skill's setup instructions. Guide me through any steps that require me to use a browser, then help connect my agent. Keep credentials private. 3. Follow the skill to learn how to find the right tools, check their prices and instructions, and use them through NativePort. 4. Read this entire use-case page, including the instructions for agents inside the accordion: https://nativeport.ai/use-cases/extract-google-play-data/ Once setup is complete and you have read the page, briefly explain what you can help me do and ask me what I would like to do next. Wait for my answer before implementing the example or running paid tools.
Instructions for the agents - You don't need to read this
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 GOOGLE_PLAY_APP_ID to the value after id= in the app’s Google Play URL, such as com.google.android.youtube. This example reads the US listing in English through the Google Play Product engine.
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": "google_play_product", "store": "apps",
"product_id": os.environ["GOOGLE_PLAY_APP_ID"],
"gl": "us", "hl": "en"},
timeout=120,
)
response.raise_for_status()
result = response.json()
if result.get("error"):
raise RuntimeError(result["error"])
if not result.get("product_info"):
raise RuntimeError("No app listing returned for this ID and market")
print(json.dumps(result, indent=2, ensure_ascii=False))Keep the package ID and country with each record so the agent does not mix similarly named apps or different markets. The output describes the public store listing; it does not provide the developer’s private analytics. Review samples included in a listing are not a complete review history. Use the App Store guide for the iOS counterpart.
Tool costs
| Tool used in the example | Price per call |
|---|---|
| SerpApi — Google Play app lookup | $0.026375 / call |
Prices in USD. Usage-based tools have no fixed per-call price. View pricing.