keywordstring
Search query.
https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/keyword_suggestions/liveReturns Google keyword suggestions alongside relevant search metrics from DataForSEO Labs. Enables discovery of related search terms and query opportunities.
[
{
"cost": 0,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0,
"data": {
"api": "dataforseo_labs",
"function": "keyword_suggestions",
"se_type": "google"
},
"id": "08200930-2190-0399-0000-84845f452c7b",
"path": [
"v3",
"dataforseo_labs",
"google",
"… 2 more items in the full response"
],
"result": null,
"result_count": 0,
"status_code": 40503,
"status_message": "POST Data Is Invalid.",
"time": "0 sec."
}
],
"tasks_count": 1,
"tasks_error": 1,
"time": "0.0082 sec.",
"version": "0.1.20260806"
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Long-tail keyword suggestions that contain your seed keyword, each with search volume, CPC, competition, keyword difficulty and search intent, from the DataForSEO Labs database.
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/keyword_suggestions/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keyword": "running shoes", "limit": 5, "location_code": 2840, "language_code": "en"}'
For a completed SandBase response, read the provider payload from outputs[0].data. Check provider task status before using the result.
| Name | Type | Required | Description |
|---|---|---|---|
keyword | string | No | Search query. |
language_code | string | No | Language code, e.g. "en". |
limit | integer | No | Maximum number of results (up to 100). |
location_code | integer | No | Location code, e.g. 2840 for the United States. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"status_code": 20000,
"tasks": [
{
"status_code": 20000,
"result": [
{
"se_type": "google",
"location_code": 2840,
"language_code": "en",
"total_count": 87287,
"items_count": 5,
"items": [
{
"keyword": "sneaker running shoes",
"keyword_info": {
"search_volume": 301000,
"cpc": 1.09,
"competition": 1,
"competition_level": "HIGH",
"low_top_of_page_bid": 0.47,
"high_top_of_page_bid": 2.17
},
"keyword_properties": {
"keyword_difficulty": 43,
"core_keyword": "sneakers shoes running"
},
"search_intent_info": {
"main_intent": "transactional"
}
}
]
}
]
}
]
}
| Field | Meaning |
|---|---|
tasks[].result[].items[] | One row per keyword. |
keyword | The keyword. |
keyword_info.search_volume | Average monthly Google searches (last 12 months). |
keyword_info.cpc / competition_level | Average cost per click in USD and Google Ads competition (LOW/MEDIUM/HIGH). |
keyword_info.monthly_searches[] | Searches per month for the last 12 months. |
keyword_properties.keyword_difficulty | Ranking difficulty 0-100 for the top 10 organic results. |
search_intent_info.main_intent | informational, navigational, commercial or transactional. |
total_count | Matching keywords in the database; page with offset. |
limit is capped at 100 per call; page with offset.Billed at the actual cost of each call, about $0.0126 for the request above. Failed calls are not charged.
Use Keyword Suggestions when you have a topic and want candidate queries from the DataForSEO Labs database. Start with keyword, limit, location_code and language_code: for example, running shoes, 5, 2840 and en. The last two select the United States and English; choose the market and language you actually want to study. The current SandBase field description caps limit at 100. A larger limit is not a guarantee of more relevant or available results.
The current schema exposes these four fields and allows additional properties; it is no longer an empty input form. Advanced filters and pagination need their own validation against the current endpoint and provider documentation. This first request does not automatically fetch more pages. Search volume and difficulty are research estimates, not predictions of your clicks or revenue.
If you already have a competitor domain instead, inspect Ranked Keywords.
Already have a SandBase key? Keep it in the local SANDBASE_API_KEY environment variable and use the API tab's POST route with Bearer authentication. Already connected your agent? Ask it to inspect this endpoint, show the input and pricing, then make only the request you approve. For a new project, give your agent the setup Skill, this endpoint URL and your research question. The Markdown quickstart explains the setup paths without putting a secret into a shared prompt.
Pricing checked on 2026-11-08: the listed base price is $0.0126, while the pricing formula is usage.provider_reported_cost. The base price is not a fixed total for every request, and multiplying it by the keyword count is not a supported quote. Inspect current pricing before execution and check the actual billing record afterward. This review did not run a paid query or verify free-quota eligibility for these endpoints.
For a completed SandBase call, read the documented outputs[0].data payload. Then check DataForSEO's overall and per-task status before using tasks[].result[]. HTTP 200 alone does not mean usable results. The reference sample illustrates provider-shaped data, not a guarantee that every field or row will be present; missing values are unknown, not zero. See the Python keyword-research guide for a single-request example and the separately dated historical workflow.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/keyword_suggestions/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 5,
"keyword": "running shoes",
"language_code": "en",
"location_code": 2840
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
keywordstringSearch query.
limitintegerMaximum number of results (up to 100).
location_codeintegerLocation code, e.g. 2840 for the United States.
language_codestringLanguage code, e.g. "en".
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"cost": 0,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0,
"data": {
"api": "dataforseo_labs",
"function": "keyword_suggestions",
"se_type": "google"
},
"id": "08200930-2190-0399-0000-84845f452c7b",
"path": [
"v3",
"dataforseo_labs",
"google",
"… 2 more items in the full response"
],
"result": null,
"result_count": 0,
"status_code": 40503,
"status_message": "POST Data Is Invalid.",
"time": "0 sec."
}
],
"tasks_count": 1,
"tasks_error": 1,
"time": "0.0082 sec.",
"version": "0.1.20260806"
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
DataForSEO | เริ่มต้นที่ $0.0126 ต่อครั้ง | JSON |
DataForSEO | เริ่มต้นที่ $0.0102 ต่อครั้ง | JSON |
DataForSEO | เริ่มต้นที่ $0.000724 ต่อครั้ง | JSON |
DataForSEO | $0.004 ต่อการเรียก | JSON |
DataForSEO | เริ่มต้นที่ $0.00162 ต่อครั้ง | JSON |
DataForSEO | เริ่มต้นที่ $0.001105 ต่อครั้ง | JSON |
คำถาม
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/keyword_suggestions/live โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.0126 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: keyword (string), limit (integer), location_code (integer) และ language_code (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น DataForSEO Labs Google Keyword Suggestions ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง DataForSEO API แยกต่างหาก
ส่ง keyword เดียว พร้อม location_code, language_code และ limit ที่เล็ก ตัวอย่างเช่น running shoes กับ 2840, en และ 5 จะขอข้อมูลตัวอย่างภาษาอังกฤษของสหรัฐอเมริกา ฟอร์มปัจจุบันเปิดเผยสี่ฟิลด์และอธิบายว่า limit ได้สูงสุด 100; อนุญาตพร็อพเพอร์ตี้เพิ่มเติมได้ แต่ตัวเลือกขั้นสูงต้องมีการตรวจสอบแยกต่างหาก
ไม่ใช่ เมื่อ 2026-11-08 ราคาพื้นฐานคือ $0.0126 และสูตรคือ usage.provider_reported_cost. ตรวจสอบราคาปัจจุบันก่อนดำเนินการ และตรวจบันทึกการเรียกเก็บเงินหลังจากนั้น นี่คือการทบทวนแค็ตตาล็อก ไม่ใช่การทดสอบแบบมีการเรียกเก็บเงินหรือการรับประกันว่าเรียกได้ฟรี
ไม่ใช่ ให้อ่าน outputs[0].data จากการตอบกลับ SandBase ที่เสร็จสมบูรณ์ แล้วตรวจสอบ overall และ task statuses ของ DataForSEO รวมถึงโครงสร้างผลลัพธ์ เก็บค่าที่หายไปเป็น unknown ปริมาณและความยากเป็นค่าประมาณสำหรับการวิจัย ไม่ใช่การคาดการณ์ทราฟฟิก