DataForSEO Google Relevant Pages
https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/relevant_pages/liveList a domain's pages that rank in Google, with the keywords, positions, estimated traffic and SERP features each page earns.
- ราคา
- เริ่มต้นที่ $0.0132USD / คำขอ
- Method
- POST
- การตอบกลับ
- JSON
- พารามิเตอร์
- 0 จำเป็น · 4 ไม่บังคับ
Playground
เอาต์พุตของคุณจะแสดงที่นี่
กรอกอินพุตให้ครบ แล้วคลิก Run
API README
Google Relevant Pages API
This API lists pages of a domain that rank in Google for a chosen country and language. For each page it returns the number of ranking keywords and the estimated traffic from organic and paid results. It needs a target domain, a location_code and a language_code.
Use cases
- Find which pages on your site bring in the most estimated organic traffic.
- Compare the top ranking pages of a competitor domain with your own.
- Spot pages that have lost rankings by checking the
is_lostandis_downcounts. - Build a content audit list of every page that ranks in Google for a given market.
Request
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/relevant_pages/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"target": "sandbase.ai", "location_code": 2840, "language_code": "en", "limit": 10}'
The result is returned in outputs[0].
Parameters
| Name | Type | Required | Description |
|---|---|---|---|
language_code | string | No | |
limit | integer | No | |
location_code | integer | No | |
target | string | No |
Example response
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": "dataforseo_labs",
"function": "relevant_pages",
"language_code": "en",
"limit": 10,
"location_code": 2840,
"se_type": "google",
"target": "sandbase.ai"
},
"id": "11030828-2190-0385-0000-b1f9f1f92114",
"path": [
"v3"
],
"result": [
{
"items": [
{
"metrics": {
"featured_snippet": null,
"local_pack": null,
"organic": {
"clickstream_age_distribution": null,
"clickstream_etv": null,
"clickstream_gender_distribution": null,
"count": 7,
"estimated_paid_traffic_cost": 4.855564475059509,
"etv": 3.6234274385496974,
"is_down": 0,
"is_lost": 0
},
"paid": {
"clickstream_age_distribution": null,
"clickstream_etv": null,
"clickstream_gender_distribution": null,
"count": 0,
"estimated_paid_traffic_cost": 0,
"etv": 0,
"is_down": 0,
"is_lost": 0
}
},
"page_address": "https://www.sandbase.ai/model/instagram/v3/user-id-by-username",
"se_type": "google"
}
],
"items_count": 10,
"language_code": "en",
"location_code": 2840,
"se_type": "google",
"target": "sandbase.ai",
"total_count": 101
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "0.3039 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "0.3130 sec.",
"version": "0.1.20261022"
}
Response fields
| Field | Meaning |
|---|---|
tasks[].result[].items[].page_address | Full URL of a page on the target domain that ranks in Google. |
tasks[].result[].items[].metrics.organic.count | Number of organic results the page has in this location and language. |
tasks[].result[].items[].metrics.organic.etv | Estimated traffic value of the page from organic results. |
tasks[].result[].items[].metrics.organic.estimated_paid_traffic_cost | Estimated cost to buy the same organic traffic through paid ads. |
tasks[].result[].items[].metrics.organic.is_down / tasks[].result[].items[].metrics.organic.is_lost | Counts of organic results that moved down or dropped out of the rankings. |
tasks[].result[].items[].metrics.paid.count / tasks[].result[].items[].metrics.paid.etv | Same measures for paid results. They are 0 for the pages in this sample. |
tasks[].result[].items[].metrics.featured_snippet / tasks[].result[].items[].metrics.local_pack | Metrics for these SERP features. The value is null when the page has none. |
tasks[].result[].total_count | Total number of ranking pages found for the target. |
tasks[].result[].items_count | Number of pages returned in this response. |
Notes
- Pass the domain in
targetwithout a path. Setlocation_code(for example2840) andlanguage_code(for exampleen) to choose the market. - Use
limitto set how many pages come back. Compareitems_countwithtotal_countto see whether more pages exist. - The
clickstream_*fields arenullin this response.
Pricing
Billed at the actual cost of each call, about $0.0132 for the request above. Failed calls are not charged.
เริ่มสร้าง
ส่งคำขอแรกของคุณ
เอ็นด์พอยต์ของ Platform API ที่มีการยืนยันตัวตนและการติดตามการใช้งานแบบรวมศูนย์
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/relevant_pages/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 10,
"target": "sandbase.ai",
"language_code": "en",
"location_code": 2840
}'2. การยืนยันตัวตน
ตั้งค่า SandBase API key ของคุณในสภาพแวดล้อมฝั่งเซิร์ฟเวอร์ คำขอจะใช้การยืนยันตัวตนแบบ Bearer
export SANDBASE_API_KEY="YOUR_API_KEY"เก็บ key ไว้บนเซิร์ฟเวอร์ อย่าเปิดเผยในโค้ดฝั่งเบราว์เซอร์
3. พารามิเตอร์
location_codeinteger
language_codestring
limitinteger
4. การตอบกลับ
บันทึกตัวอย่างการตอบกลับสำหรับ API นี้; จะไม่มีการส่งคำขอจริงเมื่อเปิดดู
ยังไม่มีการเผยแพร่การตอบกลับที่บันทึกไว้ ให้รัน API ใน Playground เพื่อดูการตอบกลับ
สำรวจเพิ่มเติม
APIs ที่เกี่ยวข้อง
| API | ราคา | การตอบกลับ |
|---|---|---|
DataForSEO | เริ่มต้นที่ $0.0132 ต่อครั้ง | JSON |
DataForSEO | เริ่มต้นที่ $0.0102 ต่อครั้ง | JSON |
DataForSEO | เริ่มต้นที่ $0.000724 ต่อครั้ง | JSON |
DataForSEO | $0.004 ต่อการเรียก | JSON |
DataForSEO | เริ่มต้นที่ $0.00162 ต่อครั้ง | JSON |
DataForSEO | เริ่มต้นที่ $0.001105 ต่อครั้ง | JSON |
คำถาม
คำถามที่พบบ่อย
ฉันจะใช้ DataForSEO Google Relevant Pages API ได้อย่างไร?
ส่งคำขอ POST ไปที่ https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/relevant_pages/live โดยใส่ SandBase API key ของคุณใน Authorization header (Bearer) และส่งพารามิเตอร์เป็น JSON body คุณยังสามารถลองใช้ได้ใน Playground บนหน้านี้โดยไม่ต้องเขียนโค้ด
DataForSEO Google Relevant Pages API ราคาเท่าไร?
เริ่มต้นที่ $0.0132 ต่อครั้ง คิดจากยอดคงเหลือ SandBase ของคุณ คุณจะถูกเรียกเก็บเฉพาะคำขอที่คุณส่งเท่านั้น ไม่มีค่าสมาชิกรายเดือน
DataForSEO Google Relevant Pages API รับพารามิเตอร์อะไรบ้าง?
ไม่ต้องระบุพารามิเตอร์ ตัวเลือก: target (string), location_code (integer), language_code (string) และ limit (integer). ตาราง Parameters และ Playground ในหน้านี้แสดงทุกฟิลด์
DataForSEO Google Relevant Pages API ส่งคืนอะไร?
การตอบกลับ JSON ที่ส่งกลับในคำขอ HTTP เดียวกัน (แบบซิงโครนัส) README บนหน้านี้มีตัวอย่างการตอบกลับ
ฉันจำเป็นต้องมีบัญชีนักพัฒนาหรือ API key ของ DataForSEO ไหม?
ไม่จำเป็น DataForSEO Google Relevant Pages ทำงานผ่าน SandBase ดังนั้น SandBase API key เดียวครอบคลุม endpoint นี้และทุก API กับโมเดลอื่นในแค็ตตาล็อก คุณไม่ต้องสมัครขอสิทธิ์เข้าถึง DataForSEO API แยกต่างหาก
