The Piloterr Yahoo Scraper API lets you extract public data from Yahoo as clean, structured JSON — no proxies, headless browsers or HTML parsing to maintain. Endpoints available in production:
- Yahoo Search API — Query Yahoo via API and retrieve structured organic results with country and language.
Use it for SEO rank tracking, SERP monitoring, ad intelligence, market research or grounding LLM answers with fresh search results.
| Endpoint | Path | Credits | What you get |
|---|---|---|---|
| Yahoo Search API | /v2/yahoo/search |
1 | Query Yahoo via API and retrieve structured organic results with country and language. |
- How it works
- Yahoo Search API
- Code examples in other languages
- Practical use cases
- Why Piloterr?
- FAQ
- Related scrapers
- Support
- Create a free Piloterr account and copy your API key from the dashboard.
- Send a
GET(orPOST) request tohttps://api.piloterr.com/v2/...with the headerx-api-key: YOUR_API_KEY. - Receive structured JSON — Piloterr handles rendering, proxies, retries and parsing.
export PILOTERR_API_KEY="your-api-key"
pip install requests # Python
# TypeScript: Node.js 18+ (native fetch), run with `npx tsx file.ts`Every endpoint accepts both
GET(query string) andPOST(JSON body with the same fields).
Query Yahoo via API and retrieve structured organic results with country and language.
GET | POST https://api.piloterr.com/v2/yahoo/search · 1 credit per request · Full reference
| Parameter | Type | Required | Description |
|---|---|---|---|
query |
string | ✅ | Search query sent to Yahoo Search. |
page |
number | — | Page number. Page 1 is the first page of results. |
gl |
string | — | Country code, for example us, fr, gb, de, jp. |
hl |
string | — | Language code, for example en, fr, de, ja, zh. |
import json
import os
import requests
response = requests.get(
"https://api.piloterr.com/v2/yahoo/search",
headers={"x-api-key": os.environ["PILOTERR_API_KEY"]},
params={
"query": "openai",
},
timeout=120,
)
response.raise_for_status()
data = response.json()
print(json.dumps(data, indent=2, ensure_ascii=False)[:2000])type YahooSearch = {
organic_results?: {
link?: string;
title?: string;
domain?: string;
snippet?: string;
position?: number;
displayed_link?: string;
}[];
search_parameters?: {
q?: string;
gl?: string;
hl?: string;
page?: number;
engine?: string;
};
};
const params = new URLSearchParams({
"query": "openai",
});
const response = await fetch(`https://api.piloterr.com/v2/yahoo/search?${params}`, {
headers: { "x-api-key": process.env.PILOTERR_API_KEY! },
});
if (!response.ok) throw new Error(`Piloterr error ${response.status}: ${await response.text()}`);
const data = (await response.json()) as YahooSearch;
console.log(JSON.stringify(data, null, 2).slice(0, 2000));POST variant
POST https://api.piloterr.com/v2/yahoo/search
x-api-key: YOUR_API_KEY
Content-Type: application/json
{"query": "openai"}Example response from the API reference, abridged — real values depend on the page you scrape.
{
"organic_results": [
{
"link": "https://openai.com/",
"title": "OpenAI",
"domain": "openai.com",
"snippet": "OpenAI is an AI research and deployment company.",
"position": 1,
"displayed_link": "https://openai.com"
}
],
"search_parameters": {
"q": "openai",
"gl": "us",
"hl": "en",
"page": 1,
"engine": "yahoo"
}
}| Field | Type | Description |
|---|---|---|
organic_results[] |
object[] | |
organic_results[].link |
string | |
organic_results[].title |
string | |
organic_results[].domain |
string | |
organic_results[].snippet |
string | |
organic_results[].position |
integer | |
organic_results[].displayed_link |
string | |
search_parameters |
object | |
search_parameters.q |
string | |
search_parameters.gl |
string | |
search_parameters.hl |
string | |
search_parameters.page |
integer | |
search_parameters.engine |
string |
Ready-to-run examples live in the examples/ folder. Each one reads your key from the PILOTERR_API_KEY environment variable.
| Language | Search |
|---|---|
| cURL (Bash) | search |
| PHP | search |
| C# | search |
| Go | search |
| Java | search |
| Ruby | search |
| Node.js | search |
- SEO rank tracking — Track positions of your pages and competitors on target keywords.
- SERP monitoring — Watch features, snippets and new entrants on strategic queries.
- LLM grounding — Feed AI agents and RAG pipelines with fresh search results.
- Ad intelligence — See who advertises on your keywords and with which messages.
- Market research — Map competitors, news and trends at scale.
- No infrastructure — no proxies, headless browsers or CAPTCHA solving to run yourself.
- Structured JSON — stable, documented fields instead of brittle HTML selectors.
- Pay per request — transparent credit cost per endpoint, failed requests are retried for you.
- One API key, hundreds of sources — Yahoo plus many other e-commerce, search and company data endpoints in the Piloterr library.
- Any language — plain HTTPS + JSON, with examples for Python, TypeScript, cURL, PHP, C#, Go, Java, Ruby and Node.js.
Collecting publicly available data is generally allowed in many jurisdictions, but rules depend on your country, the data you collect and how you use it. Avoid personal data unless you have a lawful basis, respect the website's terms where they apply, and get legal advice for your specific use case. This is not legal advice.
No. Piloterr handles rendering, proxy rotation and retries on its side. You only send an HTTPS request with your x-api-key header and receive JSON.
Credits per call: /v2/yahoo/search 1. See the Piloterr website for plans.
Each endpoint returns structured JSON: Yahoo Search — organic_results[], organic_results[].link, organic_results[].title, organic_results[].domain, organic_results[].snippet, organic_results[].position.
Use the page parameter and keep requesting while the response indicates more results.
Yes, use gl, hl — see the parameter tables above for accepted values.
Any language that can make an HTTP request. This README shows Python and TypeScript; the examples/ folder contains cURL, PHP, C#, Go, Java, Ruby and Node.js.
- Bing Scraper API
- Brave Scraper API
- DuckDuckGo Scraper API
- Google Scraper API
- Google Ads Transparency Scraper API
- All Piloterr scrapers on GitHub
- 💬 Join the Piloterr Discord to ask questions and share what you build.
- 📚 Browse the API reference (OpenAPI) and the Piloterr library.
- 🔑 Get your API key.
Built by Piloterr — web scraping APIs for e-commerce, search, real estate and more, one API key.
Yahoo is a trademark of its respective owner. This repository is not affiliated with or endorsed by Yahoo. Examples are released under the MIT license.
