List Markets
curl --request GET \
--url https://scrapebadger.com/v1/yahoo/markets \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/yahoo/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/yahoo/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/yahoo/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/yahoo/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/yahoo/markets")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/yahoo/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{
"result_count": 123,
"markets": [
{
"code": "<string>",
"name": "<string>",
"country": "<string>",
"host": "<string>"
}
]
}Search
List Markets
List the 35 supported Yahoo market codes and the regional search host each maps to. Free.
GET
/
v1
/
yahoo
/
markets
List Markets
curl --request GET \
--url https://scrapebadger.com/v1/yahoo/markets \
--header 'X-API-Key: <x-api-key>'import requests
url = "https://scrapebadger.com/v1/yahoo/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/yahoo/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/yahoo/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/yahoo/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/yahoo/markets")
.header("X-API-Key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://scrapebadger.com/v1/yahoo/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{
"result_count": 123,
"markets": [
{
"code": "<string>",
"name": "<string>",
"country": "<string>",
"host": "<string>"
}
]
}List the supported Yahoo market codes. This endpoint is free.
Credits: 0
Yahoo localizes search through regional subdomains —
fr.search.yahoo.com, de.search.yahoo.com, and so on — rather than a
query parameter. The lowercase market code selects the subdomain, returned
here as host.Yahoo Japan is not covered.
search.yahoo.co.jp is operated by a
separate company running its own engine and page structure — it is not a
Yahoo Search market and is deliberately excluded.Authorization
string
required
Your ScrapeBadger API key.
Response
integer
Number of markets.
Market[]
Example
curl "https://scrapebadger.com/v1/yahoo/markets" \
-H "X-API-Key: YOUR_API_KEY"
const res = await fetch("https://scrapebadger.com/v1/yahoo/markets", {
headers: { "X-API-Key": process.env.SCRAPEBADGER_API_KEY },
});
const { markets } = await res.json();
import requests
res = requests.get(
"https://scrapebadger.com/v1/yahoo/markets",
headers={"X-API-Key": "YOUR_API_KEY"},
)
markets = res.json()["markets"]
Response
{
"result_count": 35,
"markets": [
{ "code": "us", "name": "United States", "country": "US", "host": "search.yahoo.com" },
{ "code": "uk", "name": "United Kingdom", "country": "GB", "host": "uk.search.yahoo.com" },
{ "code": "de", "name": "Germany", "country": "DE", "host": "de.search.yahoo.com" },
{ "code": "fr", "name": "France", "country": "FR", "host": "fr.search.yahoo.com" },
{ "code": "br", "name": "Brazil", "country": "BR", "host": "br.search.yahoo.com" }
]
}
Supported markets
| Region | Codes |
|---|---|
| English-speaking | us, uk, ca, au, in, ie, nz, za |
| Europe | fr, de, es, it, nl, be, ch, at, se, no, dk, fi, gr, tr |
| Latin America | br, mx, ar, cl, co |
| Asia-Pacific | sg, my, ph, th, tw, hk, id, vn |
⌘I

