Back to APIs
GET

Bing News API

Search Bing News for current events and headlines.

Endpoint

GET https://api.serpii.com/v1/bing/news

Parameters

NameTypeRequiredDescription
qstring
Required
News search query
freshnessstring
Optional
Time filter: day, week, month

Code Examples

cURL

curl -X GET "https://api.serpii.com/v1/bing/news?q=YOUR_VALUE" \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json"

Node.js

import { Serpii } from 'serpii';

const serpii = new Serpii('YOUR_API_KEY');

const response = await serpii.bing_news({
  q: 'YOUR_VALUE',
});

console.log(response);

Python

from serpii import Serpii

client = Serpii('YOUR_API_KEY')

response = client.bing_news(
    q='YOUR_VALUE',
)

print(response)

Example Response

{
  "success": true,
  "query": "example query",
  "intent": "informational",
  "sentiment": "neutral",
  "clusters": ["topic1", "topic2"],
  "entities": [
    {"name": "Entity Name", "type": "EntityType"}
  ],
  "organic_results": [
    {
      "position": 1,
      "title": "Result Title",
      "url": "https://example.com",
      "snippet": "Result snippet text...",
      "domain": "example.com"
    }
  ],
  "related_searches": ["related query 1", "related query 2"],
  "credits_used": 1,
  "credits_remaining": 4999
}