Yahoo! Trends API
Our Yahoo! Trends API lets you scrape the trending topics displayed on Yahoo! Trends. Each topic includes its rank, title, description, and category, along with related articles, videos, social media details, and AI questions when available.
The Yahoo! server returns up to 100 topics per search, and may return fewer. When additional topics are available, the response includes a serpapi_pagination.next_page_token. Pass this value as the next_page_token parameter in a subsequent search to retrieve the next page of topics. Repeat this process until the response no longer includes a next page token.
The API endpoint is https://serpapi.com/search?engine=yahoo_trends
Head to the playground for a live and interactive demo.
API Parameters
Search Query
next_page_token
Optional
Parameter defines the next page token. It is used for retrieving the next page of results. Leave it unset for the first page. Up to 100 results are returned per page; Yahoo! may return fewer.
The next page token can be found in the SerpApi JSON response: serpapi_pagination -> next_page_token. It is only present while more results are available.
Advanced Parameters
full_video_links
Optional
Parameter defines whether to include playable video links. It can be set to true to include a full_video_link for each topic video, or false (default) to skip them. Enabling it performs an additional request to Yahoo!, which may increase the search response time.
Full video links expire after one hour. To retrieve fresh links, run a new search with the no_cache parameter enabled.
Serpapi Parameters
no_cache
Optional
Parameter will force SerpApi to fetch the Yahoo! Trends 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. It can be set to false (default) to allow results from the cache, or true to disallow results from the cache. no_cache and async parameters should not be used together.
async
Optional
Parameter defines the way you want to submit your search to SerpApi. It can be set to false (default) to open an HTTP connection and keep it open until you got your search results, or true to just submit your search to SerpApi and retrieve them later. In this case, you'll need to use our Searches Archive API to retrieve your results. async and no_cache parameters should not be used together. async should not be used on accounts with Ludicrous Speed enabled.
zero_trace
Optional
Enterprise only. Parameter enables ZeroTrace mode. It can be set to false (default) or true. Enable this mode to skip storing search parameters, search files, and search metadata on our servers. This may make debugging more difficult.
output
Optional
Parameter defines the format of the result. It can be set to json (default) to get a structured JSON of the results, html to get the raw HTML retrieved, or md to get a markdown-formatted version optimized for LLMs and AI agents.
json_restrictor
Optional
Parameter defines the fields you want to include in the output, reducing payload size for faster response. See the JSON Restrictor documentation for more details.
API Results
JSON Results
JSON output includes structured data for trending topics, categories, and milestones.
A search status is accessible through search_metadata.status.
It flows this way: Processing -> Success || Error.
If a search has failed, error will contain an error message.
search_metadata.id is the search ID inside SerpApi.
HTML Results
This API does not have a full HTML response, only text.
search_metadata.prettify_html_file contains a link to the prettified version of the result.
It is displayed in the playground.
Markdown Results
Markdown output is optimized for LLMs and AI agents. It provides most of the same informational content as JSON
in a token-efficient format using tables, markdown links, and YAML frontmatter.
To access, use the output=md parameter, the /search.md endpoint, or request header Accept: text/markdown.
API Examples
Trending topics
{
"search_metadata": {
"id": "6a9bd961c413a7fee4a8a261",
"status": "Success",
"json_endpoint": "https://serpapi.com/searches/fr8QP7gdkKdrITp7NHW3Kd5Ktjn62NkVxNtXT0Z65mU/6a9bd961c413a7fee4a8a261.json",
"markdown_endpoint": "https://serpapi.com/searches/fr8QP7gdkKdrITp7NHW3Kd5Ktjn62NkVxNtXT0Z65mU/6a9bd961c413a7fee4a8a261.md",
"created_at": "2026-09-05 08:57:05 UTC",
"processed_at": "2026-09-05 08:57:05 UTC",
"yahoo_trends_url": "https://www.yahoo.com/trending/",
"raw_html_file": "https://serpapi.com/searches/fr8QP7gdkKdrITp7NHW3Kd5Ktjn62NkVxNtXT0Z65mU/6a9bd961c413a7fee4a8a261.html",
"prettify_html_file": "https://serpapi.com/searches/fr8QP7gdkKdrITp7NHW3Kd5Ktjn62NkVxNtXT0Z65mU/6a9bd961c413a7fee4a8a261.prettify",
"total_time_taken": 0.89
},
"search_parameters": {
"engine": "yahoo_trends"
},
"trending_topics": [
{
"rank": 1,
"title": "Judge declares mistrial in Lindsay Clancy case",
"long_title": "A jury deadlock ends Lindsay Clancy's murder trial in a mistrial, leaving her criminal liability unresolved.",
"description": "Jurors could not reach a verdict after weeks of testimony over her mental health and the killings of her three children. The judge set a Sept. 29 hearing, and lawyers are now weighing what happens next.",
"category": "News",
"badges": [
"Most views now"
],
"articles": [
{
"title": "Lindsay Clancy's murder trial ended in a mistrial. Here's where her case goes next.",
"link": "https://www.yahoo.com/news/us/article/lindsay-clancys-murder-trial-ended-in-a-mistrial-heres-where-her-case-goes-next-221215232.html",
"canonical_link": "https://www.yahoo.com/news/us/article/lindsay-clancys-murder-trial-ended-in-a-mistrial-heres-where-her-case-goes-next-221215232.html",
"source": "Yahoo News",
"thumbnail": "https://s.yimg.com/lo/mysterio/api/4510200cc3bce713cb9dee8b54ea4733bfe1ecf2941ef5ec9d19eb6ac1fa07a9/lightyear_networkapi/smartcrop_w896_h504_faces%3Bquality_90%3Bformat_webp/https%3A%2F%2Fd29szjachogqwa.cloudfront.net%2Fimages%2Fuser-uploaded%2Fthumb-lindsay-clancy_5000.jpg",
"original_image": "https://d29szjachogqwa.cloudfront.net/images/user-uploaded/thumb-lindsay-clancy_5000.jpg"
}
],
"videos": [
{
"title": "Lindsay Clancy Verdict: Mistrial Declared by Judge",
"duration": 20,
"thumbnail": "https://media.zenfs.com/en/newsweek_sports_200/97778b569276104b9de38a90730ab6d5.jpg",
"teaser_link": "https://s.yimg.com/vt/590fa767-ed22-3b93-a8cc-dbfc38aab272/ac_none_du_4_q_auto_eco_so_0_vc_h264_w_720_large.mp4"
},
{
"title": "Lindsay Clancy murder trial ends in hung jury, defense demands stay of mistrial declaration",
"duration": 105,
"thumbnail": "https://media.zenfs.com/en/the_hill_videos_993/dd91040eab4afd7081c3d04abaa5db00.jpg"
},
{
"title": "Lindsay Clancy Can’t Emotionally Handle Another Trial, Lawyer Says As Jury Deadlocks Again: ‘She’s Sad’",
"duration": 142,
"thumbnail": "https://media.zenfs.com/en/globe_458/f934c00d581c2aee29e342a70fe38789.png"
},
{
"title": "Lindsay Clancy trial attendee reacts to mistrial: \"It doesn't resolve anything\"",
"duration": 226,
"thumbnail": "https://media.zenfs.com/en/video.cbsnewsvideos.com/b7af756f00f2cfcf6cd1826fb9623b36.jpg",
"teaser_link": "https://s.yimg.com/vt/fd13bfcc-41aa-3bca-84e4-028e5b080f44/ac_none_du_4_q_auto_eco_so_0_vc_h264_w_1280_large.mp4"
},
{
"title": "All eyes on Lindsay Clancy trial as jury fails to reach verdict for 6th day",
"duration": 288,
"thumbnail": "https://media.zenfs.com/en/video.abcnewsplus.com/88bb60960836687eea9e8162d29a6cc3.jpg",
"teaser_link": "https://s.yimg.com/vt/1ce3eeae-66c0-39b5-ab8e-c9e7572de9f7/ac_none_du_4_q_auto_eco_so_0_vc_h264_w_1280_large.mp4"
}
],
"ai_questions": [
{
"question": "What happens after the mistrial?",
"link": "https://scout.yahoo.com/chat?q=What%20happens%20after%20the%20mistrial%3F&fr=news-yoh-sctq&fr2=p:news,v:yoh,m:sctq&referrer=https%3A%2F%2Fwww.yahoo.com%2Fnews%2Fus%2Farticle%2Flindsay-clancys-murder-trial-ended-in-a-mistrial-heres-where-her-case-goes-next-221215232.html&context=Jurors%20could%20not%20reach%20a%20verdict%20after%20weeks%20of%20testimony%20over%20her%20mental%20health%20and%20the%20killings%20of%20her%20three%20children.%20The%20judge%20set%20a%20Sept.%2029%20hearing%2C%20and%20lawyers%20are%20now%20weighing%20what%20happens%20next."
}
]
},
{
"rank": 2,
"title": "Tesla Cybercabs face federal investigation",
"long_title": "NHTSA opens a safety probe into Tesla's Cybercab after the robotaxi rollout in Austin.",
"description": "Regulators are checking whether Tesla's steering-wheel-free robotaxi meets federal safety standards, a move that landed hours after paying rides started. The review could shape how quickly Tesla can scale the service and how investors read the launch.",
"category": "Technology",
"badges": [
"Up arrow"
],
"articles": [
{
"title": "Tesla Cybercabs are under federal investigation a day after Austin launch",
"link": "https://tech.yahoo.com/transportation/article/tesla-cybercabs-are-under-federal-investigation-a-day-after-austin-launch-143503214.html",
"canonical_link": "https://tech.yahoo.com/transportation/article/tesla-cybercabs-are-under-federal-investigation-a-day-after-austin-launch-143503214.html",
"source": "Yahoo Tech",
"thumbnail": "https://s.yimg.com/lo/mysterio/api/50e1b415e04197e68f387ccc533377fdfbc44f78f59f8146fc6bcbd054662ed5/lightyear_networkapi/smartcrop_w896_h504_faces%3Bquality_90%3Bformat_webp/https%3A%2F%2Fd29szjachogqwa.cloudfront.net%2Fimages%2F2026-09%2F1dd6cb99-72c4-46c5-a807-f85053380694",
"original_image": "https://d29szjachogqwa.cloudfront.net/images/2026-09/1dd6cb99-72c4-46c5-a807-f85053380694"
}
],
"videos": [
{
"title": "No steering wheel, no problem: Can Tesla speed by Cybercab probe?",
"duration": 146,
"thumbnail": "https://d29szjachogqwa.cloudfront.net/images/2026-09/c095e486-a567-4889-b6fd-3ef6a7d93987",
"teaser_link": "https://s.yimg.com/vt/1ed46f2f-0aa6-43c0-8eff-45ceb58adc17/ac_none_du_4_q_auto_eco_so_0_vc_h264_w_284_xsmall.mp4"
},
{
"title": "Tesla launches Cybercab service in Austin",
"duration": 184,
"thumbnail": "https://d29szjachogqwa.cloudfront.net/images/user-uploaded/57d9b260-8b48-458f-8f44-03abda9dc224_1b499a898904d53ff540b8d655f0da03639a96670ff7094649ea0f5ec6e90577.jpg",
"teaser_link": "https://s.yimg.com/vt/37da93df-4fd7-4218-9097-9474a98a3aad/ac_none_du_4_q_auto_eco_so_0_vc_h264_w_1280_large.mp4"
},
{
"title": "Tesla's driverless car Cybercab makes debut in Austin",
"duration": 30,
"thumbnail": "https://cf-images.us-east-1.prod.boltdns.net/v1/jit/6415665815001/a1c03be1-9d02-4e9d-8df9-77d9bc8d12b4/main/1280x720/15s40ms/match/image.jpg"
},
{
"title": "Tesla's Steering-Wheel-Free Cybercabs Are Rolling Into Texas",
"duration": 65,
"thumbnail": "https://media.zenfs.com/en/chron_hearst_vertical_videos_388/23a233bafa5245482e847342992e753a.jpg",
"teaser_link": "https://s.yimg.com/vt/58734730-28b6-3065-a0f5-a22076c53d9c/ac_none_du_4_q_auto_eco_so_0_vc_h264_w_720_large.mp4"
}
],
"ai_questions": [
{
"question": "Why is NHTSA probing Tesla's Cybercab?",
"link": "https://scout.yahoo.com/chat?q=Why%20is%20NHTSA%20probing%20Tesla's%20Cybercab%3F&fr=news-yoh-sctq&fr2=p:news,v:yoh,m:sctq&referrer=https%3A%2F%2Ftech.yahoo.com%2Ftransportation%2Farticle%2Ftesla-cybercabs-are-under-federal-investigation-a-day-after-austin-launch-143503214.html&context=Regulators%20are%20checking%20whether%20Tesla's%20steering-wheel-free%20robotaxi%20meets%20federal%20safety%20standards%2C%20a%20move%20that%20landed%20hours%20after%20paying%20rides%20started.%20The%20review%20could%20shape%20how%20quickly%20Tesla%20can%20scale%20the%20service%20and%20how%20investors%20read%20the%20launch."
}
]
},
...
],
"categories": [
{
"name": "Sports",
"topic_count": 23
},
{
"name": "Health",
"topic_count": 4
},
{
"name": "Business",
"topic_count": 5
},
{
"name": "News",
"topic_count": 30
},
{
"name": "Entertainment",
"topic_count": 28
},
{
"name": "Lifestyle",
"topic_count": 9
},
{
"name": "Technology",
"topic_count": 1
}
],
...
}
Trending topic with full video link
Playable video links can be included by enabling the full_video_links parameter. They are valid for 1 hour after the search. To retrieve fresh links, run a new search with the no_cache parameter enabled.
{
"search_metadata": {
"id": "6aab137ac413a7fcf64693b2",
"status": "Success",
"json_endpoint": "https://serpapi.com/searches/bLQtkp1F8axOpizwUFIsanQICIuWNBSSIU3x1fmatdA/6aab137ac413a7fcf64693b2.json",
"markdown_endpoint": "https://serpapi.com/searches/bLQtkp1F8axOpizwUFIsanQICIuWNBSSIU3x1fmatdA/6aab137ac413a7fcf64693b2.md",
"created_at": "2026-09-16 22:08:58 UTC",
"processed_at": "2026-09-16 22:08:58 UTC",
"yahoo_trends_url": "https://www.yahoo.com/trending/",
"raw_html_file": "https://serpapi.com/searches/bLQtkp1F8axOpizwUFIsanQICIuWNBSSIU3x1fmatdA/6aab137ac413a7fcf64693b2.html",
"prettify_html_file": "https://serpapi.com/searches/bLQtkp1F8axOpizwUFIsanQICIuWNBSSIU3x1fmatdA/6aab137ac413a7fcf64693b2.prettify",
"total_time_taken": 0.89
},
"search_parameters": {
"engine": "yahoo_trends",
"full_video_links": true
},
"trending_topics": [
{
"rank": 28,
"title": "Harry and Meghan move kids to a new school",
"long_title": "Harry and Meghan moved Archie and Lilibet to a new school after security concerns.",
"description": "A spokesperson said the decision followed talks with the family's security team, and fans are zeroing in on the sudden school switch after the children had just started in England.",
"category": "Entertainment",
"articles": [
{
"title": "Prince Harry and Meghan move children to new school over security concerns",
"link": "https://www.yahoo.com/news/us/articles/prince-harry-meghan-move-children-175554628.html",
"canonical_link": "https://www.yahoo.com/news/us/articles/prince-harry-meghan-move-children-175554628.html",
"source": "Associated Press",
"thumbnail": "https://s.yimg.com/lo/mysterio/api/1a0022bcc1ed82eb9d82c110a0813bd2bbb460d32458f36c77686c5aece788e1/lightyear_networkapi/smartcrop_w896_h504_faces%3Bquality_90%3Bformat_webp/https%3A%2F%2Fmedia.zenfs.com%2Fen%2Fap.org%2F0e611c082908b8964eff28d024e6656f.jpg",
"original_image": "https://media.zenfs.com/en/ap.org/0e611c082908b8964eff28d024e6656f.jpg"
}
],
"videos": [
{
"title": "Meghan Markle & Prince Harry’s New Title Push Comes With a Hidden Motive",
"duration": 126,
"thumbnail": "https://media.zenfs.com/en/realitytea_videos_283/3ee7819de4ce8fad25f4ed6021b8400f.png",
"teaser_link": "https://s.yimg.com/vt/de8ec794-9403-3d4e-8c5f-5c0611c9f14b/ac_none_du_4_q_auto_eco_so_0_vc_h264_w_1280_large.mp4",
"full_video_link": "https://edge.api.brightcove.com/playback/v1/accounts/6415665815001/videos/6405095773112/master.m3u8?bcov_auth=eyJhbGciOiJSUzI1NiJ9.eyJhdWQiOlsic3RhdGljLnBsYXliYWNrLmFwaS5icmlnaHRjb3ZlLmNvbSJdLCJhY2NpZCI6IjY0MTU2NjU4MTUwMDEiLCJwa2lkIjoiOTIxODQzMjAtOGZmMy00NWU5LWI2MDAtOTkwZjgyMmM4NjY3IiwiZXhwIjoxNzg5NjAwMTQyLCJpYXQiOjE3ODk1OTY1NDJ9.vxhm-0ql9rnxdE25A9TBmqrAVFjRuyRNqlOSEsR9lb3QqmUl8WOXBwn3Ofh7HtRDFCPhxeFskPky0BgvRh4gCv79ZHfdJoeBenDD0P7-hpp_Uv340KDVdeLAdQ2ZoDLPX1tJiNZpLlCeacUTeXOFbqeHBP7YzYrvt0WLbx57324bLr-JbWHcgy6n4G--QhWPtD8HkGH3-CcrrPAJHVJm3lUBUr5o-G_1S7uLwyTe7Oiljrj-mqat9bk-qG2ccp9KWoDqkXgbWlFedpFJXoqlAP3ETusn_ZOsogBoDWnMhoOTz9fOTgl2zxvYe1ABygl-JvZ_nOyYm7vpiA7yc3QIhA"
}
],
"ai_questions": [
{
"question": "Why did Harry and Meghan switch schools?",
"link": "https://scout.yahoo.com/chat?q=Why%20did%20Harry%20and%20Meghan%20switch%20schools%3F&fr=news-yoh-sctq&fr2=p:news,v:yoh,m:sctq&referrer=https%3A%2F%2Fwww.yahoo.com%2Fnews%2Fus%2Farticles%2Fprince-harry-meghan-move-children-175554628.html&context=A%20spokesperson%20said%20the%20decision%20followed%20talks%20with%20the%20family's%20security%20team%2C%20and%20fans%20are%20zeroing%20in%20on%20the%20sudden%20school%20switch%20after%20the%20children%20had%20just%20started%20in%20England."
}
]
},
...
],
...
}
JSON Structure Overview
{
...
"trending_topics": [
{
"rank": "Integer - Position of the topic in the trending list.",
"title": "String - Title of the trending topic.",
"long_title": "String - Longer, sentence style title of the trending topic.",
"description": "String - Description of why the topic is trending.",
"category": "String - Category of the topic (e.g. Entertainment, News, Sports).",
"hashtag": "String - Top hashtag associated with the topic, when it trends on social media.",
"hashtag_link": "String - Link to the hashtag on the social media platform.",
"platform": "String - Social media platform where the hashtag is trending.",
"badges": "Array - Badges attached to the topic (e.g. Up arrow, New, Trending on TikTok).",
"articles": [
{
"title": "String - Title of the related article.",
"link": "String - Yahoo! link to the article.",
"canonical_link": "String - Link to the article on the original publisher.",
"source": "String - Name of the publisher.",
"thumbnail": "String - Link to the article image.",
"original_image": "String - Link to the original full resolution article image."
},
...
],
"videos": [
{
"title": "String - Title of the related video.",
"duration": "Integer - Duration of the video in seconds.",
"thumbnail": "String - Link to the video thumbnail.",
"teaser_link": "String - Link to a short teaser clip of the video, played on the topic card.",
"full_video_link": "String - Playable video link, included when the full_video_links parameter is enabled. Links expire after one hour; run a new search with no_cache enabled to retrieve fresh links."
},
...
],
"ai_questions": [
{
"question": "String - Suggested question about the topic.",
"link": "String - Link to ask the question on Yahoo! AI."
},
...
]
},
...
],
"categories": [
{
"name": "String - Name of the category.",
"topic_count": "Integer - Number of trending topics in the category."
},
...
],
"milestones": [
{
"rank": "Integer - Rank of the topic the milestone refers to.",
"title": "String - Title of the milestone topic.",
"type": "String - Type of the milestone (e.g. socialChatter).",
"articles": "Array - Related articles, same structure as trending topic articles."
},
...
],
"serpapi_pagination": {
"next": "String - SerpApi URL for the next page of results.",
"next_page_token": "String - Token to retrieve the next page of topics. Only present while more results are available."
},
...
}