Cognition API
Lists articles exposed by Cognition's live blog index in source order, with cursors for older entries. Retrieves an individual article by its source slug or canonical URL, including publication and update dates, authors, categories, summary, and full public text when present. The API reads the source live and does not maintain a stored archive.
Endpoint health
Loading verification…
Connect your agent
Connect through MCP so your agent can find this API, read its docs, and call its endpoints.
Add the server from your terminal.
claude mcp add --transport http agent-data https://agent-data.motie.dev/mcpIn Claude Code, run /mcp, select agent-data, then Authenticate. Sign in to your agent-data account in the browser.
Then ask your agent to use the Cognition API for your task.
Call it over HTTP
Get an API keySign up free, generate an API key, and set it as AGENT_DATA_API_KEY in your environment. Your first 100 calls each month are free.
curl --request GET --get 'https://api.agent-data.dev/cognition-ai/v1/articles' \
--header "Authorization: Bearer $AGENT_DATA_API_KEY"Endpoints
Inputs and response fields for every endpoint in this API.
GETArticles/v1/articles
Reads the current source-rendered article index, newest first. Pass the opaque `pagination.next_cursor` back as `cursor` to continue through the live source order; no stored archive is maintained.
Input
limitOptionalQuery · integer, min: 1, max: 50, default: 20Maximum number of articles to return (1–50).
Example: 5
cursorOptionalQuery · string | nullOpaque next_cursor token from the previous response; results continue with older source entries.
Response
dataobjectdata.itemsobject[]data.items[].titlestringdata.items[].summarystring | nulldata.items[].article_idstringdata.items[].canonical_urlstringdata.items[].published_datestring | nulldata.source_urlstringdata.source_transportstringpaginationobjectpagination.has_morebooleanpagination.next_cursorstring | nullrequest_idstringFor the next page, pass next_cursor from the response as cursor. Leave it empty on the first call.
GETArticles by url/v1/articles/by-url
Fetches the live public article named by a cognition.com or cognition.ai blog URL.
Input
urlRequiredQuery · stringCanonical or cognition.ai alias URL for one public Cognition blog article.
Example: https://cognition.com/blog/devin-comes-to-sao-paulo
Response
dataobjectdata.titlestringdata.authorsstring[]data.summarystring | nulldata.full_textstring | nulldata.article_idstringdata.categoriesstring[]data.updated_datestring | nulldata.canonical_urlstringdata.published_datestring | nulldata.source_transportstringrequest_idstringGETArticles by article id/v1/articles/{article_id}
Fetches an individual live Cognition blog article by its source path slug.
Input
article_idRequiredPath · stringSource slug from the article's Cognition blog URL.
Example: devin-comes-to-sao-paulo
Response
dataobjectdata.titlestringdata.authorsstring[]data.summarystring | nulldata.full_textstring | nulldata.article_idstringdata.categoriesstring[]data.updated_datestring | nulldata.canonical_urlstringdata.published_datestring | nulldata.source_transportstringrequest_idstringDon’t see the endpoint you need?
Ask agent-data to add an endpoint or return more fields. Extensions are free and keep existing endpoints working.
An account is required to submit an extension. Prepare your request, then sign in to build.