Rawfeed

API documentation

A JSON API over HTTPS for market news and SEC EDGAR filings. Search and page through articles with plain GET requests or GraphQL, or receive new ones as they arrive over live streams and webhooks.

Quick start

  1. Create a free account; you get a workspace on the Free plan.
  2. In the app, open API keys and create a key. It starts with nk_ and is shown once.
  3. Send it with a request:
curl "https://api.rawfeed.io/v1/news/headlines?category=business" \
  -H "X-Api-Key: $RAWFEED_API_KEY"

Authentication

Send your key in one of these ways. Headers are better: URLs end up in logs.

WhereExample
X-Api-Key headerX-Api-Key: nk_…
Authorization headerAuthorization: Bearer nk_…
api_key URL parameter?api_key=nk_…

Keep keys on your server. Browsers on other sites can't read API responses, so call the API from your backend and pass the results on. Revoke a leaked key in the app under API keys.

Conventions

TopicHow it works
Base URLhttps://api.rawfeed.io. Every REST endpoint is a GET under /v1/news; GraphQL is at /v1/graphql.
VersioningThe version is in the path. New fields and endpoints can be added to v1; a breaking change would get a new version.
ResponsesJSON with results in data. Lists of articles also have meta: total (counted up to 10,000), page and per_page.
NamesParameters and fields are snake_case, e.g. per_page, published_at.
TimesUTC, ISO 8601: 2026-11-27T22:27:09Z.
ListsParameters that take several values are comma-separated: sources=sec-edgar,sec-insider.
Unknown parametersRejected with 400 invalid_parameter, so a misspelt filter never silently returns everything.
Pagingpage from 1 and per_page up to your plan's maximum (Free 20, Starter 50, Pro 100); page × per_page can't pass 10,000. For more, narrow with from and to.
ErrorsThe HTTP status and {"error": {"code", "message"}}; see errors.
OpenAPIThe whole REST API is described in openapi.yaml (OpenAPI 3.1). Import it into Postman or Insomnia, or generate a client from it.

Search news

GET /v1/news

Every article and filing within your plan's history (30 days on Free, 90 on paid plans) that matches the filters, newest first. With no filters, the newest articles.

ParameterDescription
qKeywords or a phrase, with the search syntax. Up to 500 characters.
search_inWhere q looks: any of title, description, content, comma-separated. Default: all three.
sourcesSource ids (up to 20), from sources.
domainsDomains (up to 20), e.g. reuters.com,bbc.co.uk. Subdomains match.
exclude_domainsDomains to leave out (up to 20).
language2-letter ISO 639-1 code, e.g. en.
categorybusiness, entertainment, general, health, science, sports, technology or filings.
country2-letter ISO 3166-1 code of the source, e.g. us, gb.
fromOldest article: an ISO 8601 date or time, e.g. 2026-11-21 or 2026-11-21T12:00:00Z. Times without a zone are UTC. Default and limit: your plan's history.
toNewest article, same format. A date on its own includes that whole day.
sortpublished_at (newest first, the default) or relevance (best match for q first; needs q).
per_page1 up to your plan's maximum. Default: the maximum.
pagePage number, from 1.
curl -G "https://api.rawfeed.io/v1/news" \
  -H "X-Api-Key: $RAWFEED_API_KEY" \
  -d sources=sec-insider \
  --data-urlencode 'q="form 4" jefferies' \
  -d per_page=1
200 OK
{
  "data": [
    {
      "source": { "id": "sec-insider", "name": "SEC insider filings" },
      "author": "HANDLER RICHARD B",
      "title": "Jefferies Financial Group Inc.: insider transaction by HANDLER RICHARD B (Form 4)",
      "description": "Form 4 (insider transaction) filed with the SEC on 2026-11-27. Issuer: Jefferies Financial Group Inc. (CIK 96223). Reporting: HANDLER RICHARD B. Accession number 0001214659-26-014836. Source: SEC EDGAR.",
      "url": "https://www.sec.gov/Archives/edgar/data/96223/000121465926014836/0001214659-26-014836-index.htm",
      "image_url": null,
      "published_at": "2026-11-28T02:32:43Z",
      "content": null
    }
  ],
  "meta": { "total": 8, "page": 1, "per_page": 1 }
}

Headlines

GET /v1/news/headlines

The latest articles, from the last 48 hours, newest first. It takes the same filters as search (q, search_in, sources, domains, exclude_domains, language, category, country) and page; per_page defaults to 20. Filters combine: country=us&category=business is US business news.

curl "https://api.rawfeed.io/v1/news/headlines?country=us&category=business&per_page=5" \
  -H "X-Api-Key: $RAWFEED_API_KEY"

Filings

GET /v1/news/filings

Search limited to SEC filings: the same parameters except category. See SEC filings for the forms covered.

curl -G "https://api.rawfeed.io/v1/news/filings" \
  -H "X-Api-Key: $RAWFEED_API_KEY" \
  --data-urlencode 'q="8-K"' \
  -d per_page=1
200 OK
{
  "data": [
    {
      "source": { "id": "sec-edgar", "name": "SEC EDGAR filings" },
      "author": "HeartSciences Inc.",
      "title": "HeartSciences Inc. 8-K: Entry into a Material Definitive Agreement; Other Events",
      "description": "Form 8-K (current report) filed with the SEC on 2026-11-27. Filer: HeartSciences Inc. (CIK 1468492). Item 1.01 Entry into a Material Definitive Agreement; Item 8.01 Other Events; Item 9.01 Financial Statements and Exhibits. Accession number 0001213900-26-124612. Source: SEC EDGAR.",
      "url": "https://www.sec.gov/Archives/edgar/data/1468492/000121390026124612/0001213900-26-124612-index.htm",
      "image_url": null,
      "published_at": "2026-11-27T22:27:09Z",
      "content": null
    }
  ],
  "meta": { "total": 61, "page": 1, "per_page": 1 }
}

Sources

GET /v1/news/sources

Every source you can query, with optional filters category, country and language. Use the ids in sources.

curl "https://api.rawfeed.io/v1/news/sources?category=filings" \
  -H "X-Api-Key: $RAWFEED_API_KEY"
200 OK
{
  "data": [
    {
      "id": "sec-edgar",
      "name": "SEC EDGAR filings",
      "description": "Company filings with the US Securities and Exchange Commission: current reports (8-K), annual and quarterly reports, offerings, stakes over 5%, tender offers, mergers and proxies.",
      "url": "https://www.sec.gov/edgar/search/",
      "category": "filings",
      "language": "en",
      "country": null
    },
    {
      "id": "sec-insider",
      "name": "SEC insider filings",
      "description": "Insider holdings and transactions (Forms 3, 4 and 5) and notices of proposed insider sales (Form 144) filed with the US Securities and Exchange Commission.",
      "url": "https://www.sec.gov/edgar/search/",
      "category": "filings",
      "language": "en",
      "country": null
    }
  ]
}

Article object

Search, headlines and filings return pages of articles; streams send the same objects, and webhooks all but content.

FieldTypeNotes
source.idstringSource id, e.g. sec-edgar. Use it in sources.
source.namestringDisplay name of the source.
authorstring | nullAuthor, or for filings the company or the reporting person.
titlestring
descriptionstring | nullSummary from the publisher.
urlstringLink to the original article. Show it wherever you display the item.
image_urlstring | null
published_atstringUTC, 2026-11-27T22:27:09Z.
contentstring | nullAn excerpt: up to the first 200 characters, then ….

The q parameter, on every endpoint, stream and webhook, understands:

QueryMatches
tesla earningsBoth words (AND is implied).
"interest rates"The exact phrase.
apple OR microsoftEither word.
bitcoin NOT etf, bitcoin -etfLeave out articles with a word.
(merger OR acquisition) AND bankGroup with parentheses.
+fedMust contain (the same as a plain word).

SEC filings

Filings from SEC EDGAR arrive as articles from two sources. EDGAR's latest-filings feed is checked about every minute, and its daily index fills in anything missed. published_at is the time EDGAR accepted the filing; url is the filing's index page on sec.gov.

SourceForms
sec-edgarCompany reports and events: 8-K, 6-K, 10-K, 10-Q, 20-F, 40-F, NT 10-K, NT 10-Q, 25-NSE. Offerings: S-1, F-1, S-3, F-3, S-4, F-4, 424B4, 424B5. Stakes, tenders, mergers and proxies: SC 13D, SC 13G, SCHEDULE 13D/13G, SC TO-T, SC TO-I, SC 14D9, DEFM14A, PREM14A, DEF 14A, 425, 13F-HR. Amendments (/A) included.
sec-insiderInsider filings: Forms 3, 4 and 5, and Form 144 notices of proposed sales.

Ask for them with /v1/news/filings, category=filings or a source; filter by form with q, since titles name the form (8-K titles also list their items):

# Every filing in the last 48 hours
curl "https://api.rawfeed.io/v1/news/headlines?category=filings" -H "X-Api-Key: $RAWFEED_API_KEY"

# 8-K current reports
curl -G "https://api.rawfeed.io/v1/news/filings" -H "X-Api-Key: $RAWFEED_API_KEY" \
  --data-urlencode 'q="8-K"'

# Insider trades (Form 4) at one company
curl -G "https://api.rawfeed.io/v1/news/filings" -H "X-Api-Key: $RAWFEED_API_KEY" \
  -d sources=sec-insider --data-urlencode 'q="form 4" nvidia'

Filings aren't mixed into general results: a stream or webhook without a filter skips them. Name the filings category, a filings source or a keyword to get them.

Live streams

Keep a connection open and receive new articles as they're added, as server-sent events or over a WebSocket. Both take the same filters as search: q, search_in, sources, domains, exclude_domains, language, category and country.

Server-sent events

GET /v1/news/stream

curl -N "https://api.rawfeed.io/v1/news/stream?category=filings" \
  -H "X-Api-Key: $RAWFEED_API_KEY"
200 OK · text/event-stream
retry: 5000
: connected

id: 1795301710740-0
event: article
data: {"source":{"id":"sec-edgar","name":"SEC EDGAR filings"},"title":"…","published_at":"2026-11-27T22:27:09Z",…}

: ping
EventData
articleAn article object. The id: line is the event id to resume from.
gap{"code": "events_missed", "message": …}: events since your resume point aren't all available; backfill with /v1/news.
close{"code": …, "message": …} before the server ends the stream, e.g. api_key_disabled, slow_consumer or service_unavailable during a restart. Reconnect, except after missing_api_key, invalid_api_key or api_key_disabled.
: pingA comment every 15 seconds to keep the connection open.

WebSocket

GET /v1/news/ws

Each message is JSON: {"type": "article", "id": "…", "article": {…}}, or type gap or close with code and message. The server pings every 15 seconds; nothing needs to be sent to it.

# pip install websockets
import asyncio, json, os, websockets

async def main():
    url = "wss://api.rawfeed.io/v1/news/ws?sources=sec-insider"
    headers = {"X-Api-Key": os.environ["RAWFEED_API_KEY"]}
    async with websockets.connect(url, additional_headers=headers) as ws:
        async for msg in ws:
            m = json.loads(msg)
            if m["type"] == "article":
                print(m["article"]["title"])

asyncio.run(main())

Resuming and limits

Webhooks

Have matching articles posted to a Slack, Microsoft Teams or Discord channel, or to your own HTTPS endpoint. Owners and admins set them up in the app under Webhooks, with the same filters as streams (at least one is required).

Your own endpoint

Receives a POST with {"type": "news.published", "timestamp": …, "data": {"webhook": {"id", "name"}, "articles": [ … ], "more": N}}; the Send test button sends "type": "webhook.test". Requests are signed to the Standard Webhooks spec with the whsec_… secret shown when you create the webhook:

HeaderValue
webhook-idMessage id, e.g. msg_…. The same when the same batch of articles is retried, so you can drop duplicates.
webhook-timestampUnix time the request was sent.
webhook-signaturev1, and the base64 HMAC-SHA256 of <id>.<timestamp>.<body>, keyed with the base64-decoded part of the secret after whsec_.

The Standard Webhooks libraries verify it as is (pip install standardwebhooks, npm install standardwebhooks), or check it yourself:

import base64, hashlib, hmac, time

def verified(secret: str, headers, body: bytes) -> bool:
    msg_id, ts = headers["webhook-id"], headers["webhook-timestamp"]
    if abs(time.time() - int(ts)) > 300:
        return False  # too old: possibly replayed
    key = base64.b64decode(secret.removeprefix("whsec_"))
    mac = hmac.new(key, f"{msg_id}.{ts}.".encode() + body, hashlib.sha256)
    want = "v1," + base64.b64encode(mac.digest()).decode()
    return any(hmac.compare_digest(want, s) for s in headers["webhook-signature"].split())

RSS and Atom feeds

GET /v1/feed.atom, /v1/feed.rss

For feed readers, Slack's RSS app and no-code tools that can't send headers: owners and admins save a filter in the app under RSS feeds and get a feed URL with its own token, shown once. The token only reads that feed, and deleting the feed ends the URL.

GraphQL

POST /v1/graphql

The same data as the REST endpoints, as a GraphQL API: ask for exactly the fields you need, and combine a search with the source list in one request. Requests follow the GraphQL-over-HTTP convention: a JSON body with query and optional variables and operationName, sent with your key as for REST. Introspection is on, so GraphQL tools load the schema themselves, or download it: schema.graphql.

curl https://api.rawfeed.io/v1/graphql \
  -H "X-Api-Key: $RAWFEED_API_KEY" -H "Content-Type: application/json" \
  -d @- <<'EOF'
{"query": "query ($q: String!) { filings(filter: {q: $q, sources: [\"sec-insider\"]}, first: 1) { totalCount pageInfo { hasNextPage endCursor } nodes { title author url publishedAt source { id name } } } }",
 "variables": {"q": "\"form 4\" jefferies"}}
EOF
200 OK
{
  "data": {
    "filings": {
      "totalCount": 8,
      "pageInfo": { "hasNextPage": true, "endCursor": "b2Zmc2V0OjE" },
      "nodes": [
        {
          "title": "Jefferies Financial Group Inc.: insider transaction by HANDLER RICHARD B (Form 4)",
          "author": "HANDLER RICHARD B",
          "url": "https://www.sec.gov/Archives/edgar/data/96223/000121465926014836/0001214659-26-014836-index.htm",
          "publishedAt": "2026-11-28T02:32:43Z",
          "source": { "id": "sec-insider", "name": "SEC insider filings" }
        }
      ]
    }
  }
}
FieldREST equivalent
news(filter, from, to, sort, first, after)GET /v1/news
headlines(filter, first, after)GET /v1/news/headlines
filings(filter, from, to, sort, first, after)GET /v1/news/filings
sources(category, country, language)GET /v1/news/sources
subscription { articlePublished(filter) }/v1/news/stream

Subscriptions

Open a WebSocket to wss://api.rawfeed.io/v1/graphql with the graphql-transport-ws protocol, as the graphql-ws client and Apollo do. Send the key in the connection's parameters (Authorization: Bearer …), or as a header. Each subscription uses one of your plan's stream slots, like a REST stream. Opening the connection and starting each subscription count as one request each. The WebSocket carries subscriptions only; send queries as POST.

// npm install graphql-ws
import { createClient } from "graphql-ws";

const client = createClient({
  url: "wss://api.rawfeed.io/v1/graphql",
  connectionParams: { Authorization: `Bearer ${process.env.RAWFEED_API_KEY}` },
});
client.subscribe(
  { query: 'subscription { articlePublished(filter: {sources: ["sec-insider"]}) { id article { title publishedAt url } } }' },
  {
    next: ({ data }) => console.log(data.articlePublished.article.title),
    error: (err) => console.error(err),
    complete: () => {},
  },
);

A subscription delivers new articles only. After a disconnect, catch up with news(from: …). If the server ends a subscription (a disabled key, a restart, or a client too slow to read), it sends an error with the reason in extensions.code, as for REST streams.

MCP for AI assistants

POST /v1/mcp

A Model Context Protocol server, so AI assistants and agents can search news and filings themselves. It speaks Streamable HTTP; send your key as Authorization: Bearer nk_….

ToolWhat it does
search_newsSearch articles and filings: q, sources, domains, category, country, language, from, to, sort, limit, page.
search_filingsThe same, limited to SEC filings.
latest_headlinesThe last 48 hours, with the same filters and limit.
list_sourcesSource ids, by category, country or language.
claude mcp add --transport http rawfeed https://api.rawfeed.io/v1/mcp \
  --header "Authorization: Bearer $RAWFEED_API_KEY"

Errors

Errors use the HTTP status and a JSON body with a stable code and a readable message:

{
  "error": {
    "code": "invalid_parameter",
    "message": "The per_page parameter must be between 1 and 20 on your plan."
  }
}
HTTPCodeMeaning
400invalid_parameterA parameter is unknown or has a value the API doesn't accept; the message says which.
401missing_api_keyNo API key in the request.
401invalid_api_keyThe key doesn't exist.
401api_key_disabledThe key was revoked or expired, or the workspace is suspended.
404not_foundNo such endpoint.
429rate_limitedOver your plan's per-minute limit. Wait for Retry-After seconds.
429daily_quota_exceededOver your plan's daily limit. It resets at 00:00 UTC.
403 / 429too_many_streamsYour plan has no stream slots (403), or your workspace already has as many open streams as its plan allows (429).
500 / 503internal_error, service_unavailableSomething failed on our side, or a search took too long. Retry, or narrow the search.

Rate limits

Each plan has a daily and a per-minute limit, shared by every key in the workspace and by its use of the web app. Days reset at 00:00 UTC. Every request counts, including ones rejected for a bad parameter; a request turned away by the per-minute limit doesn't use daily quota.

HeaderValue
X-RateLimit-LimitRequests a day on your plan.
X-RateLimit-RemainingRequests left today.
X-RateLimit-ResetUnix time of the next reset (00:00 UTC).
Retry-AfterOn a 429: seconds to wait.

See every plan's limits on the pricing page, and your current usage in the app under Usage.