Skip to content
The Times of India logo

Media outlet · India

The Times of India News API

World News API is a Times of India API: it indexes over 300 The Times of India articles a day from timesofindia.indiatimes.com and returns them as JSON, searchable back to January 1, 2022, by keyword, category, date and sentiment, or as a Times of India RSS feed. With the World News API you can programmatically access news articles from The Times of India.

The Times of India is the world's largest-selling English-language daily newspaper, covering Indian and international news, business, entertainment, and sports.

The source is based in India and publishes primarily in the language code en. For every API endpoint that supports the news-sources parameter, use https://timesofindia.indiatimes.com to retrieve news exclusively from The Times of India. Historically, you can search news from The Times of India starting January 1, 2022.

news-sources=https://timesofindia.indiatimes.com
GET /search-news?news-sources=https://timesofindia.indiatimes.com
{
  "news": [{
    "title": "...",
    "url": "https://timesofindia.indiatimes.com/...",
    "language": "en",
    "source_country": "in",
    "sentiment": -1 to 1
  }]
}
articles indexed per day
over 300
value for news-sources
https://timesofindia.indiatimes.com
main language code
en
based in
India
searchable since January 1, 2022
2022

API examples

API examples for The Times of India News

Here are some examples showing how to search news, filter by category, and retrieve specific articles from The Times of India. Be sure to check out the in-depth documentation, as each API offers many different parameters to explore.

/search-newsLatest

Search latest news from The Times of India

news-sources=https://timesofindia.indiatimes.com
GET https://api.worldnewsapi.com/search-news?news-sources=https://timesofindia.indiatimes.com

See the full documentation of how to search news.

/search-newsBy keyword

Search The Times of India articles about a specific topic

news-sources=https://timesofindia.indiatimes.comtext=technology
GET https://api.worldnewsapi.com/search-news?news-sources=https://timesofindia.indiatimes.com&text=technology

See the full documentation of how to search news by keyword.

/search-newsBy category

Get The Times of India articles in the politics category

news-sources=https://timesofindia.indiatimes.comcategories=politics
GET https://api.worldnewsapi.com/search-news?news-sources=https://timesofindia.indiatimes.com&categories=politics

See the full documentation of how to search news by category.

/search-newsSentiment

Get The Times of India articles with sentiment analysis

news-sources=https://timesofindia.indiatimes.com
GET https://api.worldnewsapi.com/search-news?news-sources=https://timesofindia.indiatimes.com

Each article in the response includes a sentiment score ranging from -1 (very negative) to 1 (very positive), enabling sentiment analysis of the coverage of The Times of India.

See the full documentation of how to search news.

Search Times of India news in Python

Ten The Times of India articles about technology, each printed with its publish date, sentiment score and title.

  • news-sourceshttps://timesofindia.indiatimes.com
  • texttechnology
  • number10 articles per request
Prefer an SDK? 21 languages
PythonGET /search-news
import requests

response = requests.get(
    "https://api.worldnewsapi.com/search-news",
    params={"news-sources": "https://timesofindia.indiatimes.com", "text": "technology", "number": 10},
    headers={"x-api-key": "YOUR_API_KEY"},
)
for article in response.json()["news"]:
    print(article["publish_date"], article["sentiment"], article["title"])

RSS feed

The Times of India RSS Feed

The Website to RSS Feed endpoint gives you an RSS feed of The Times of India, optionally with the full text of each article: point it at https://timesofindia.indiatimes.com and it returns the latest news from that page as a standard RSS 2.0 feed that any RSS reader can subscribe to. World News API builds the feed from the public pages of timesofindia.indiatimes.com; it is not an official feed of The Times of India.

  • urlRequired. The url of the site for which an RSS feed should be created.
  • extract-newsOptional. Whether to extract the news for each link instead of just returning the link.
  • api-keyRequired. Your API key.

Costs 1 point per call, plus 0.5 points per item when extract-news=true.

Website to RSS Feed docs
GET https://api.worldnewsapi.com/feed.rss?url=https://timesofindia.indiatimes.com&api-key=YOUR_API_KEY
200 OKapplication/xml
<rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:media="http://search.yahoo.com/mrss/" xmlns:atom="http://www.w3.org/2005/Atom">
  <channel>
    <title>...</title>
    <link>https://timesofindia.indiatimes.com</link>
    <lastBuildDate>...</lastBuildDate>
    <item>
      <title>...</title>
      <link>https://timesofindia.indiatimes.com/...</link>
      <guid isPermaLink="true">...</guid>
    </item>
    ...
  </channel>
</rss>

Put this URL, with your own API key, into any RSS reader. Each call costs 1 point, so a reader that checks the feed once an hour uses 24 of the free plan's 50 daily points.

Keep the feed URL private: it contains your API key, and anyone who has it can use up your points and, on a paid plan, run up overage charges. Use a self-hosted reader or a desktop reader without a cloud sync account: a cloud reader, or a desktop app that syncs through one, stores the URL, key included, on its servers. A reader that can send request headers can pass the key as x-api-key instead (see Authentication), which keeps it out of the URL; a cloud reader still stores it on its servers. If a feed URL leaks, use Generate New API Key in your console. The old key then stops working in every app that uses it, so put the new key into each of them.

GET https://api.worldnewsapi.com/feed.rss?url=https://timesofindia.indiatimes.com&extract-news=true&api-key=YOUR_API_KEY

With extract-news=true the API extracts the article behind each link, for 0.5 points per item on top of the 1 point per call. See the Website to RSS Feed documentation for all parameters and an example feed.

Frequently Asked Questions about The Times of India News API

Is this an official Times of India API?

No. World News API indexes the public articles of The Times of India and is not affiliated with The Times of India.

How do I get an RSS feed for The Times of India?

Subscribe to https://api.worldnewsapi.com/feed.rss?url=https://timesofindia.indiatimes.com&api-key=YOUR_API_KEY in any RSS reader, with your own API key, and keep that URL private because it contains your key. World News API builds the feed from timesofindia.indiatimes.com; it is not an official feed of The Times of India. Add extract-news=true to get the article behind each link; a call costs 1 point, plus 0.5 points per item with extract-news. See the RSS feed section.

How do I get news articles from The Times of India via API?

Use the Search News endpoint with the parameter news-sources=https://timesofindia.indiatimes.com. This returns only articles published by The Times of India. You can further filter by keyword, category, date range, and more.

How many articles does World News API index from The Times of India daily?

World News API indexes over 300 articles per day from The Times of India. Coverage includes all major sections and categories published on timesofindia.indiatimes.com.

Can I search historical articles from The Times of India?

Yes, World News API stores articles from The Times of India starting from January 1, 2022. Use the earliest-publish-date and latest-publish-date parameters in the Search News endpoint to query historical articles.

Can I combine The Times of India with other news sources in one API call?

Yes, the news-sources parameter accepts a comma-separated list of source URLs. For example, you can retrieve news from The Times of India and other outlets in a single request.

Is there a free plan to access news from The Times of India?

Yes. World News API offers a free plan with 50 daily API points, enough to start building and testing with news data from The Times of India. Sign up for a free API key to get started. Paid plans start at $39/month for higher volume needs.

Start searching Times of India news today.

Create a free key, add news-sources=https://timesofindia.indiatimes.com to your request and read the results as JSON.