News Search Client
The News Search API lets you send a search query to Bing and get back a list of news that are relevant to the search query. This section provides technical…
Developer tools#openapi#developer-tools#cloud
Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.
Overview
The News Search API lets you send a search query to Bing and get back a list of news that are relevant to the search query. This section provides technical details about the query parameters and headers that you use to request news and the JSON response objects that contain them. For examples that show how to make requests, see Searching the web for news.
Endpoints 3
NewsCategory
- GETThe News Category API lets you search on Bing and get back a list of top news articles by category. This section provides technical details about the query parameters and headers that you use to request news and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the web for news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web).
/news?cc=string&category=string&count=0&headlineCount=0&mkt=string&offset=0&originalImg=true&safeSearch=Off&setLang=string&textDecorations=true&textFormat=Raw
NewsSearch
- GETThe News Search API lets you send a search query to Bing and get back a list of news that are relevant to the search query. This section provides technical details about the query parameters and headers that you use to request news and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the web for news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web).
/news/search?cc=string&count=0&freshness=Day&mkt=string&offset=0&originalImg=true&q=string&safeSearch=Off&setLang=string&sortBy=string&textDecorations=true&textFormat=Raw
NewsTrendingTopics
- GETThe News Trending Topics API lets you search on Bing and get back a list of trending news topics that are currently trending on Bing. This section provides technical details about the query parameters and headers that you use to request news and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the web for news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web).
/news/trendingtopics?cc=string&count=0&mkt=string&offset=0&safeSearch=Off&setLang=string&since=0&sortBy=string&textDecorations=true&textFormat=Raw
API details
- Base URL
https://api.cognitive.microsoft.com/bing/v7.0- Authentication
- An API key in the Ocp-Apim-Subscription-Key header
- Operations
- 3 operations on 3 pathsGET 3
- Main resources
- NewsCategory 1NewsSearch 1NewsTrendingTopics 1
- Response formats
application/json- Description format
- Swagger 2.0, API version
1.0 - Links
- OpenAPI document
- Listed from
- APIs.guru OpenAPI Directory (CC0-1.0)
Source updated
How to test the News Search Client in Swastik Codes
- Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
- Fork it into your workspaceChoose a workspace. You get your own copy of the News Search Client collection, without the publisher's secrets.
- Add your credentialsThis API uses an API key in the Ocp-Apim-Subscription-Key header. Add yours in the collection's variables or an environment; the requests already reference it.
- Send a requestPick an endpoint, for example “The News Category API lets you search on Bing and get back a list of top news articles by category. This section provides technical details about the query parameters and headers that you use to request news and the JSON response objects that contain them. For examples that show how to make requests, see [Searching the web for news](https://docs.microsoft.com/en-us/azure/cognitive-services/bing-news-search/search-the-web).” (GET /news?cc=string&category=string&count=0&headlineCount=0&mkt=string&offset=0&originalImg=true&safeSearch=Off&setLang=string&textDecorations=true&textFormat=Raw), and press Send. Check the response, add tests and run the whole collection with the runner.
Frequently asked questions
What is the News Search Client?
The News Search API lets you send a search query to Bing and get back a list of news that are relevant to the search query. This section provides technical… It is listed under Developer tools and has 3 endpoints.
Who publishes the News Search Client?
It is listed from Microsoft's public API description (an OpenAPI document), not published by Microsoft on Swastik Codes. Anyone who controls microsoft.com can claim the profile by adding a DNS TXT record.
What is the base URL of the News Search Client?
Requests go to https://api.cognitive.microsoft.com/bing/v7.0. Endpoint paths are added to this base URL.
How do I authenticate with the News Search Client?
With an API key in the Ocp-Apim-Subscription-Key header.
How many endpoints does the News Search Client have?
3 operations on 3 paths (3 GET). The largest groups are NewsCategory, NewsSearch, NewsTrendingTopics.
Is forking the News Search Client free?
Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.