Setting ‘Keyword Suggestions For URL’ Tasks
curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"language_name": "<string>",
"target": "<string>",
"exclude_brands": true,
"language_code": "<string>"
}
]
'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post"
payload = [
{
"language_name": "<string>",
"target": "<string>",
"exclude_brands": True,
"language_code": "<string>"
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
language_name: '<string>',
target: '<string>',
exclude_brands: true,
language_code: '<string>'
}
])
};
fetch('https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'language_name' => '<string>',
'target' => '<string>',
'exclude_brands' => true,
'language_code' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post"
payload := strings.NewReader("[\n {\n \"language_name\": \"<string>\",\n \"target\": \"<string>\",\n \"exclude_brands\": true,\n \"language_code\": \"<string>\"\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"language_name\": \"<string>\",\n \"target\": \"<string>\",\n \"exclude_brands\": true,\n \"language_code\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"language_name\": \"<string>\",\n \"target\": \"<string>\",\n \"exclude_brands\": true,\n \"language_code\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body{
"cost": 123,
"status_code": 123,
"status_message": "<string>",
"tasks": [
"<string>"
],
"tasks.cost": 123,
"tasks.data": {},
"tasks.id": "<string>",
"tasks.path": [
"<string>"
],
"tasks.result": [
"<string>"
],
"tasks.result_count": 123,
"tasks.status_code": 123,
"tasks.status_message": "<string>",
"tasks.time": "<string>",
"tasks_count": 123,
"tasks_error": 123,
"time": "<string>",
"version": "<string>"
}Keyword Suggestions For URL
Setting ‘Keyword Suggestions For URL’ Tasks
Queues a Bing keywords-for-URL task, returning a task id.
POST
https://api.aisa.one
/
apis
/
v1
/
dataforseo
/
keywords_data
/
bing
/
keyword_suggestions_for_url
/
task_post
Setting ‘Keyword Suggestions For URL’ Tasks
curl --request POST \
--url https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
[
{
"language_name": "<string>",
"target": "<string>",
"exclude_brands": true,
"language_code": "<string>"
}
]
'import requests
url = "https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post"
payload = [
{
"language_name": "<string>",
"target": "<string>",
"exclude_brands": True,
"language_code": "<string>"
}
]
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify([
{
language_name: '<string>',
target: '<string>',
exclude_brands: true,
language_code: '<string>'
}
])
};
fetch('https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
[
'language_name' => '<string>',
'target' => '<string>',
'exclude_brands' => true,
'language_code' => '<string>'
]
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post"
payload := strings.NewReader("[\n {\n \"language_name\": \"<string>\",\n \"target\": \"<string>\",\n \"exclude_brands\": true,\n \"language_code\": \"<string>\"\n }\n]")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("[\n {\n \"language_name\": \"<string>\",\n \"target\": \"<string>\",\n \"exclude_brands\": true,\n \"language_code\": \"<string>\"\n }\n]")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "[\n {\n \"language_name\": \"<string>\",\n \"target\": \"<string>\",\n \"exclude_brands\": true,\n \"language_code\": \"<string>\"\n }\n]"
response = http.request(request)
puts response.read_body{
"cost": 123,
"status_code": 123,
"status_message": "<string>",
"tasks": [
"<string>"
],
"tasks.cost": 123,
"tasks.data": {},
"tasks.id": "<string>",
"tasks.path": [
"<string>"
],
"tasks.result": [
"<string>"
],
"tasks.result_count": 123,
"tasks.status_code": 123,
"tasks.status_message": "<string>",
"tasks.time": "<string>",
"tasks_count": 123,
"tasks_error": 123,
"time": "<string>",
"version": "<string>"
}Queues a Bing keywords-for-URL task, returning a task
id. Wrapped in DataForSEO’s envelope: data in tasks[0].result, outcome in tasks[0].status_code - a rejected request still returns HTTP 200. Retrieve with get_dataforseo_keywords_bing_kw_for_url_fetch.
Example
curl -X POST "https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post" \
-H "Content-Type: application/json" \
-H "Authorization: Bearer YOUR_API_KEY" \
-d '[{"target": "...", "language_code": "...", "exclude_brands": "..."}]'
Request contract
- Method and path: POST /apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post
- Availability: enabled
- Request URL template:
https://api.aisa.one/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post
{
"operationId": "post_dataforseo_keywords_bing_kw_for_url_submit",
"method": "POST",
"path": "/apis/v1/dataforseo/keywords_data/bing/keyword_suggestions_for_url/task_post",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [],
"security": [
{
"bearerAuth": []
}
],
"requestBody": {
"content": {
"application/json": {
"schema": {
"items": {
"allOf": [
{
"anyOf": [
{
"required": [
"language_name"
]
},
{
"required": [
"language_code"
]
}
]
}
],
"properties": {
"exclude_brands": {
"description": "determines whether the results exclude brand keywords optional field",
"type": "boolean"
},
"language_code": {
"description": "search engine language code required field if you don’t specify language_name if you use this field, you don’t need to specify language_name you can receive the list of available languages with their language_code by making a separate request to https://api.dataforseo.com/v3/keywords_data/bing/keyword_suggestions_for_url/languages example: en",
"type": "string"
},
"language_name": {
"description": "Full name of the search engine language. Required if language_code is not supplied; either language_name or language_code is sufficient.",
"type": "string"
},
"target": {
"description": "target URL of the webpage to scan for possible keywords required field maximum length: 2000 characters",
"type": "string"
}
},
"required": [
"target"
],
"type": "object"
},
"type": "array"
}
}
},
"required": true
},
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
Cost and request rules
Usage-based pricing. Default request estimate: $0.09 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.Authorizations
Body
application/json
- Option 1
- Option 2
search engine language code required field if you don’t specify language_name if you use this field, you don’t need to specify language_name you can receive the list of available languages with their language_code by making a separate request to https://api.dataforseo.com/v3/keywords_data/bing/keyword_suggestions_for_url/languages example: en
Response
Successful response