News api
Overview
SLUG: NEWS_API
Description
News API is a simple HTTP REST API for searching and retrieving live articles from all over the web.
Authentication Details
API Key
Connecting to News api
Create an auth config
Use the dashboard to create an auth config for the News api toolkit. This allows you to connect multiple News api accounts to Composio for agents to use.
Create and Get auth config ID
Click “Create News api Auth Config”. After creation, copy the displayed ID starting with ac_
. This is your auth config ID. This is not a sensitive ID — you can save it in environment variables or a database.
This ID will be used to create connections to the toolkit for a given user.
Connect Your Account
Using API Key
Tools
Executing tools
To prototype you can execute some tools to see the responses and working on the [News api toolkit’s playground](https://app.composio.dev/app/News api)
OpenAI (Python)
Anthropic (TypeScript)
Google (Python)
Vercel (TypeScript)
Tool List
NEWS_API_GET_EVERYTHING
Tool Name: Get Everything
Description
Action Parameters
Action Response
NEWS_API_GET_SOURCES
Tool Name: Get Sources
Description
Action Parameters
Action Response
NEWS_API_GET_TOP_HEADLINES
Tool Name: Get Top Headlines
Description
Action Parameters
Action Response