curl --request GET \
--url https://api.dataville.com/{source}/{keywords} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dataville.com/{source}/{keywords}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dataville.com/{source}/{keywords}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dataville.com/{source}/{keywords}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dataville.com/{source}/{keywords}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dataville.com/{source}/{keywords}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dataville.com/{source}/{keywords}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"account_state": "authenticated",
"data": {
"id": "2301.00001",
"title": "Attention Is All You Need",
"body": "Authors: Ashish Vaswani, Noam Shazeer\nPublished: 2017-06-12\nSummary: The dominant sequence transduction models...",
"source": "arxiv",
"language": "en",
"last_updated": "2017-06-12T00:00:00Z",
"entities": [
"transformer",
"attention",
"machine translation"
],
"metadata": {
"arxiv_id": "1706.03762",
"categories": [
"cs.CL",
"cs.LG"
],
"pdf_url": "https://arxiv.org/pdf/1706.03762"
}
},
"usage": {
"requests_remaining": 4821,
"request_limit": 5000,
"credits_total": 29,
"credits_remaining": 24.11,
"credits_used": 4.89,
"request_cost": 0.005
}
}Search a data source
Search any supported data source by keyword and return the single most relevant result. This is the primary endpoint of the API.
Supported source values (aliases in parentheses): wiki (wikipedia),
census, arxiv, gutenberg, fooddata, paperswithcode, edgar
(sec, sec-edgar), news (frontpage-news), stackexchange
(stackoverflow, stack-exchange), pypi, openalex.
keywords is free text and may contain spaces and slashes; URL-encode it.
curl -H "Authorization: Bearer $DATAVILLE_API_KEY" \
"https://api.dataville.com/arxiv/attention%20is%20all%20you%20need"
curl --request GET \
--url https://api.dataville.com/{source}/{keywords} \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.dataville.com/{source}/{keywords}"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.dataville.com/{source}/{keywords}', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.dataville.com/{source}/{keywords}",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.dataville.com/{source}/{keywords}"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.dataville.com/{source}/{keywords}")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.dataville.com/{source}/{keywords}")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"status": "success",
"account_state": "authenticated",
"data": {
"id": "2301.00001",
"title": "Attention Is All You Need",
"body": "Authors: Ashish Vaswani, Noam Shazeer\nPublished: 2017-06-12\nSummary: The dominant sequence transduction models...",
"source": "arxiv",
"language": "en",
"last_updated": "2017-06-12T00:00:00Z",
"entities": [
"transformer",
"attention",
"machine translation"
],
"metadata": {
"arxiv_id": "1706.03762",
"categories": [
"cs.CL",
"cs.LG"
],
"pdf_url": "https://arxiv.org/pdf/1706.03762"
}
},
"usage": {
"requests_remaining": 4821,
"request_limit": 5000,
"credits_total": 29,
"credits_remaining": 24.11,
"credits_used": 4.89,
"request_cost": 0.005
}
}Authorizations
Path Parameters
Query Parameters
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.
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 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.
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,toorlimit:datais one filing, with no list. fromortowithoutlimit: 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.
x >= 1Was this page helpful?