Yahoo Search

Get Yahoo web search results.

GET/api/v1/yahoo/search

Costs 1 credit per request; failed requests are refunded. Authentication, the search_metadata envelope and error codes are the same as for every endpoint (see the API reference). Try it in the playground.

Parameters

Search

Query, localization and pagination.

ParameterTypeDescription
prequiredstringText or search operators to send to Yahoo.Up to 2,000 characters.
yahoo_domainstringYahoo regional search host, for example fr.search.yahoo.com. A regional prefix such as fr is also accepted.Default: search.yahoo.com.
bintegerOne-based starting result. Web pages usually advance by 10; image pages usually advance by 60.Default: 1.Range: 1 to 10001.
device"desktop" | "tablet" | "mobile"Device profile used for the Yahoo result page.Default: desktop.
vcstringCountry code for regional results, such as us or uk.
vlstringRestrict matches to a language, such as lang_fr, lang_zh_chs, or lang_zh_cht. Enables Yahoo's language filter.

Filters

Narrow the Yahoo result set.

ParameterTypeDescription
vm"r" | "i" | "p"Adult-content filtering: r for strict, i for moderate, p for unfiltered.
vsstringComma-separated domain suffixes to search, such as .com,.org.Up to 500 characters.
vfstringDocument format to match, such as pdf, txt, or all formats.Up to 80 characters.
fr2stringYahoo display token controlling result module placement and expansion.Up to 1,000 characters.
dstringYahoo related-topic destination token, passed through as a string.Up to 4,096 characters.

Response

A JSON object with search_metadata (request id, credits used and remaining) and the result data: organic_results. Groups and fields depend on the content of each page, so treat every field as optional.

Examples

cURL
curl "https://serpfast.com/api/v1/yahoo/search?p=coffee&yahoo_domain=search.yahoo.com&b=1" \
  -H "Authorization: Bearer $SERPFAST_KEY"
Node.js 18+
const params = new URLSearchParams({
  "p": "coffee",
  "yahoo_domain": "search.yahoo.com",
  "b": 1
});
const res = await fetch(`https://serpfast.com/api/v1/yahoo/search?${params}`, {
  headers: { Authorization: `Bearer ${process.env.SERPFAST_KEY}` },
});
const data = await res.json();
console.log(data);
Python
import os, requests

params = {
  "p": "coffee",
  "yahoo_domain": "search.yahoo.com",
  "b": 1
}
res = requests.get(
    "https://serpfast.com/api/v1/yahoo/search",
    params=params,
    headers={"Authorization": f"Bearer {os.environ['SERPFAST_KEY']}"},
    timeout=120,
)
print(res.json())