keywordsarray
Up to 5 keywords to compare.
https://api.sandbase.ai/v1/api/dataforseo/v3/keywords_data/google_trends/explore/liveGet Google Trends interest over time for up to 5 keywords by location, language and time range, with weekly values on a 0–100 scale.
[
{
"cost": 0,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0,
"data": {
"api": "keywords_data",
"function": "explore",
"se": "google_trends"
},
"id": "08200931-2190-0173-0000-a76c72bf7e00",
"path": [
"v3",
"keywords_data",
"google_trends",
"… 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.0089 sec.",
"version": "0.1.20260806"
}
]เลือกตัวอย่างเพื่อโหลดอินพุตและผลลัพธ์ลงใน playground
Returns Google Trends interest over time for up to 5 keywords. You send keywords, location_code and language_code, and optionally a time_range. The response lists weekly values on a 0 to 100 scale for each keyword.
running shoes before planning a content calendar.check_url link to see the same chart on trends.google.com.curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/keywords_data/google_trends/explore/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"keywords": ["running shoes"], "location_code": 2840, "language_code": "en"}'
The result is returned in outputs[0].
| Name | Type | Required | Description |
|---|---|---|---|
keywords | array | No | Up to 5 keywords to compare. |
language_code | string | No | Language code, e.g. "en". |
location_code | integer | No | DataForSEO location code, e.g. 2840 for the United States. |
time_range | string | No | Preset range, e.g. past_hour, past_day, past_7_days, past_30_days, past_90_days, past_12_months, past_5_years. |
Real response for the request above, trimmed: lists keep their first item and long strings are cut.
{
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"data": {
"api": "keywords_data",
"function": "explore",
"keywords": [
"running shoes"
],
"language_code": "en",
"location_code": 2840,
"se": "google_trends"
},
"id": "11030829-1614-0173-0000-6ef58a74867e",
"path": [
"v3"
],
"result": [
{
"check_url": "https://trends.google.com/trends/explore?hl=en&geo=US&date=2025-11-03%202026-11-…",
"datetime": "2026-11-03 08:29:26 +00:00",
"items": [
{
"averages": [],
"data": [
{
"date_from": "2025-11-02",
"date_to": "2025-11-08",
"missing_data": false,
"timestamp": 1762041600,
"values": [
17
]
}
],
"keywords": [
"running shoes"
],
"position": 1,
"title": null,
"type": "google_trends_graph"
}
],
"items_count": 1,
"keywords": [
"running shoes"
],
"language_code": "en",
"location_code": 2840,
"type": "trends"
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "5.1526 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "5.1698 sec.",
"version": "0.1.20261022"
}
| Field | Meaning |
|---|---|
tasks[].result[].items[].data[].values | Interest values for that week. The list holds one number per keyword, in the same order as the request keywords. |
tasks[].result[].items[].data[].date_from / date_to | First and last day of the weekly period, in YYYY-MM-DD format. |
tasks[].result[].items[].data[].timestamp | Unix timestamp for the start of the period. |
tasks[].result[].items[].data[].missing_data | true when Google Trends has no value for that period. |
tasks[].result[].items[].keywords | Keywords that the graph item covers. |
tasks[].result[].items[].type | Type of the item. The value google_trends_graph marks the interest-over-time chart. |
tasks[].result[].check_url | Link to the same query on trends.google.com. |
tasks[].result[].datetime | Date and time when the result was produced, in UTC. |
tasks[].result[].items_count | Number of items in the result. |
time_range with a preset such as past_12_months or past_5_years to change the window. The sample request left it out.location_code takes a numeric code, for example 2840 for the United States. language_code takes a code such as en.tasks[].status_code and tasks[].status_message for the status of each task. 20000 with Ok. means success.Billed at the actual cost of each call, about $0.011 for the request above. Failed calls are not charged.
เริ่มสร้าง
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/keywords_data/google_trends/explore/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"keywords": [
"running shoes"
],
"language_code": "en",
"location_code": 2840
}'ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
keywordsarrayUp to 5 keywords to compare.
location_codeintegerDataForSEO location code, e.g. 2840 for the United States.
language_codestringLanguage code, e.g. "en".
time_rangestringPreset range, e.g. past_hour, past_day, past_7_days, past_30_days, past_90_days, past_12_months, past_5_years.
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
[
{
"cost": 0,
"status_code": 20000,
"status_message": "Ok.",
"tasks": [
{
"cost": 0,
"data": {
"api": "keywords_data",
"function": "explore",
"se": "google_trends"
},
"id": "08200931-2190-0173-0000-a76c72bf7e00",
"path": [
"v3",
"keywords_data",
"google_trends",
"… 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.0089 sec.",
"version": "0.1.20260806"
}
]สำรวจเพิ่มเติม
| API | ราคา | การตอบกลับ |
|---|---|---|
DataForSEO Google TrendsAPI นี้ DataForSEO | เริ่มต้นที่ $0.011 ต่อครั้ง | 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/keywords_data/google_trends/explore/live โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
เริ่มต้นที่ $0.011 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: keywords (array), location_code (integer), language_code (string) และ time_range (string). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ไม่จำเป็น DataForSEO Google Trends ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง DataForSEO API แยกต่างหาก