newspaperNews API

API for fetching the latest news articles and headlines

News API Documentation

A News API is like a personal news editor, delivering a curated stream of news from various sources. It helps you stay up-to-date on current events, explore different news perspectives, and even build news-related apps, making your news experience more personalized and engaging. Think of it as your gateway to a world of news at your fingertips!

Base URL

The base URL for the Dictionary API is:

https://santechapi.vercel.app

Authentication

headers : {
"token" : {YOUR API KEY}
}

Endpoint: news/search/{:q}

Parameters:

  • {q}: Random input text from the user

HTTP Method: Get

Example request

GET /news/search/sakshi

Example Response

Error Handling

In case of an error, the API will respond with an appropriate HTTP status code and an error message in the response body.

Error Response:

402

Last updated

Was this helpful?