Trigger on event
- Listen for a new event
- Parse and validate the payload
- Take an action with the linked tool
4 tools available
News API is a simple HTTP REST API for searching and retrieving live articles from all over the web.
Connect NewsAPI to Definable to automate repetitive tasks, sync data with the rest of your stack, trigger on real-world events. Personas call NewsAPI's 4 tools directly from chat or scheduled flows. You can wire it into any persona to read, write, and react when an event fires.
Every NewsAPI action below is a callable tool any Definable persona can invoke.
Tool to search through every article published by over 150,000 sources. At least one of q, sources, language, or domains must be set or the API returns a parametersMissing error. Historical date range depends on your News API plan tier (free plans limited to ~1 month). No country parameter exists; target geography via sources, domains, or country-specific terms in q. Burst requests may trigger HTTP 429; apply backoff on throttling errors.
Tool to fetch available news sources. Use when you need to retrieve a list of publishers by optional filters like category, language, or country. Source IDs returned here are the only valid IDs for filtering in NEWS_API_GET_EVERYTHING or NEWS_API_GET_TOP_HEADLINES — unrecognized IDs cause silently empty results.
Tool to retrieve live top and breaking headlines; does not support historical or date-bounded queries (use NEWS_API_GET_EVERYTHING for past date ranges). Results favor major outlets; use NEWS_API_GET_EVERYTHING or COMPOSIO_SEARCH_WEB for niche publications. Use when you need current headlines filtered by country, category, source(s), or keywords.
Tool to fetch live article metadata from a news source using the legacy v1 API. Use when you need headlines from a specific source identifier. This v1 endpoint has been superseded by /v2/top-headlines.
Anything NewsAPI exposes through its API. Common news & lifestyle workflows on Definable include automate repetitive tasks, sync data with the rest of your stack, trigger on real-world events. Personas can call any of the 4 NewsAPI tools directly, then chain the result into another integration without you writing code.
NewsAPI uses API_KEY on Definable. You connect once from the integrations page, scoped to the permissions you choose, and from then on any persona that has the integration enabled can act on your behalf. Tokens are encrypted at rest and rotated automatically.
Yes — every Definable plan, including Starter, includes access to all 4 NewsAPI tools. You only need a separate NewsAPI subscription if NewsAPI itself charges per seat or per API call.
Every call from a persona to NewsAPI is logged with the user, persona, prompt, and response. Tokens never leave Definable's secrets vault, scopes are configurable per persona, and you can revoke access at any time from the integration page.
Sign up for Definable, open the integrations page, find NewsAPI, and connect via OAuth or API key. You can immediately attach NewsAPI to any persona and start running workflows. The free Starter plan includes 5,000 credits/month.
Definable exposes all 4 NewsAPI actions as callable tools — including `Get Everything`, `Get Sources`, `Get Top Headlines`, plus 1 more. Each tool gets a typed parameter schema so personas know exactly how to call it.
Wire it up in minutes. No coding required.