DataForSEO Google Subdomains
https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/subdomains/liveList the subdomains of a domain with their ranked keyword counts, position distribution and estimated organic traffic in Google.
- 價格
- 自 $0.0132 起美元/次呼叫
- 方法
- POST
- 回應
- JSON
- 參數
- 0 個必填 · 4 個選填
Playground
您的輸出會顯示在這裡
完成輸入後,點擊執行。
API README
Google Subdomains API
Returns the subdomains of a domain that rank in Google, with organic and paid ranking metrics for each one. It needs a target domain, plus location_code and language_code to pick the market.
Use cases
- List every subdomain of a competitor and see which ones bring in the most estimated organic traffic.
- Compare a docs, help or community subdomain against the main site by ranked keyword count.
- Spot subdomains that have paid keywords and estimate their paid traffic cost.
- Check how many subdomains a domain has before you run deeper keyword research on one of them.
Request
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/subdomains/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{"target": "openai.com", "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": "subdomains",
"language_code": "en",
"limit": 10,
"location_code": 2840,
"se_type": "google",
"target": "openai.com"
},
"id": "11030829-1614-0384-0000-24d9323275c3",
"path": [
"v3"
],
"result": [
{
"items": [
{
"metrics": {
"featured_snippet": null,
"local_pack": null,
"organic": {
"clickstream_age_distribution": null,
"clickstream_etv": null,
"clickstream_gender_distribution": null,
"count": 261396,
"estimated_paid_traffic_cost": 5601238.468985448,
"etv": 18152867.130501848,
"is_down": 4415,
"is_lost": 0
},
"paid": {
"clickstream_age_distribution": null,
"clickstream_etv": null,
"clickstream_gender_distribution": null,
"count": 35,
"estimated_paid_traffic_cost": 11261.504961013794,
"etv": 384.7928841114044,
"is_down": 0,
"is_lost": 0
}
},
"se_type": "google",
"subdomain": "openai.com"
}
],
"items_count": 10,
"language_code": "en",
"location_code": 2840,
"se_type": "google",
"target": "openai.com",
"total_count": 29
}
],
"result_count": 1,
"status_code": 20000,
"status_message": "Ok.",
"time": "0.3705 sec."
}
],
"tasks_count": 1,
"tasks_error": 0,
"time": "0.3877 sec.",
"version": "0.1.20261022"
}
Response fields
| Field | Meaning |
|---|---|
tasks[].result[].total_count | Total number of subdomains found for the target. Compare it with items_count to see if more rows exist than were returned. |
tasks[].result[].items_count | Number of subdomain rows returned in this response. |
tasks[].result[].items[].subdomain | The subdomain hostname, for example help.openai.com. The root domain also appears as its own row. |
tasks[].result[].items[].metrics.organic.count | Number of keywords this subdomain ranks for in Google organic results. |
tasks[].result[].items[].metrics.organic.etv | Estimated organic traffic value (ETV) for the subdomain. Use it to rank subdomains by traffic. |
tasks[].result[].items[].metrics.organic.estimated_paid_traffic_cost | Estimated cost of buying the same organic traffic through paid ads. |
tasks[].result[].items[].metrics.organic.is_down / metrics.organic.is_lost | Counts of organic keywords that moved down in rank and keywords that were lost. |
tasks[].result[].items[].metrics.paid.count | Number of keywords this subdomain has paid results for. It is 0 when the subdomain has no paid keywords. |
tasks[].result[].items[].metrics.paid.etv / metrics.paid.estimated_paid_traffic_cost | Estimated paid traffic and its estimated cost for the subdomain. |
Notes
- Set
targetto a bare domain such asopenai.com, withouthttps://or a path. - Use
limitto control how many subdomains come back. Compareitems_countwithtotal_countto see if you got them all. - Fields such as
featured_snippet,local_packand theclickstream_*values can benullwhen no data exists for a subdomain.
Pricing
Billed at the actual cost of each call, about $0.0132 for the request above. Failed calls are not charged.
開始建置
送出您的第一個請求
具備統一驗證與用量追蹤的平台 API 端點。
curl -X POST "https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/subdomains/live" \
-H "Authorization: Bearer $SANDBASE_API_KEY" \
-H "Content-Type: application/json" \
-d '{
"limit": 10,
"target": "openai.com",
"language_code": "en",
"location_code": 2840
}'2. 驗證
請將您的 SandBase API 金鑰設定在伺服器環境中。請求使用 Bearer 驗證。
export SANDBASE_API_KEY="YOUR_API_KEY"請將金鑰保留在伺服器端,不要在瀏覽器程式碼中公開。
3. 參數
location_codeinteger
language_codestring
limitinteger
4. 回應
這是此 API 的已儲存範例回應;檢視時不會發出即時請求。
尚未發布已儲存回應。請在 Playground 中執行 API 以檢視其回應。
探索更多
相關 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 Subdomains API?
使用 POST 請求將您的 SandBase API 金鑰放在 Authorization 標頭(Bearer)中,並以 JSON 主體傳入參數,即可呼叫 https://api.sandbase.ai/v1/api/dataforseo/v3/dataforseo_labs/google/subdomains/live。您也可以直接在本頁的 Playground 試用,不必撰寫程式碼。
DataForSEO Google Subdomains API 的費用是多少?
每次起 $0.0132,並從您的 SandBase 餘額中扣款。您只會為實際發出的呼叫付費;沒有訂閱方案。
DataForSEO Google Subdomains API 接受哪些參數?
不需要任何參數。 選填:target (string), location_code (integer), language_code (string) 和 limit (integer)。 本頁的 Parameters 表格與 Playground 會列出每個欄位。
DataForSEO Google Subdomains API 會回傳什麼?
在同一個 HTTP 請求中回傳的 JSON 回應(同步)。 本頁的 README 包含範例回應。
我需要 DataForSEO 開發者帳號或 API 金鑰嗎?
不需要。DataForSEO Google Subdomains 是透過 SandBase 運作,因此一組 SandBase API 金鑰即可使用此端點以及目錄中的其他所有 API 和模型。您不需要另外申請 DataForSEO API 存取權。
