List Markets
curl --request GET \
--url https://scrapebadger.com/v1/copilot/markets \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/copilot/markets"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/copilot/markets', 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://scrapebadger.com/v1/copilot/markets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/copilot/markets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/copilot/markets")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/copilot/markets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"markets": [
{
"code": "<string>",
"name": "<string>",
"country": "<string>"
}
],
"count": 123
}Reference
List Markets
The curated Bing markets you can pass as market to Copilot ask and brand-visibility.
GET
/
v1
/
copilot
/
markets
List Markets
curl --request GET \
--url https://scrapebadger.com/v1/copilot/markets \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/copilot/markets"
headers = {"X-API-Key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'X-API-Key': '<x-api-key>'}};
fetch('https://scrapebadger.com/v1/copilot/markets', 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://scrapebadger.com/v1/copilot/markets",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"X-API-Key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://scrapebadger.com/v1/copilot/markets"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("X-API-Key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://scrapebadger.com/v1/copilot/markets")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/copilot/markets")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["X-API-Key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"markets": [
{
"code": "<string>",
"name": "<string>",
"country": "<string>"
}
],
"count": 123
}The curated list of Bing markets for the
market parameter of
/ask and
/brand-visibility. The
list is a reference, not a limit: any well-formed language-COUNTRY code is
also accepted.
Credits: 1
Authorization
string
required
Your ScrapeBadger API key.
Response
Market[]
integer
Number of entries in
markets (30).Curated markets
| Region | Codes |
|---|---|
| North America | en-US, en-CA, fr-CA, es-MX |
| English-speaking, rest of world | en-GB, en-AU, en-IN, en-IE, en-NZ, en-ZA |
| Europe | de-DE, fr-FR, es-ES, it-IT, nl-NL, pt-PT, pl-PL, sv-SE, da-DK, fi-FI, nb-NO, ru-RU, tr-TR |
| South America | pt-BR |
| Asia | ja-JP, ko-KR, zh-CN, zh-TW, zh-HK |
| Middle East | ar-SA |
Example
cURL
curl "https://scrapebadger.com/v1/copilot/markets" \
-H "X-API-Key: YOUR_API_KEY"

