""" Rawfeed GraphQL API: market news and SEC EDGAR filings. POST queries to https://api.rawfeed.io/v1/graphql with your API key in the X-Api-Key header (or Authorization: Bearer). Subscriptions use the same URL over WebSocket with the graphql-transport-ws protocol. Every POST counts as one request against your plan, like a REST call. """ schema { query: Query subscription: Subscription } "An instant in UTC, as an ISO 8601 / RFC 3339 string, e.g. 2026-11-27T22:27:09Z." scalar DateTime type Query { """ Articles and filings within your plan's history that match the filter, newest first by default. The same search as GET /v1/news. """ news( filter: NewsFilter "Oldest article to include. Default and limit: your plan's history." from: DateTime "Newest article to include." to: DateTime sort: NewsSort = PUBLISHED_AT "Articles to return: 1 up to your plan's maximum (Free 20, Starter 50, Pro 100). Default: the maximum." first: Int "A cursor from a previous page's pageInfo.endCursor or an edge's cursor." after: String ): ArticleConnection! "The latest articles, from the last 48 hours, newest first. The same as GET /v1/news/headlines." headlines( filter: NewsFilter "Articles to return: 1 up to your plan's maximum. Default 20." first: Int after: String ): ArticleConnection! "news limited to SEC filings. The same as GET /v1/news/filings." filings( filter: FilingFilter from: DateTime to: DateTime sort: NewsSort = PUBLISHED_AT first: Int after: String ): ArticleConnection! "Every source you can query. Use the ids in a filter's sources." sources(category: Category, country: String, language: String): [Source!]! } type Subscription { """ New articles matching the filter, as they're added. Each active subscription uses one of your plan's stream slots. Articles only: use news(from:) to catch up after a disconnect. Without a filter, filings are left out; name the FILINGS category, a filings source or keywords to get them. """ articlePublished(filter: NewsFilter): ArticleEvent! } "Filters shared by news, headlines and subscriptions. Fields combine with AND." input NewsFilter { "Keywords with the search syntax: \"exact phrase\", AND, OR, NOT, -word, (grouping). Up to 500 characters." q: String "Where q looks. Default: all three." searchIn: [SearchField!] "Source ids, up to 20." sources: [ID!] "Domains, up to 20, e.g. reuters.com. Subdomains match." domains: [String!] "Domains to leave out, up to 20." excludeDomains: [String!] "2-letter ISO 639-1 language code, e.g. en." language: String category: Category "2-letter ISO 3166-1 code of the source, e.g. us." country: String } "NewsFilter without category: filings already have one." input FilingFilter { q: String searchIn: [SearchField!] sources: [ID!] domains: [String!] excludeDomains: [String!] language: String country: String } enum SearchField { TITLE DESCRIPTION CONTENT } enum Category { BUSINESS ENTERTAINMENT GENERAL HEALTH SCIENCE SPORTS TECHNOLOGY FILINGS } enum NewsSort { "Newest first." PUBLISHED_AT "Best match for filter.q first. Needs q." RELEVANCE } "A Relay-style connection: page forward with first and after." type ArticleConnection { edges: [ArticleEdge!]! "The articles, without cursors." nodes: [Article!]! pageInfo: PageInfo! "How many articles match, counted up to 10,000." totalCount: Int! } type ArticleEdge { cursor: String! node: Article! } type PageInfo { "False at the end of the results, or at the 10,000th result." hasNextPage: Boolean! hasPreviousPage: Boolean! startCursor: String endCursor: String } "An article or a filing. Subscriptions carry the same fields." type Article { source: ArticleSource! "The author, or for filings the company or the reporting person." author: String title: String! "Summary from the publisher." description: String "Link to the original article. Show it wherever you display the item." url: String! imageUrl: String publishedAt: DateTime! "An excerpt: up to the first 200 characters, then …" content: String } type ArticleSource { id: ID! name: String! } type Source { id: ID! name: String! description: String! url: String! category: Category "2-letter language code." language: String "2-letter country code." country: String } type ArticleEvent { "The stream event id." id: ID! article: Article! }