/search?engine=yahoo API endpoint allows you to scrape the results from Yahoo! search engine via our SerpApi service.
Api Details
EndpointGET https://serpapi.abcproxy.com/search
Description
A user may query the following: https://serpapi.abcproxy.com/search?engine=yahoo_images utilizing a GET request. Head to the for a live and interactive demo.
using System;
using System.Net.Http;
class Program
{
static async Task Main()
{
var client = new HttpClient();
var query = System.Web.HttpUtility.ParseQueryString(string.Empty);
query["engine"] = "yahoo";
query["p"] = "Coffee";
query["no_cache"] = "false";
query["api_key"] = "YOUR_API_KEY";
var response = await client.GetAsync(
$"https://serpapi.abcproxy.com/search?{query}"
);
Console.WriteLine(await response.Content.ReadAsStringAsync());
}
}
import java.net.*;
import java.io.*;
public class Main {
public static void main(String[] args) throws Exception {
String url = "https://serpapi.abcproxy.com/search" +
"?engine=yahoo" +
"&p=Coffee" +
"&no_cache=false" +
"&api_key=YOUR_API_KEY";
HttpURLConnection conn = (HttpURLConnection) new URL(url).openConnection();
conn.setRequestMethod("GET");
BufferedReader in = new BufferedReader(
new InputStreamReader(conn.getInputStream())
);
String response = in.lines().collect(Collectors.joining());
System.out.println(response);
}
}
Parameters
Search Query
Name
Type
Required
Description
Example
p
string
Yes
Parameter defines the search query. You can use anything that you would use in a regular Yahoo! search.
coffee
Localization
Name
Type
Required
Description
Example
yahoo_domain
string
No
Parameter defines the Yahoo! domain to use.
fr.search.yahoo.com
vc
string
No
Parameter defines the country to use for the Yahoo! search. It's a two-letter country code.
uk
vl
string
No
Parameter defines language to limit the search to.
lang_fr
Pagination
Name
Type
Required
Description
Example
b
int
Yes
Parameter defines the result offset. It skips the given number of results. It's used for pagination.
1
Advanced Filters
Name
Type
Required
Description
Example
vm
string
No
Parameter controls the offset of the organic results. This parameter defaults to 1.
1
vs
string
No
Parameter controls the number of results per page. This parameter is only a suggestion and might not reflect the returned results.
100
vf
string
No
-
fr2
string
No
Parameter is responsible for rendering positions and expansions for some elements.
-
d
string
No
Parameter specifies the destination for related topics. By including a unique identifier for the destination page, this parameter directs users to specific content related to their search query, providing them with more targeted results.
-
Serpapi Parameters
Name
Type
Required
Description
Example
engine
string
Yes
Set parameter to yahoo to use the Yahoo! API engine.
yahoo
no_c1ache
boolean
No
Parameter will force SerpApi to fetch the Google Patents results even if a cached version is already present. A cache is served only if the query and all parameters are exactly the same. Cache expires after 1h. Cached searches are free, and are not counted towards your searches per month.
true or false
api_key
string
Yes
Parameter defines the SerpApi private key to use.
YOUR_API_KEY
Response
Success 200
Response Body
{
"code": 200,
"search_parameters": {
"engine": "yahoo",
"no_cache": true,
"api_key": "YOUR_API_KEY",
"p": "Coffee"
},
"search_metadata": {
"raw_html_file": "https://webserp.abcproxy.com/files/07df4a3eae24eaa5/c9e41136-658b-4e3e-8ea3-a3facd10b102.html",
"xray_html_file": "https://webserp.abcproxy.com/files/07df4a3eae24eaa5/c9e41136-658b-4e3e-8ea3-a3facd10b102.xray",
"total_time_taken": "35.3403",
"id": "c9e41136-658b-4e3e-8ea3-a3facd10b102",
"json_endpoint": "https://webserp.abcproxy.com/files/07df4a3eae24eaa5/c9e41136-658b-4e3e-8ea3-a3facd10b102.json",
"created_at": "2025-04-09 13:48:38",
"yahoo_url": "https://search.yahoo.com/search?ei=UTF-8&fr=fp-tts&p=Coffee"
},
"inline_videos": {
"items": [
{
"position": 1,
"source": "YouTube",
"duration": "5:40",
"views": "205.7K Views",
"title": "6 Ways Coffee Benefits Your Health | #DeepDives | Health",
"thumbnail": "https://up.yimg.com/ib/th?id=OVP.tfP_eY_jjunmtmVuDFxipwHgFo&pid=Api&w=296&h=156&c=7&p=0&rs=1&qlt=95",
"date": "Aug 30, 2020"
},
...
],
"see_more_link": "https://video.search.yahoo.com/search/video;_ylt=Awr98ZjwbPNnizsQA7hXNyoA;_ylu=Y29sbwNncTEEcG9zAzUEdnRpZAMEc2VjA3Nj?p=Coffee&fr=fp-tts"
},
"knowledge_graph": {
"profiles": [
{
"title": "Wiki",
"link": "https://en.wikipedia.org/wiki/Coffee"
}
],
"title": "Coffee",
"image": "https://s.yimg.com/fz/api/res/1.2/KeEAFWLeg8L6OhHT.XMCZQ--~C/YXBwaWQ9c3JjaGRkO2ZpPWZpdDtoPTEzMDtxPTgwO3c9MTAw/https://s.yimg.com/zb/imgv1/380d76fc-be63-3b73-9379-fdf0818cd2e2/t_500x300",
"description": "Coffee is a beverage brewed from roasted, ground coffee beans. Darkly colored, bitter, and slightly acidic, coffee has a stimulating effect on humans, primarily due to its caffeine content, but decaffeinated coffee is also commercially available. There are also various coffee substitutes. Typically served hot, coffee has the highest sales in the world market for hot drinks. Wikipedia ",
"description_link": {
"title": "Wikipedia",
"link": "http://en.wikipedia.org/wiki/Coffee"
}
},
"related_trending_searches": {
"title": "Coffee",
"bottom": [
{
"position": 1,
"link": "https://search.yahoo.com/search;_ylt=Awr98ZjwbPNnizsQ6rdXNyoA;_ylu=Y29sbwNncTEEcG9zAzMEdnRpZAMEc2VjA3Nj?ei=UTF-8&p=Organic+coffee&fr2=p%3As%2Cv%3Aw%2Cpos%3A0%2Cm%3AsingleCarousel%2Cct%3ACoffee&fr=fp-tts",
"thumbnail": "https://s.yimg.com/fz/api/res/1.2/0Ufm.VAgBIOmid90dOliPw--~C/YXBwaWQ9c3JjaGRkO2ZpPWZpbGw7aD0yMzI7cHhvZmY9NTA7cHlvZmY9NTA7cT04MDt3PTIzMg--/https://s.yimg.com/pv/static/shopping/img/1707203373677/coffee-Organic.jpg?v=15",
"snippet": "Organic"
},
...
]
},
"trending_searches": [
{
"title": "Donald Trump",
"link": "https://search.yahoo.com/search;_ylt=Awr98ZjwbPNnizsQKbhXNyoA;_ylu=Y29sbwNncTEEcG9zAzEEdnRpZAMEc2VjA3Nj?ei=UTF-8&p=Donald+Trump&fr2=p%3As%2Cv%3Aw%2Cm%3Atn%2Cct%3Aall%2Cpg%3A1%2Cstl%3Atxt%2Ckt%3Aorg%2Cb%3A&fr=fp-tts",
"thumbnail": "https://s.yimg.com/fz/api/res/1.2/1mf5Zl0WkHUPS8xiSZ86Mg--~C/YXBwaWQ9c3JjaGRkO2ZpPWZpbGw7aD0xNjA7cT04MDtzbT0xO3c9MzIw/https://media.zenfs.com/en/cnn_articles_875/d6db947a74cb7741235a931f6699c0f1",
"snippet": "Trump says he’s ready to talk as new stock market losses fuel tariff chaos",
"position": 1
},
...
],
"related_to_searches": [
{
"link": "https://search.yahoo.com/search;_ylt=Awr98ZjwbPNnizsQIbhXNyoA;_ylu=Y29sbwNncTEEcG9zAzEEdnRpZAMEc2VjA3JlbC1lYXN0?ei=UTF-8&p=coffee+shops+near+me&fr2=p%3As%2Cv%3Aw%2Cm%3Aat-e%2Cct%3Agossip&fr=fp-tts",
"position": 1,
"title": "coffee shops near me"
},
...
],
"related_questions": [
{
"title": "Which coffee maker makes the best drip coffee?",
"link": "https://search.yahoo.com/search;_ylt=Awr98ZjwbPNnizsQ8LdXNyoA;_ylu=Y29sbwNncTEEcG9zAzQEdnRpZAMEc2VjA3Nj?ei=UTF-8&p=Which+coffee+maker+makes+the+best+drip+coffee%3F&fr2=p%3As%2Cv%3Aw%2Cm%3AnuwaPeopleAlsoAsk&fr=fp-tts"
},
...
],
"organic_results": [
{
"snippet": "Jan 17, 2025 · From lavender-flavored lattes to single-origin pour-overs, here are our favorite coffee shops across L.A. In the last few years, L.A.’s coffee culture has blossomed into a sprawling, diverse... ",
"snippet_highlighted_words": [
"coffee ",
"coffee "
],
"favicon": "https://s.yimg.com/pv/static/search_favicon/images/32x32_fefaa30d76b9a1ca.png",
"origin_site": "Time Out",
"images": [
{
"link": "https://images.search.yahoo.com/search/images;_ylt=Awr98ZjwbPNnizsQ3LdXNyoA;_ylu=Y29sbwNncTEEcG9zAzEEdnRpZAMEc2VjA3Ny?ei=UTF-8&p=The+27+best+coffee+shops+in+Los+Angeles+-+Time+Out&fr=fp-tts&imgurl=https%3A%2F%2Fwww.bing.com%2Fimages%2Fsearch%3Fview%3DdetailV2%26ccid%3DUki3pBBi%26id%3DD5C7D2BDBE3CCCEBE30B284F17036031B9711109%26thid%3DOIP.Uki3pBBiF_y8KXSNFkLyXgHaFj%26mediaurl%3Dhttps%3A%2F%2Fmedia.timeout.com%2Fimages%2F106155159%2F1372%2F1029%2Fimage.jpg%26q%3DCoffee%26ck%3DB891EEB77887D5ED0E48748A8869A8AC%26idpp%3Drc%26idpview%3Dsingleimage%26form%3Drc2idp&name=Coffee1&turl=https%3A%2F%2Fsp.yimg.com%2Fib%2Fth%3Fid%3DOIP.Uki3pBBiF_y8KXSNFkLyXgHaFj%26pid%3DApi%26w%3D148%26h%3D148%26c%3D7%26rs%3D1&tt=Coffee1&sigit=.LVY_r8tkP6G&sigi=4wm0YLHbynf2&sign=or2mgQYzDrKi&sigt=or2mgQYzDrKi",
"thumbnail": "https://sp.yimg.com/ib/th?id=OIP.Uki3pBBiF_y8KXSNFkLyXgHaFj&pid=Api&w=148&h=148&c=7&rs=1"
},
...
],
"position": 1,
"title": "The 27 best coffee shops in Los Angeles - Time Out",
"url": "https://www.timeout.com/los-angeles/restaurants/the-best-coffee-shops-in-los-angeles"
},
...
],
"inline_images": {
"items": [
{
"thumbnail": "https://up.yimg.com/ib/th?id=OIP.Re7WHLgpMU2E8obQUJb-TAAAAA&pid=Api&rs=1&c=1&qlt=95&w=66&h=99",
"link": "https://images.search.yahoo.com/search/images;_ylt=Awr98ZjwbPNnizsQ4rdXNyoA;_ylu=Y29sbwNncTEEcG9zAzIEdnRpZAMEc2VjA3Nj?ei=UTF-8&p=Coffee&fr=fp-tts&th=710&tw=474&imgurl=http%3A%2F%2F3.bp.blogspot.com%2F-U2uqPh7hw0U%2FUHNEoLahrPI%2FAAAAAAAAAv8%2FbuuzujhKZkY%2Fs1600%2Fcoffee.jpg&rurl=http%3A%2F%2Fbellevueclub.blogspot.com%2F2012%2F10%2Fcoffees-health-benefitsand-how-to-taste.html&size=191KB&name=Bellevue+Club%3A+Coffee%27s+Health+Benefits...and+How+to+Taste+It%21&oid=1&h=710&w=474&turl=https%3A%2F%2Ftse1.mm.bing.net%2Fth%3Fid%3DOIP.Re7WHLgpMU2E8obQUJb-TAAAAA%26pid%3DApi&tt=Bellevue+Club%3A+Coffee%27s+Health+Benefits...and+How+to+Taste+It%21&sigr=rnAAVwMciMuZ&sigit=M0AeHccPrzKD&sigi=AqnI4YQ6m2u2&sign=fe5IlTuhTrog&sigt=fe5IlTuhTrog"
},
...
],
"see_more_link": "https://images.search.yahoo.com/search/images;_ylt=Awr98ZjwbPNnizsQ57dXNyoA;_ylu=Y29sbwNncTEEcG9zAzIEdnRpZAMEc2VjA3Nj?p=Coffee&fr=fp-tts"
},
"related_searches": {
"bottom": [
{
"query": "coffee shops near me",
"link": "https://search.yahoo.com/search;_ylt=Awr98ZjwbPNnizsQBrhXNyoA;_ylu=Y29sbwNncTEEcG9zAzEEdnRpZAMEc2VjA3JlbC1ib3Q-?ei=UTF-8&p=coffee+shops+near+me&fr2=p%3As%2Cv%3Aw%2Cm%3Ars-bottom%2Cct%3Agossip&fr=fp-tts"
},
...
]
},
"pagination": {
"current": "1",
"next": "https://search.yahoo.com/search;_ylt=Awr98ZjwbPNnizsQErhXNyoA;_ylu=Y29sbwNncTEEcG9zAzEEdnRpZAMEc2VjA3BhZ2luYXRpb24-?ei=UTF-8&fr=fp-tts&p=Coffee&b=8&pz=7&bct=0&xargs=0",
"other_pages": [
{
"2": "https://search.yahoo.com/search;_ylt=Awr98ZjwbPNnizsQDrhXNyoA;_ylu=Y29sbwNncTEEcG9zAzEEdnRpZAMEc2VjA3BhZ2luYXRpb24-?ei=UTF-8&fr=fp-tts&p=Coffee&b=8&pz=7&bct=0&xargs=0"
},
{
"3": "https://search.yahoo.com/search;_ylt=Awr98ZjwbPNnizsQD7hXNyoA;_ylu=Y29sbwNncTEEcG9zAzEEdnRpZAMEc2VjA3BhZ2luYXRpb24-?ei=UTF-8&fr=fp-tts&p=Coffee&b=15&pz=7&bct=0&xargs=0"
},
{
"4": "https://search.yahoo.com/search;_ylt=Awr98ZjwbPNnizsQELhXNyoA;_ylu=Y29sbwNncTEEcG9zAzEEdnRpZAMEc2VjA3BhZ2luYXRpb24-?ei=UTF-8&fr=fp-tts&p=Coffee&b=22&pz=7&bct=0&xargs=0"
},
{
"5": "https://search.yahoo.com/search;_ylt=Awr98ZjwbPNnizsQEbhXNyoA;_ylu=Y29sbwNncTEEcG9zAzEEdnRpZAMEc2VjA3BhZ2luYXRpb24-?ei=UTF-8&fr=fp-tts&p=Coffee&b=29&pz=7&bct=0&xargs=0"
}
]
},
...
}
Response Fields
Field
Type
Description
search_parameters
object
Contains query parameters and search context
search_metadata
object
Contains timing and status information
search_information
object
General search stats and metadata
organic_results
object[]
Main search results (websites/articles)
inline_images
object
Image results displayed inline
inline_videos
object
Video results displayed inline
ads_results
object[]
Sponsored advertisement listings
knowledge_graph
object
Knowledge panel information
related_trending
object
Currently trending related searches
shopping_results
object[]
Product listings and shopping offers
local_map
object
Map visualization for local results
local_results
object[]
Nearby business listings
top_stories
object[]
Trending news articles
answer_box
object
Direct answer to query
discover_more_places
object[]
Additional local recommendations
trending_searches
object[]
Today's popular searches
related_searches
object[]
Similar searches
related_questions
object[]
"People also ask" questions
pagination
object
Results pagination controls
Error Responses
Common Errors
HTTP Status
Error Code
Description
200
400
API Key can not be empty
200
401
Param error
200
402
API Key error
200
403
Insufficient Balance
200
404
Deduction failed
200
405
Failed to record usage count
200
406
Unsupported engine
200
407
Network error
200
408
File not found
200
409
Limit param error
200
410
Build url error
200
411
Failed to QueryRecentRecord
200
412
Failed to find json
200
413
Get html error
200
414
HTML is empty
200
429
Too many request
Error Example
{
"code": 400,
"message": "API Key can not be empty"
}
all formats or specific file format like pdf or txt. You can check .