News API

Deliver breaking news and article intelligence through conversational AI

Your AI agent searches 150,000+ news sources in real time when users ask about current events, industry trends, or competitor coverage. Headlines surface instantly inside conversations, keeping your audience informed without leaving the chat.

Chosen by 800+ global brands across industries

Real-time news retrieval at conversation speed

Your AI agent searches articles, fetches headlines, and filters sources across 14 languages and 55 countries, turning every conversation into a news intelligence hub.

Search All Articles

A user asks about a topic in the news. Your AI agent calls the Everything endpoint, searching millions of articles from the past five years by keyword, source, language, or date range, and returns the most relevant results instantly.

Fetch Top Headlines

Someone wants today's breaking news for a specific country or category. The agent hits the Top Headlines endpoint, pulling live headlines filtered by country code, topic category, or keyword, and delivers them in the conversation.

Browse News Sources

A user asks which publishers cover technology news in English. The agent queries the Sources endpoint, filtering by category, language, and country, then returns a curated list of available news publishers and their descriptions.

Filter by Domain

A researcher wants articles only from specific publications. The agent uses domain filtering on the Everything endpoint, including or excluding particular news domains so results come exclusively from trusted sources the user specifies.

Sort by Relevance

When a user searches a broad topic, the agent sorts results by relevancy, popularity, or publication date using the sortBy parameter. This ensures the most useful articles surface first, whether the user wants the newest or most widely shared stories.

Date-Range Article Search

A user needs articles published during a specific period. The agent applies from and to date filters on the Everything endpoint, narrowing results to the exact timeframe and returning only articles published within those dates.

News API

Use Cases

News intelligence in action

See how businesses embed real-time news data into AI conversations for media monitoring, competitive intelligence, and audience engagement.

Competitive Intelligence on Demand

A marketing manager asks your AI agent about recent media coverage of a competitor. The agent searches the Everything endpoint for the competitor's name, filters to the past 30 days, sorts by popularity, and returns the top articles with titles and source links. The manager gets a competitive brief in seconds instead of spending an hour scanning Google News manually.

Morning Headline Briefings via Chat

An executive opens their WhatsApp every morning and messages your AI agent for a news summary. The agent fetches the day's top headlines from the Top Headlines endpoint, filtered to their country and preferred categories like business and technology. A personalized morning briefing arrives in seconds, no app switching required.

Industry Trend Research for Content Teams

A content strategist asks the agent for trending topics in cybersecurity over the past week. The agent searches articles with relevant keywords, restricts results to the last seven days, and surfaces the most popular stories. The strategist identifies trending angles for their next blog post without leaving the conversation.

Try
News API

News API

FAQs

Frequently Asked Questions

How does the AI agent search articles using News API?

The agent uses the Everything endpoint to search across 150,000+ sources by keyword, phrase, domain, language, and date range. It supports advanced operators like AND, OR, and NOT in the query parameter, giving precise control over which articles are returned during a conversation.

Can the agent fetch headlines for a specific country and category simultaneously?

Yes. The Top Headlines endpoint accepts both a country code (like 'us' or 'gb') and a category (like 'technology' or 'business') in the same request. The agent combines these filters to deliver localized, topic-specific headlines in a single response.

What languages and countries does the News API integration support?

News API covers articles in 14 languages including English, Spanish, French, German, and Chinese, sourced from publishers in 55 countries. The agent applies ISO-639-1 language codes and ISO 3166-1 country codes to filter results by region and language.

Does Tars store the news articles returned from the API?

No. Article data is fetched live from News API during the conversation and presented to the user immediately. Tars does not cache or store article content, headlines, or source metadata. Each query produces a fresh result set from the API.

How current are the articles the agent retrieves?

The Top Headlines endpoint returns live breaking news updated in near real-time. The Everything endpoint covers articles from the past five years. For time-sensitive queries, the agent uses date filters and sorts by publishedAt to ensure the most recent content appears first.

Can I restrict the agent to only return articles from trusted sources?

Yes. You can configure domain allow-lists using the domains parameter, limiting results to specific publishers like reuters.com or bbc.co.uk. You can also exclude domains you consider unreliable using the excludeDomains parameter. The agent applies these filters on every query.

How is this different from a regular Google News search?

Google News requires users to leave the conversation and browse a separate interface. Tars delivers structured article results directly inside the chat, with programmatic filtering by source, date, language, and category. Users get curated, API-driven news intelligence without context switching.

What happens if a search query returns no matching articles?

The agent informs the user that no articles matched their criteria and suggests broadening the search, adjusting the date range, or trying different keywords. It handles empty results gracefully without leaving the user at a dead end.

How to add Tools to your AI Agent

Supercharge your AI Agent with Tool Integrations

Don't limit your AI Agent to basic conversations. Watch how to configure and add powerful tools making your agent smarter and more functional.

Privacy & Security

We’ll never let you lose sleep over privacy and security concerns

At Tars, we take privacy and security very seriously. We are compliant with GDPR, ISO, SOC 2, and HIPAA.

GDPR
ISO
SOC 2
HIPAA

Still scrolling? We both know you're interested.

Let's chat about AI Agents the old-fashioned way. Get a demo tailored to your requirements.

Schedule a Demo