API Google Play
Récupérez des données structurées depuis le Google Play Store. Définissez engine=google_play et utilisez type=product avec un product_id pour récupérer une seule fiche, ou type=search avec une requête q pour effectuer une recherche dans le store.
Endpoint
Section intitulée « Endpoint » GET https://serp.shifter.io/v1?engine=google_play&api_key=YOUR_API_KEY
Paramètres
Section intitulée « Paramètres »| Paramètre | Type | Obligatoire | Description |
|---|---|---|---|
api_key | string | oui | Votre clé API SERP |
engine | string | oui | Doit être google_play |
type | string | oui | search ou product |
store | string | oui | apps ou books |
product_id | string | conditionnel | Requis lorsque type=product. Le package Play Store ou l’ID du livre |
q | string | conditionnel | Requis lorsque type=search. La requête de recherche |
hl | string | non | Code de langue de l’interface |
gl | string | non | Code pays |
Exemple de requête
Section intitulée « Exemple de requête »curl "https://serp.shifter.io/v1?engine=google_play&api_key=YOUR_API_KEY&type=product&store=apps&product_id=com.kiloo.subwaysurf"import requests
params = { "engine": "google_play", "api_key": "YOUR_API_KEY", "type": "product", "store": "apps", "product_id": "com.kiloo.subwaysurf",}r = requests.get("https://serp.shifter.io/v1", params=params)data = r.json()import fetch from 'node-fetch';
const url = 'https://serp.shifter.io/v1?' + new URLSearchParams({ engine: 'google_play', api_key: 'YOUR_API_KEY', type: 'product', store: 'apps', product_id: 'com.kiloo.subwaysurf',});const data = await (await fetch(url)).json();Exemple de réponse
Section intitulée « Exemple de réponse »{ "search_parameters": { "engine": "google_play", "type": "product", "store": "apps", "product_id": "com.kiloo.subwaysurf" }, "product_info": { "title": "Subway Surfers", "developer": "SYBO Games", "rating": 4.5, "reviews": 41230000, "downloads": "1B+", "description": "DASH as fast as you can! ..." }, "media": { "icon": "https://play-lh.googleusercontent.com/..." }}