Search filings
curl --request POST \
--url https://api.darvas.app/v1/search \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"query": "What supply chain risks does Apple face?"
}
'import requests
url = "https://api.darvas.app/v1/search"
payload = { "query": "What supply chain risks does Apple face?" }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'What supply chain risks does Apple face?'})
};
fetch('https://api.darvas.app/v1/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"search_id": "3120038d-9620-4b43-9412-a01b4a99d2a3",
"results": [
{
"title": "Apple Inc. · 10-K 2025-10-31",
"url": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/0000320193-25-000079-index.htm",
"date": "2025-10-31",
"source": "sec.gov",
"excerpts": [
{
"text": "The Company depends on component suppliers in its supply chain.",
"citation": {
"document": "0000320193-25-000079",
"date": "2025-10-31",
"section": "Item 1A. Risk Factors",
"link": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm#:~:text=The%20Company%20depends%20on%20component%20suppliers"
},
"attributes": {
"kind": "text"
}
}
],
"entities": [
{
"name": "Apple Inc.",
"identifiers": {
"cik": "0000320193",
"ticker": "AAPL"
}
}
],
"attributes": {
"document_type": "10-K"
}
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}SEC EDGAR Filings
SEC EDGAR Full-Text Filing Search API
Search 10-K, 10-Q and 8-K items and 8-K press releases with a question, and get the best passages with citations and links into each SEC EDGAR filing.
Search filings
curl --request POST \
--url https://api.darvas.app/v1/search \
--header 'Content-Type: application/json' \
--header 'X-API-KEY: <api-key>' \
--data '
{
"query": "What supply chain risks does Apple face?"
}
'import requests
url = "https://api.darvas.app/v1/search"
payload = { "query": "What supply chain risks does Apple face?" }
headers = {
"X-API-KEY": "<api-key>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {'X-API-KEY': '<api-key>', 'Content-Type': 'application/json'},
body: JSON.stringify({query: 'What supply chain risks does Apple face?'})
};
fetch('https://api.darvas.app/v1/search', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));{
"search_id": "3120038d-9620-4b43-9412-a01b4a99d2a3",
"results": [
{
"title": "Apple Inc. · 10-K 2025-10-31",
"url": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/0000320193-25-000079-index.htm",
"date": "2025-10-31",
"source": "sec.gov",
"excerpts": [
{
"text": "The Company depends on component suppliers in its supply chain.",
"citation": {
"document": "0000320193-25-000079",
"date": "2025-10-31",
"section": "Item 1A. Risk Factors",
"link": "https://www.sec.gov/Archives/edgar/data/320193/000032019325000079/aapl-20250927.htm#:~:text=The%20Company%20depends%20on%20component%20suppliers"
},
"attributes": {
"kind": "text"
}
}
],
"entities": [
{
"name": "Apple Inc.",
"identifiers": {
"cik": "0000320193",
"ticker": "AAPL"
}
}
],
"attributes": {
"document_type": "10-K"
}
}
]
}{
"error": "VALIDATION_ERROR",
"message": "Send ticker or cik"
}{
"error": "UNAUTHORIZED",
"message": "The API key is not valid"
}{
"error": "PLAN_REQUIRED",
"message": "The account of this key has no active data API plan"
}{
"error": "NOT_FOUND",
"message": "No company has this ticker or CIK"
}{
"error": "RATE_LIMITED",
"message": "Too many requests"
}{
"error": "INTERNAL_ERROR",
"message": "Something went wrong"
}{
"error": "UNAVAILABLE",
"message": "The data service is unavailable"
}Overview
Send a question; the answer is the filings that answer it, best first, each with its passages and a citation: the accession number, the day, the item or exhibit, and a link that opens the document with the passage highlighted. MCP tool:search_documents on the data API MCP server.
The search reads the items of 10-K, 10-Q and 8-K filings and the press releases of 8-Ks. It matches the question’s words, not their meaning: a filing that names more of them, more often, ranks first, and common words such as what or the are left out. Name the companies in filters.identifiers to search their filings of any year; without a company, the last two years are searched.
Darvas reads every new 10-K, 10-Q and 8-K as it is filed, and older ones on request. A company in the filters with no filing read yet has its newest 10-K and 10-Q read at once; warnings says so, and the same search a minute later finds them.
import os
import requests
headers = {"X-API-KEY": os.environ["DARVAS_API_KEY"]}
body = requests.post(
"https://api.darvas.app/v1/search",
headers=headers,
json={
"query": "What supply chain risks does Apple face?",
"filters": {"identifiers": {"ticker": ["AAPL"]}, "document_types": ["10-K"]},
"limit": 3,
},
).json()
for result in body["results"]:
print(result["title"])
for excerpt in result["excerpts"]:
print(" ", excerpt["citation"]["section"], "|", excerpt["text"][:160])
print(body.get("warnings"))
Authorizations
apiKeybearerKey
Body
application/json
The question and the filings to search.
A question and the filings to search.
Response
The filings that answer, best first.
The answer of POST /search.