Skip to main content
GET
Search a data source

Authorizations

Authorization
string
header
required

A Dataville API key, sent as Authorization: Bearer dataville_.... Clients that cannot set headers may pass the same key as ?token=.

Path Parameters

source
enum<string>
required

Data source name or alias.

Available options:
wiki,
wikipedia,
census,
arxiv,
gutenberg,
fooddata,
paperswithcode,
edgar,
sec,
sec-edgar,
news,
frontpage-news,
stackexchange,
stackoverflow,
stack-exchange,
pypi,
openalex
keywords
string
required

URL-encoded search terms. May contain spaces and slashes.

Query Parameters

summary
boolean
default:false

Truncate data.body to the first 100 characters.

form_type
enum<string>

edgar only (and its aliases sec, sec-edgar); other sources ignore it. Return the company's most recent filing of this form, with financials read from that form's own reporting period, instead of the newest filing of any form. Case-insensitive.

Matching is exact: 10-K never returns a 10-K/A. Ask for an amendment by name (10-K/A, 10-Q/A, 8-K/A, 20-F/A, S-1/A). An amendment of a 10-K, 10-Q or 20-F reports its own figures when it restates them, and otherwise the figures of the period it amends, read from the original. Every result lists the amendments filed for it in metadata.amended_by (left out when there are none).

A form named in the keywords (AAPL 10-K, ko 10q, TSM 20-F, def 14a, aapl 10-K/A), or written there the way this parameter is (AAPL form_type="8-K"), is read the same way; when both are sent, form_type wins. A query that matches no company falls back to full-text search, which returns only filings of the form too. When there is no filing of the form (the company doesn't file it, or nothing in full text matched) the response is a 404 rather than a different form, and an unsupported value gets a 400. Neither is charged.

Available options:
10-K,
10-Q,
8-K,
20-F,
S-1,
DEF 14A,
10-K/A,
10-Q/A,
8-K/A,
20-F/A,
S-1/A
from
string<date>

edgar only. List filings filed on or after this date (YYYY-MM-DD). Any of from, to or limit turns on a timeframe: data is the newest matching filing filed in the range, and data.metadata.filings lists every match, newest first, up to limit. Each entry has form_type, filing_date, report_date, accession_number and document_url; a 10-K, 10-Q or 20-F also has fiscal_year, fiscal_period (FY, Q1–Q3), financials and financials_raw (exact values: USD, USD per share, or a share count) for its own period only, financials_ttm and financials_ttm_raw (the trailing twelve months to that period's end, for revenue, gross profit, operating income, net income, R&D and capex) when there is one, and amended_by when amended.

Combines with form_type (both must match); without it, the default forms are listed. Filings older than SEC's recent list come from companyfacts (10-K/10-Q/20-F, from about 2009) and SEC's older submission pages. Nothing in the range is a 404, and a bad date, from after to, or a bad limit is a 400 INVALID_TIMEFRAME; neither is charged.

Billing: a timeframe is charged per filing listed, at the edgar rate, like SQL rows. A lookup without one costs one request.

to
string<date>

edgar only. List filings filed on or before this date (YYYY-MM-DD). See from.

limit
integer
default:5

edgar only. The most filings to list in data.metadata.filings, newest first. No maximum. Sending it, even as 1, turns the list on:

  • No from, to or limit: data is one filing, with no list.
  • from or to without limit: up to 5 filings are listed.
  • limit=N: up to N filings are listed.

Each filing in data.metadata.filings is charged as one request.

Without an API key, a limit above 5 is refused with a 401 API_KEY_REQUIRED before any SEC call, and isn't charged. See from.

Required range: x >= 1
token
string

API key as a query parameter, for clients that cannot set an Authorization header (DuckDB WASM, the DuckDB CLI). Prefer the header wherever possible — query strings end up in logs.

Response

The most relevant result for the query.

status
enum<string>
Available options:
success
account_state
enum<string>
Available options:
authenticated,
anonymous
data
object

The common shape every data source returns.

usage
object