hlstring
Storefront language, such as en, de, or zh-TW. Maximum 32 characters.
ค่าเริ่มต้น: "en"
https://api.sandbase.ai/v1/api/google-play/gamesSearch Google Play games by keyword or browse game categories and top charts.
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
This API returns Google Play games that match a keyword, a game category, or a top chart. Send a search term in q, or use chart or games_category to browse. Each result lists the game's developer, category, download band, price, and rating.
topselling_free or topgrossing chart for a country.GAME_PUZZLE to see who publishes them.product_id values to feed into a details or reviews lookup.curl -X POST "https://api.sandbase.ai/v1/api/google-play/games" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"q": "chess"}'
The result is returned in outputs[0].data.
| Name | Type | Required | Description |
|---|---|---|---|
chart | string | No | Chart identifier such as topselling_free, topselling_paid, or topgrossing. Excludes q and all pagination selectors. Apps and games charts require phone or an omitted store_device. |
games_category | string | No | Native game category identifier, such as GAME_PUZZLE. Excludes q and an explicit store_device. |
gl | string | No | Two-letter country code. |
hl | string | No | Storefront language, such as en, de, or zh-TW. Maximum 32 characters. |
next_page_token | string | No | Use the returned next_page_token with the same parameters. Excludes chart, section_page_token, and see_more_token. |
q | string | No | At most 2,048 UTF-8 bytes. |
section_page_token | string | No | Continue one result group using its returned token and the same parameters. Excludes the other pagination selectors and chart. |
see_more_token | string | No | Open a result collection using its returned token and the same parameters. Excludes the other pagination selectors and chart. |
store_device | string | No | Omit for the default phone storefront. An explicit selection excludes q and category. |
timeout | number | No | Optional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the cal |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"organic_results": [
{
"items": [
{
"author": "Chess.com",
"category": "Board",
"currency": "USD",
"downloads": "100,000,000+",
"extracted_price": 0.0,
"link": "https://play.google.com/store/apps/details?id=com.chess",
"product_id": "com.chess",
"rating": 4.6958847
}
]
}
]
}
| Field | Meaning |
|---|---|
organic_results[].items[] | One game result. Results are grouped in lists under organic_results. |
organic_results[].items[].product_id | The app package name, such as com.chess. It is also the id value in the link URL. |
organic_results[].items[].link | URL of the game's Google Play store page. |
organic_results[].items[].author | Name of the developer or publisher shown for the game. |
organic_results[].items[].category | Game category label, such as Board. |
organic_results[].items[].downloads | Download band shown on the store, as text such as 100,000,000+. |
organic_results[].items[].extracted_price / organic_results[].items[].currency | Price as a number and its currency code. A value of 0.0 means the game has no purchase price. |
organic_results[].items[].rating | Average star rating as a decimal number. Some games have no rating field. |
organic_results[].items[].description | Short store description, cut off with an ellipsis. It appears only on some results. |
q, chart, or games_category. The parameter descriptions say chart and games_category exclude q.next_page_token with the same parameters. section_page_token and see_more_token work the same way for a result group or collection.product_id to Google Play Product Details for full details, or to Google Play Reviews for user reviews.$0.00015 per successful call. Failed calls are not charged. It is included in the daily free quota of each organization.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/google-play/games" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"q": "chess",
"gl": "us",
"hl": "en"
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
hlstringStorefront language, such as en, de, or zh-TW. Maximum 32 characters.
ค่าเริ่มต้น: "en"
glstringTwo-letter country code.
ค่าเริ่มต้น: "us"
qstringAt most 2,048 UTF-8 bytes.
chartstringChart identifier such as topselling_free, topselling_paid, or topgrossing. Excludes q and all pagination selectors. Apps and games charts require phone or an omitted store_device.
next_page_tokenstringUse the returned next_page_token with the same parameters. Excludes chart, section_page_token, and see_more_token.
section_page_tokenstringContinue one result group using its returned token and the same parameters. Excludes the other pagination selectors and chart.
see_more_tokenstringOpen a result collection using its returned token and the same parameters. Excludes the other pagination selectors and chart.
games_categorystringNative game category identifier, such as GAME_PUZZLE. Excludes q and an explicit store_device.
store_devicestringOmit for the default phone storefront. An explicit selection excludes q and category.
ค่าที่เป็นไปได้: phone, tablet, tv, chromebook, watch, windows
timeoutnumberOptional budget for the entire request in seconds, measured from gateway receipt until the response is ready to send. Includes admission, queueing and settlement. Must be greater than 0 and at most 90. On expiry, the call is not billed and returns 503 request_deadline_exceeded with retryable=true an
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
Google Play Games SearchAPI นี้ Google Play | $0.00015 ต่อการเรียก | JSON |
Google Play | $0.00015 ต่อการเรียก | JSON |
Google Play | $0.00015 ต่อการเรียก | JSON |
Google Play | $0.00015 ต่อการเรียก | Async JSON |
Google Play | $0.00015 ต่อการเรียก | JSON |
Google Play | $0.00015 ต่อการเรียก | Async JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/google-play/games โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
$0.00015 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: hl (string), gl (string), q (string), chart (string), next_page_token (string) และ section_page_token (string) และอีก 4 รายการ ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น Google Play Games Search ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง Google Play API แยกต่างหาก