{"openapi":"3.1.0","info":{"title":"News API - Search, Headlines & AI Summaries","description":"News search and top headlines for 70 countries in 38 languages, by topic or city, plus an AI briefing of any subject with cited sources.","version":"v1"},"servers":[{"url":"https://news-api-search-headlines-ai-summaries.p.rapidapi.com","description":"RapidAPI"}],"paths":{"/v1/news/search":{"get":{"tags":["Search"],"summary":"Search news articles by keyword, country, language and date","description":"Search news articles by keywords: headline, outlet, time and link, up\nto 100 per call, duplicates removed. Filter by edition, period or dates,\nand outlet. When Google News is busy, answered from the GDELT Project\n(`provider`: gdelt, see `notice`). 1 credit.","operationId":"searchNews","parameters":[{"name":"q","in":"query","required":true,"schema":{"type":"string","maxLength":200,"description":"Search words. Google News syntax works: \"exact phrase\", OR, -exclude, intitle:word.","examples":["electric vehicles"],"title":"Q"},"description":"Search words. Google News syntax works: \"exact phrase\", OR, -exclude, intitle:word."},{"name":"country","in":"query","required":false,"schema":{"type":"string","maxLength":2,"description":"ISO country code of the news edition (default US, or the language's home country). See List News Editions.","examples":["US"],"title":"Country"},"description":"ISO country code of the news edition (default US, or the language's home country). See List News Editions."},{"name":"language","in":"query","required":false,"schema":{"type":"string","maxLength":2,"description":"ISO 639-1 language of the edition (default: the country's main language), e.g. fr for Canada in French.","examples":["en"],"title":"Language"},"description":"ISO 639-1 language of the edition (default: the country's main language), e.g. fr for Canada in French."},{"name":"period","in":"query","required":false,"schema":{"enum":["1h","6h","12h","1d","3d","7d","30d","1y","any"],"type":"string","description":"How far back to search (ignored with dates).","default":"7d","title":"Period"},"description":"How far back to search (ignored with dates)."},{"name":"from_date","in":"query","required":false,"schema":{"type":"string","maxLength":10,"description":"First day, YYYY-MM-DD.","examples":["2026-11-01"],"title":"From Date"},"description":"First day, YYYY-MM-DD."},{"name":"to_date","in":"query","required":false,"schema":{"type":"string","maxLength":10,"description":"Last day, YYYY-MM-DD (included).","examples":["2026-11-07"],"title":"To Date"},"description":"Last day, YYYY-MM-DD (included)."},{"name":"source","in":"query","required":false,"schema":{"type":"string","maxLength":100,"description":"Only this outlet's domain, e.g. reuters.com.","examples":["reuters.com"],"title":"Source"},"description":"Only this outlet's domain, e.g. reuters.com."},{"name":"sort","in":"query","required":false,"schema":{"type":"string","pattern":"^(relevance|date)$","description":"relevance (Google News order) or date (newest first).","default":"relevance","title":"Sort"},"description":"relevance (Google News order) or date (newest first)."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Articles, 1-100.","default":20,"title":"Limit"},"description":"Articles, 1-100."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsSearchResponse"},"examples":{"Search News":{"summary":"Search News","value":{"edition":{"country":"US","language":"en"},"period":"7d","articles":[{"source":{"name":"Reuters","url":"https://www.reuters.com","domain":"reuters.com"},"published_at":"2026-11-24T17:06:27Z","related":[{"source":"CNBC"}]}],"provider":"google_news"}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Search News"}},"/v1/news/headlines":{"get":{"tags":["Headlines"],"summary":"Top stories by country and topic, or local news of a city","description":"The stories Google News puts first right now in an edition: top\nstories or a section (world, nation, business, technology,\nentertainment, sports, science, health), or the local news of a city or\nregion. Each story lists the other outlets covering it. 1 credit.","operationId":"getTopHeadlines","parameters":[{"name":"topic","in":"query","required":false,"schema":{"enum":["top","world","nation","business","technology","entertainment","sports","science","health"],"type":"string","description":"Section of the edition.","default":"top","title":"Topic"},"description":"Section of the edition."},{"name":"location","in":"query","required":false,"schema":{"type":"string","maxLength":80,"description":"City or region for local news (replaces topic).","examples":["Chicago"],"title":"Location"},"description":"City or region for local news (replaces topic)."},{"name":"country","in":"query","required":false,"schema":{"type":"string","maxLength":2,"description":"ISO country code of the news edition (default US, or the language's home country). See List News Editions.","examples":["US"],"title":"Country"},"description":"ISO country code of the news edition (default US, or the language's home country). See List News Editions."},{"name":"language","in":"query","required":false,"schema":{"type":"string","maxLength":2,"description":"ISO 639-1 language of the edition (default: the country's main language), e.g. fr for Canada in French.","examples":["en"],"title":"Language"},"description":"ISO 639-1 language of the edition (default: the country's main language), e.g. fr for Canada in French."},{"name":"limit","in":"query","required":false,"schema":{"type":"integer","maximum":100,"minimum":1,"description":"Stories, 1-100.","default":20,"title":"Limit"},"description":"Stories, 1-100."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsHeadlinesResponse"},"examples":{"Get Top Headlines":{"summary":"Get Top Headlines","value":{"topic":"business","location":"Chicago","edition":{"country":"US","language":"en"},"stories":[{"source":{"name":"Reuters","url":"https://www.reuters.com","domain":"reuters.com"},"published_at":"2026-11-24T17:06:27Z","related":[{"source":"CNBC"}]}]}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Get Top Headlines"}},"/v1/news/briefing":{"get":{"tags":["AI Briefing"],"summary":"AI briefing of a subject, section or city: key points, angles, sources","description":"Get an AI briefing on a subject, section or city, written from up to 80\nheadlines: summary, 3-7 key points, outlet angles, what to watch, entities\nand tone, each point citing its `sources`. Give exactly one of q, topic or\nlocation. 404 `no_news` (not billed). 10 credits.","operationId":"getNewsBriefing","parameters":[{"name":"q","in":"query","required":false,"schema":{"type":"string","maxLength":200,"description":"Subject to brief on (search words). Give one of q, topic or location.","examples":["COP31"],"title":"Q"},"description":"Subject to brief on (search words). Give one of q, topic or location."},{"name":"topic","in":"query","required":false,"schema":{"enum":["top","world","nation","business","technology","entertainment","sports","science","health"],"type":"string","description":"Or a section of the edition, e.g. business.","title":"Topic"},"description":"Or a section of the edition, e.g. business."},{"name":"location","in":"query","required":false,"schema":{"type":"string","maxLength":80,"description":"Or a city or region (local news), e.g. Chicago; not with q.","title":"Location"},"description":"Or a city or region (local news), e.g. Chicago; not with q."},{"name":"country","in":"query","required":false,"schema":{"type":"string","maxLength":2,"description":"ISO country code of the news edition (default US, or the language's home country). See List News Editions.","examples":["US"],"title":"Country"},"description":"ISO country code of the news edition (default US, or the language's home country). See List News Editions."},{"name":"language","in":"query","required":false,"schema":{"type":"string","maxLength":2,"description":"ISO 639-1 language of the edition (default: the country's main language), e.g. fr for Canada in French.","examples":["en"],"title":"Language"},"description":"ISO 639-1 language of the edition (default: the country's main language), e.g. fr for Canada in French."},{"name":"period","in":"query","required":false,"schema":{"enum":["1h","6h","12h","1d","3d","7d","30d","1y","any"],"type":"string","description":"Window for q (default 1d, widened to 7d when the subject is quiet).","title":"Period"},"description":"Window for q (default 1d, widened to 7d when the subject is quiet)."},{"name":"output_language","in":"query","required":false,"schema":{"type":"string","maxLength":2,"description":"Language of the briefing (default: the edition's).","examples":["en"],"title":"Output Language"},"description":"Language of the briefing (default: the edition's)."}],"responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsBriefingResponse"},"examples":{"Get News Briefing":{"summary":"Get News Briefing (real response)","value":{"query":"COP31","edition":{"country":"US","language":"en"},"period":"1d","language":"en","headline":"COP31 climate summit concludes without a final agreement following deadlock over fossil fuels.","summary":"The COP31 climate summit in Antalya ended without an overarching deal as nations failed to reach a consensus on fossil fuel commitments. While many observers characterize the event as a significant failure and a diplomatic crisis, others argue that the green energy transition continues independently of the summit's outcome. Calls for urgent reform of the UN climate negotiation process have emerged in the wake of the collapse.","key_points":[{"text":"COP31 concluded without a final agreement due to deep divisions among nations regarding fossil fuel phaseout language.","sources":[2,12,40,46,54]},{"text":"The European Union is actively seeking an overhaul of the UN climate summit consensus-based decision-making process.","sources":[41,62,63]}],"angles":[{"text":"Some outlets frame the event as a catastrophic failure of diplomacy and a 'darkest moment' for climate action.","sources":[15,18,49,53]},{"text":"Other perspectives emphasize that the failure of the summit does not equate to a failure of the broader green energy transition.","sources":[16,24,25,71]}],"what_to_watch":[{"text":"Potential reforms to the UN climate summit negotiation structure.","sources":[18,41,63]}],"entities":{"organizations":["United Nations","European Union","African Development Bank Group","Human Rights Watch"],"people":["Recep Tayyip Erdogan"],"places":["Antalya","Turkey","Nepal"]},"sentiment":"negative","coverage":{"articles":80,"outlets":72,"oldest":"2026-11-23T20:25:01Z","newest":"2026-11-24T19:25:20Z"},"sources":[{"n":16,"title":"COMMENTARY: COP31 ended without a deal. That doesn't mean it was a failure","source":"Reuters","url":"https://news.google.com/rss/articles/CBMiyAFBVV95cUxNZGZKQVhGc3JMVDhGQTMx...","published_at":"2026-11-24T15:29:45Z"}],"note":"Written by AI from 80 headlines, not from the full articles. Check the sources before you quote it."}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"404":{"description":"Nothing found for this identifier. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"Get News Briefing"}},"/v1/news/editions":{"get":{"tags":["Headlines"],"summary":"Countries and languages you can ask for, and the topics","description":"Every news edition: its country code, name and languages (the\ndefault first), plus the headline topics. 1 credit.","operationId":"listNewsEditions","responses":{"200":{"description":"Successful Response","content":{"application/json":{"schema":{"$ref":"#/components/schemas/NewsEditionsResponse"},"examples":{"List News Editions":{"summary":"List News Editions","value":{"editions":[{"country":"CA","country_name":"Canada","languages":["en","fr"]}]}}}}}},"400":{"description":"Invalid input, or the target could not be processed (see `error.code`).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"401":{"description":"Missing proxy secret (call through RapidAPI with your key).","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"403":{"description":"Invalid proxy secret.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"429":{"description":"Daily limit of your plan reached.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}},"503":{"description":"The AI provider failed (`ai_error`) or capacity is temporarily exhausted (`capacity_exhausted`); retry. Not billed.","content":{"application/json":{"schema":{"$ref":"#/components/schemas/ErrorEnvelope"}}}}},"x-rapidapi-endpoint":"List News Editions"}}},"components":{"schemas":{"ErrorBody":{"properties":{"status":{"type":"integer","title":"Status","examples":[400]},"code":{"type":"string","title":"Code","examples":["invalid_url"]},"message":{"type":"string","title":"Message","examples":["A website URL is required."]}},"type":"object","required":["status","code","message"],"title":"ErrorBody"},"ErrorEnvelope":{"properties":{"error":{"$ref":"#/components/schemas/ErrorBody"}},"type":"object","required":["error"],"title":"ErrorEnvelope"},"NewsArticle":{"properties":{"title":{"type":"string","title":"Title","description":"Headline, without the outlet's name."},"url":{"type":"string","title":"Url","description":"Link to the article (opens it through Google News; the publisher's own URL when `provider` is gdelt)."},"source":{"$ref":"#/components/schemas/NewsSource"},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published At","description":"ISO 8601, UTC.","examples":["2026-11-24T17:06:27Z"]},"related":{"anyOf":[{"items":{"$ref":"#/components/schemas/NewsRelatedArticle"},"type":"array"},{"type":"null"}],"title":"Related","description":"Other outlets covering the same story (top stories only)."}},"type":"object","required":["title","url","source"],"title":"NewsArticle"},"NewsBriefingResponse":{"properties":{"query":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Query"},"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic"},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location"},"edition":{"$ref":"#/components/schemas/NewsEdition"},"period":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Period","description":"Time window searched (query briefings).","examples":["1d"]},"language":{"type":"string","title":"Language","description":"Language of the briefing.","examples":["en"]},"headline":{"type":"string","title":"Headline"},"summary":{"type":"string","title":"Summary"},"key_points":{"items":{"$ref":"#/components/schemas/NewsPoint"},"type":"array","title":"Key Points"},"angles":{"items":{"$ref":"#/components/schemas/NewsPoint"},"type":"array","title":"Angles","description":"How outlets frame the story differently, when they do."},"what_to_watch":{"items":{"$ref":"#/components/schemas/NewsPoint"},"type":"array","title":"What To Watch","description":"Upcoming events or open questions the coverage mentions."},"entities":{"$ref":"#/components/schemas/NewsEntities"},"sentiment":{"type":"string","enum":["positive","negative","neutral","mixed"],"title":"Sentiment"},"coverage":{"$ref":"#/components/schemas/NewsCoverage"},"sources":{"items":{"$ref":"#/components/schemas/NewsCitedArticle"},"type":"array","title":"Sources","description":"The articles cited above."},"note":{"type":"string","title":"Note"},"provider":{"anyOf":[{"type":"string","enum":["google_news","gdelt"]},{"type":"null"}],"title":"Provider","description":"Where the articles come from: google_news, or gdelt (the GDELT Project, https://www.gdeltproject.org/) when Google News did not answer in time.","examples":["google_news"]}},"type":"object","required":["edition","language","headline","summary","key_points","angles","what_to_watch","entities","sentiment","coverage","sources","note"],"title":"NewsBriefingResponse"},"NewsCitedArticle":{"properties":{"n":{"type":"integer","title":"N","description":"Number used in the citations."},"title":{"type":"string","title":"Title"},"source":{"type":"string","title":"Source","description":"Outlet name."},"url":{"type":"string","title":"Url"},"published_at":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Published At"}},"type":"object","required":["n","title","source","url"],"title":"NewsCitedArticle"},"NewsCoverage":{"properties":{"articles":{"type":"integer","title":"Articles","description":"Headlines read by the AI."},"outlets":{"type":"integer","title":"Outlets","description":"Distinct outlets among them."},"oldest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Oldest"},"newest":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Newest"}},"type":"object","required":["articles","outlets"],"title":"NewsCoverage"},"NewsEdition":{"properties":{"country":{"type":"string","title":"Country","description":"ISO 3166-1 country code.","examples":["US"]},"language":{"type":"string","title":"Language","description":"ISO 639-1 language code.","examples":["en"]}},"type":"object","required":["country","language"],"title":"NewsEdition"},"NewsEditionInfo":{"properties":{"country":{"type":"string","title":"Country","examples":["CA"]},"country_name":{"type":"string","title":"Country Name","examples":["Canada"]},"languages":{"items":{"type":"string"},"type":"array","title":"Languages","description":"Languages of the edition, the default first.","examples":[["en","fr"]]}},"type":"object","required":["country","country_name","languages"],"title":"NewsEditionInfo"},"NewsEditionsResponse":{"properties":{"count":{"type":"integer","title":"Count"},"editions":{"items":{"$ref":"#/components/schemas/NewsEditionInfo"},"type":"array","title":"Editions"},"topics":{"items":{"type":"string"},"type":"array","title":"Topics"}},"type":"object","required":["count","editions","topics"],"title":"NewsEditionsResponse"},"NewsEntities":{"properties":{"organizations":{"items":{"type":"string"},"type":"array","title":"Organizations"},"people":{"items":{"type":"string"},"type":"array","title":"People","description":"Public figures."},"places":{"items":{"type":"string"},"type":"array","title":"Places"}},"type":"object","title":"NewsEntities"},"NewsHeadlinesResponse":{"properties":{"topic":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Topic","examples":["business"]},"location":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Location","examples":["Chicago"]},"edition":{"$ref":"#/components/schemas/NewsEdition"},"count":{"type":"integer","title":"Count"},"stories":{"items":{"$ref":"#/components/schemas/NewsArticle"},"type":"array","title":"Stories","description":"Stories in the order Google News ranks them, each with the other outlets covering it."}},"type":"object","required":["edition","count","stories"],"title":"NewsHeadlinesResponse"},"NewsPoint":{"properties":{"text":{"type":"string","title":"Text"},"sources":{"items":{"type":"integer"},"type":"array","title":"Sources","description":"Numbers (`n`) of the articles in `sources` that support it."}},"type":"object","required":["text","sources"],"title":"NewsPoint"},"NewsRelatedArticle":{"properties":{"title":{"type":"string","title":"Title"},"url":{"type":"string","title":"Url"},"source":{"type":"string","title":"Source","description":"Outlet name.","examples":["CNBC"]}},"type":"object","required":["title","url","source"],"title":"NewsRelatedArticle"},"NewsSearchResponse":{"properties":{"query":{"type":"string","title":"Query"},"edition":{"$ref":"#/components/schemas/NewsEdition"},"period":{"type":"string","title":"Period","examples":["7d"]},"count":{"type":"integer","title":"Count"},"articles":{"items":{"$ref":"#/components/schemas/NewsArticle"},"type":"array","title":"Articles"},"provider":{"anyOf":[{"type":"string","enum":["google_news","gdelt"]},{"type":"null"}],"title":"Provider","description":"Where the articles come from: google_news, or gdelt (the GDELT Project, https://www.gdeltproject.org/) when Google News did not answer in time.","examples":["google_news"]},"notice":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Notice","description":"What differs when the articles come from GDELT."}},"type":"object","required":["query","edition","period","count","articles"],"title":"NewsSearchResponse"},"NewsSource":{"properties":{"name":{"type":"string","title":"Name","examples":["Reuters"]},"url":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Url","examples":["https://www.reuters.com"]},"domain":{"anyOf":[{"type":"string"},{"type":"null"}],"title":"Domain","examples":["reuters.com"]}},"type":"object","required":["name"],"title":"NewsSource"}},"securitySchemes":{"RapidAPIKey":{"type":"apiKey","in":"header","name":"X-RapidAPI-Key"},"RapidAPIHost":{"type":"apiKey","in":"header","name":"X-RapidAPI-Host"}}},"tags":[{"name":"Search","description":"News articles matching your words, by country, language and date."},{"name":"Headlines","description":"Top stories by country, topic or city, with related coverage."},{"name":"AI Briefing","description":"A cited briefing of any subject: key points, angles, what to watch."}],"security":[{"RapidAPIKey":[],"RapidAPIHost":[]}]}