Yahoo · beginner tutorial
Yahoo SERP API
Your first Yahoo search in 5 lines of Python.
New to APIs? This page walks through one Yahoo search from key to CSV file. You send a query and get back ranked Yahoo web results; nothing else to install beyond requests.
import csv, requests
data = requests.post("https://kieapi.com/v1/serp/yahoo/organic",
headers={"Authorization": f"Bearer {KEY}"},
json={"q": "learn python"}).json()
with open("yahoo.csv", "w", newline="") as f:
w = csv.writer(f); w.writerow(["rank", "title", "url"])
for o in data["organic"]: w.writerow([o["rank"], o["title"], o["url"]])Tutorial: key, request, loop, CSV
- Get an API key and store it in an environment variable, for example KEY.
- POST {"q": "learn python"} to /v1/serp/yahoo/organic with the header Authorization: Bearer <KEY>.
- Read the JSON: organic is a list; each row has rank, title, url, display_url and snippet.
- Loop over organic and write rank, title and url to a CSV file.
- Optional: add "country": "GB" (2–8 characters) to search another market; the default is US.
Yahoo web results, not Yahoo Shopping or Images
Web search organic results
Offered here: Yes
Yahoo Images
Offered here: No
Yahoo News
Offered here: No
Yahoo Shopping
Offered here: No
Launch status for this page
Check engine availability before choosing an endpoint. Google also supports News, Images and asynchronous tasks.
- YahooYahoo is callable today with a Bearer API key.
SERP searches are charged per successful search at a display rate of 2 Credits per search; failed searches are not charged. Polling task status is free. The current rate is on Pricing.
What this is not
- Web organic only.
- No Yahoo ads or DSP data.
- No hl parameter.
- Sync only; no tasks.
Frequently asked questions
What's the default country?
US. You can set any 2–8 character country code.
Can I get Yahoo Images?
No. Yahoo is organic only.
What does an empty result cost?
A successful empty result still counts as one search: 2 Credits at the display rate.
Run your first Yahoo search
Get an API key and paste the five lines above.