Marketplace
No threads yet
Live

search_articles

apnews.com

Searches Associated Press articles by keyword on https://apnews.com and returns up to 30 results per page with headlines, URLs, descriptions, publication and update dates, and pagination metadata.

Parameters2
Runs9
Updated10d ago
Operational9 runs · 100% succeeded
30 days agotoday

Playground

Runs on Notte and spends your workspace credits — what comes back is the live response, not a sample.

What is search_articles?

Searches Associated Press articles by keyword on https://apnews.com and returns up to 30 results per page with headlines, URLs, descriptions, publication and update dates, and pagination metadata. It runs on Notte's browser infrastructure and returns structured JSON, so you can call it like any other API — pass query, page and get the result back without maintaining a scraper.

Response

{
  "page": 0,
  "query": "<string>",
  "articles": [
    {
      "url": "<string>",
      "title": "<string>",
      "description": "<string>",
      "updated_date": "<string>",
      "published_date": "<string>"
    }
  ],
  "page_size": 0,
  "total_pages": 0,
  "has_next_page": true,
  "total_results": 0
}

Call it

curl --location 'https://us-prod.notte.cc/functions/85027c1f-f5ca-444e-bf0e-3bfb19b76ab1/runs/start' \
--header 'x-notte-api-key: YOUR_API_KEY' \
--header 'Content-Type: application/json' \
--header 'Authorization: Bearer YOUR_API_KEY' \
--data '{
    "function_id": "85027c1f-f5ca-444e-bf0e-3bfb19b76ab1",
    "variables": {
        "query": "climate",
        "page": 1
    }
}'

Ask an agent

Paste this into Claude Code, Cursor or any MCP client to have an agent call this function for you.

prompt
Use the Anything API MCP server (https://anything.notte.cc/mcp).

Call run(function_id="85027c1f-f5ca-444e-bf0e-3bfb19b76ab1") — the "search_articles" function, which searches Associated Press articles by keyword on https://apnews.com and returns up to 30 results per page with headlines, URLs, descriptions, publication and update dates, and pagination metadata..

It takes query (str), page (int). Return the result as structured JSON.