xbrl.asof
Get SEC EDGAR XBRL values as of an inclusive filing date, with later value changes and source filings. Covers entity-wide facts from standard taxonomies.
https://api.kanagu.dev/v1/xbrl/asof- Price
- $0.08 per successful call
- Without a key
- 10 free calls per IP per UTC day, shared by REST and MCP.
- MCP tool
xbrl.asofathttps://api.kanagu.dev/mcp- Markdown
- /docs/xbrl.asof.md
curl https://api.kanagu.dev/v1/xbrl/asof \
-H "Content-Type: application/json" \
-d '{"ticker":"MSFT","concepts":[{"taxonomy":"us-gaap","tag":"NetIncomeLoss"}],"periods":[{"start":"2015-07-01","end":"2015-09-30"}],"asOf":"2016-04-20"}'curl https://api.kanagu.dev/v1/xbrl/asof \
-H "Authorization: Bearer $KANAGU_KEY" \
-H "Content-Type: application/json" \
-d '{"ticker":"MSFT","concepts":[{"taxonomy":"us-gaap","tag":"NetIncomeLoss"}],"periods":[{"start":"2015-07-01","end":"2015-09-30"}],"asOf":"2016-04-20"}'const res = await fetch("https://api.kanagu.dev/v1/xbrl/asof", {
method: "POST",
headers: {
Authorization: `Bearer ${process.env.KANAGU_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"ticker": "MSFT",
"concepts": [
{
"taxonomy": "us-gaap",
"tag": "NetIncomeLoss"
}
],
"periods": [
{
"start": "2015-07-01",
"end": "2015-09-30"
}
],
"asOf": "2016-04-20"
}),
});
if (!res.ok) throw new Error((await res.json()).error.message);
const result = await res.json();{
"jsonrpc": "2.0",
"id": 1,
"method": "tools/call",
"params": {
"name": "xbrl.asof",
"arguments": {
"ticker": "MSFT",
"concepts": [
{
"taxonomy": "us-gaap",
"tag": "NetIncomeLoss"
}
],
"periods": [
{
"start": "2015-07-01",
"end": "2015-09-30"
}
],
"asOf": "2016-04-20"
}
}
}{
"ticker": "MSFT",
"concepts": [
{
"taxonomy": "us-gaap",
"tag": "NetIncomeLoss"
}
],
"periods": [
{
"start": "2015-07-01",
"end": "2015-09-30"
}
],
"asOf": "2016-04-20"
}{
"cik": "0000789019",
"source": "https://www.sec.gov/search-filings/edgar-application-programming-interfaces",
"asOf": "2016-04-20",
"results": [
{
"taxonomy": "us-gaap",
"tag": "NetIncomeLoss",
"period": {
"start": "2015-07-01",
"end": "2015-09-30"
},
"status": "found",
"series": [
{
"unit": "USD",
"latest": {
"status": "reported",
"filed": "2015-10-22",
"fact": {
"value": 4620000000,
"fiscalYear": 2016,
"fiscalPeriod": "Q1",
"form": "10-Q",
"filed": "2015-10-22",
"accession": "0001193125-15-350718",
"filingUrl": "https://www.sec.gov/Archives/edgar/data/789019/000119312515350718/0001193125-15-350718-index.htm"
}
},
"laterRevisions": [
{
"status": "reported",
"filed": "2016-04-21",
"fact": {
"value": 4902000000,
"fiscalYear": 2016,
"fiscalPeriod": "Q3",
"form": "10-Q",
"filed": "2016-04-21",
"accession": "0001193125-16-550254",
"filingUrl": "https://www.sec.gov/Archives/edgar/data/789019/000119312516550254/0001193125-16-550254-index.htm"
}
}
]
}
]
}
]
}Request body
application/json
conceptsarray of objectrequiredconcepts[].taxonomystringrequired- SEC taxonomy, e.g. us-gaap.
concepts[].tagstringrequired- Case-sensitive XBRL concept tag.
periodsarray of objectrequired- Exact fiscal date ranges or instants. Use the company's fiscal calendar.
periods[].startstring (date)- First day of a duration fact. Omit for an instant fact.
periods[].endstring (date)required- Last day of a duration fact or date of an instant fact.
asOfstring (date)required- Inclusive SEC filing date. Includes all submissions filed on this date.
Then exactly one of these 2 shapes:
1. With cik
cikstring | integer (1 to 9999999999)required- SEC Central Index Key, with or without leading zeros.
2. With ticker
tickerstringrequired- Current SEC ticker. Use CIK for historical identifiers.
Response
200 · application/json
cikstringrequired- Ten-digit SEC Central Index Key.
sourcestring (uri)required- SEC EDGAR XBRL API documentation.
asOfstring (date)requiredresultsarray of objectrequiredresults[].taxonomystringrequired- SEC taxonomy, e.g. us-gaap.
results[].tagstringrequired- Case-sensitive XBRL concept tag.
results[].periodobjectrequiredresults[].period.startstring (date)- First day of a duration fact. Omit for an instant fact.
results[].period.endstring (date)required- Last day of a duration fact or date of an instant fact.
results[].status"found" | "concept_not_found" | "period_not_found"requiredresults[].seriesarray of objectrequiredresults[].series[].unitstringrequiredresults[].series[].latestobject | nullrequired- Most recent filing version as of the cutoff. Null if no filing had reported this fact.
results[].series[].laterRevisionsarray of objectrequired- Later value changes, first disclosures, and unresolved filings. Unchanged repeats appear in xbrl.history.
Try it
Errors
Errors are JSON {"error":{"code","message"}}. An operation may add its own 400 codes; the message says what to fix.
| Status | Code and meaning |
|---|---|
| 400 | invalid_inputThe body does not match the request schema. The message names each field. |
| 400 | invalid_jsonThe body is missing or is not valid JSON. |
| 400 | invalid_idempotency_keyIdempotency-Key must be 1–128 visible ASCII characters. |
| 401 | invalid_api_keyThe Bearer key is missing, malformed, invalid or inactive. |
| 402 | free_allowance_exhaustedThis month's free usage is used up and the account has no subscription. Subscribe from the dashboard, or wait for the next UTC month; Retry-After gives the seconds left. |
| 404 | not_foundNo operation at this path. |
| 409 | idempotency_conflictThe Idempotency-Key was already used with a different body. |
| 413 | payload_too_largeJSON bodies may be at most 64 KiB. |
| 429 | trial_limitThe anonymous trial allows 10 calls per IP per UTC day, shared by REST and MCP. Retry-After gives the seconds left. |
| 500 | internal_errorThe call failed on our side. It is not billed; retry with the same Idempotency-Key. |
JSON Schema
Request schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"oneOf": [
{
"type": "object",
"properties": {
"concepts": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"taxonomy": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,19}$",
"description": "SEC taxonomy, e.g. us-gaap."
},
"tag": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$",
"description": "Case-sensitive XBRL concept tag."
}
},
"required": [
"taxonomy",
"tag"
],
"additionalProperties": false
}
},
"periods": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"description": "First day of a duration fact. Omit for an instant fact.",
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"end": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Last day of a duration fact or date of an instant fact."
}
},
"required": [
"end"
],
"additionalProperties": false
},
"description": "Exact fiscal date ranges or instants. Use the company's fiscal calendar."
},
"asOf": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Inclusive SEC filing date. Includes all submissions filed on this date."
},
"cik": {
"description": "SEC Central Index Key, with or without leading zeros.",
"anyOf": [
{
"type": "string",
"pattern": "^\\d{1,10}$"
},
{
"type": "integer",
"minimum": 1,
"maximum": 9999999999
}
]
}
},
"required": [
"concepts",
"periods",
"asOf",
"cik"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"concepts": {
"minItems": 1,
"maxItems": 10,
"type": "array",
"items": {
"type": "object",
"properties": {
"taxonomy": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,19}$",
"description": "SEC taxonomy, e.g. us-gaap."
},
"tag": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$",
"description": "Case-sensitive XBRL concept tag."
}
},
"required": [
"taxonomy",
"tag"
],
"additionalProperties": false
}
},
"periods": {
"minItems": 1,
"maxItems": 20,
"type": "array",
"items": {
"type": "object",
"properties": {
"start": {
"description": "First day of a duration fact. Omit for an instant fact.",
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"end": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Last day of a duration fact or date of an instant fact."
}
},
"required": [
"end"
],
"additionalProperties": false
},
"description": "Exact fiscal date ranges or instants. Use the company's fiscal calendar."
},
"asOf": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Inclusive SEC filing date. Includes all submissions filed on this date."
},
"ticker": {
"description": "Current SEC ticker. Use CIK for historical identifiers.",
"type": "string",
"pattern": "^[A-Za-z0-9][A-Za-z0-9.-]{0,15}$"
}
},
"required": [
"concepts",
"periods",
"asOf",
"ticker"
],
"additionalProperties": false
}
],
"examples": [
{
"ticker": "MSFT",
"concepts": [
{
"taxonomy": "us-gaap",
"tag": "NetIncomeLoss"
}
],
"periods": [
{
"start": "2015-07-01",
"end": "2015-09-30"
}
],
"asOf": "2016-04-20"
}
],
"type": "object"
}Response schema
{
"$schema": "https://json-schema.org/draft/2020-12/schema",
"type": "object",
"properties": {
"cik": {
"type": "string",
"description": "Ten-digit SEC Central Index Key."
},
"source": {
"type": "string",
"format": "uri",
"description": "SEC EDGAR XBRL API documentation."
},
"asOf": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"results": {
"type": "array",
"items": {
"type": "object",
"properties": {
"taxonomy": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,19}$",
"description": "SEC taxonomy, e.g. us-gaap."
},
"tag": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$",
"description": "Case-sensitive XBRL concept tag."
},
"period": {
"type": "object",
"properties": {
"start": {
"description": "First day of a duration fact. Omit for an instant fact.",
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"end": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Last day of a duration fact or date of an instant fact."
}
},
"required": [
"end"
],
"additionalProperties": false
},
"status": {
"type": "string",
"enum": [
"found",
"concept_not_found",
"period_not_found"
]
},
"series": {
"type": "array",
"items": {
"type": "object",
"properties": {
"unit": {
"type": "string"
},
"latest": {
"anyOf": [
{
"oneOf": [
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "reported"
},
"filed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"fact": {
"type": "object",
"properties": {
"cik": {
"type": "string"
},
"taxonomy": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,19}$",
"description": "SEC taxonomy, e.g. us-gaap."
},
"tag": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$",
"description": "Case-sensitive XBRL concept tag."
},
"start": {
"description": "First day of a duration fact. Omit for an instant fact.",
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"end": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Last day of a duration fact or date of an instant fact."
},
"unit": {
"type": "string"
},
"value": {
"type": "number"
},
"fiscalYear": {
"description": "Fiscal year of the filing, as supplied by SEC EDGAR.",
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"fiscalPeriod": {
"description": "Fiscal period of the filing, as supplied by SEC EDGAR.",
"type": [
"string",
"null"
]
},
"form": {
"type": "string"
},
"filed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"accession": {
"type": "string",
"pattern": "^\\d{10}-\\d{2}-\\d{6}$"
},
"frame": {
"description": "Current SEC calendar frame metadata, when present.",
"type": "string"
},
"acceptedAt": {
"description": "SEC submission acceptance time, used to order same-day filings.",
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"filingUrl": {
"type": "string",
"format": "uri"
}
},
"required": [
"cik",
"taxonomy",
"tag",
"end",
"unit",
"value",
"form",
"filed",
"accession",
"filingUrl"
],
"additionalProperties": false
}
},
"required": [
"status",
"filed",
"fact"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "needs_review"
},
"filed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"cik": {
"type": "string"
},
"taxonomy": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,19}$",
"description": "SEC taxonomy, e.g. us-gaap."
},
"tag": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$",
"description": "Case-sensitive XBRL concept tag."
},
"start": {
"description": "First day of a duration fact. Omit for an instant fact.",
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"end": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Last day of a duration fact or date of an instant fact."
},
"unit": {
"type": "string"
},
"value": {
"type": "number"
},
"fiscalYear": {
"description": "Fiscal year of the filing, as supplied by SEC EDGAR.",
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"fiscalPeriod": {
"description": "Fiscal period of the filing, as supplied by SEC EDGAR.",
"type": [
"string",
"null"
]
},
"form": {
"type": "string"
},
"filed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"accession": {
"type": "string",
"pattern": "^\\d{10}-\\d{2}-\\d{6}$"
},
"frame": {
"description": "Current SEC calendar frame metadata, when present.",
"type": "string"
},
"acceptedAt": {
"description": "SEC submission acceptance time, used to order same-day filings.",
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"filingUrl": {
"type": "string",
"format": "uri"
}
},
"required": [
"cik",
"taxonomy",
"tag",
"end",
"unit",
"value",
"form",
"filed",
"accession",
"filingUrl"
],
"additionalProperties": false
},
"description": "Conflicting facts or filings whose order could not be determined."
}
},
"required": [
"status",
"filed",
"candidates"
],
"additionalProperties": false
}
]
},
{
"type": "null"
}
],
"description": "Most recent filing version as of the cutoff. Null if no filing had reported this fact."
},
"laterRevisions": {
"type": "array",
"items": {
"oneOf": [
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "reported"
},
"filed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"fact": {
"type": "object",
"properties": {
"cik": {
"type": "string"
},
"taxonomy": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,19}$",
"description": "SEC taxonomy, e.g. us-gaap."
},
"tag": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$",
"description": "Case-sensitive XBRL concept tag."
},
"start": {
"description": "First day of a duration fact. Omit for an instant fact.",
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"end": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Last day of a duration fact or date of an instant fact."
},
"unit": {
"type": "string"
},
"value": {
"type": "number"
},
"fiscalYear": {
"description": "Fiscal year of the filing, as supplied by SEC EDGAR.",
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"fiscalPeriod": {
"description": "Fiscal period of the filing, as supplied by SEC EDGAR.",
"type": [
"string",
"null"
]
},
"form": {
"type": "string"
},
"filed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"accession": {
"type": "string",
"pattern": "^\\d{10}-\\d{2}-\\d{6}$"
},
"frame": {
"description": "Current SEC calendar frame metadata, when present.",
"type": "string"
},
"acceptedAt": {
"description": "SEC submission acceptance time, used to order same-day filings.",
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"filingUrl": {
"type": "string",
"format": "uri"
}
},
"required": [
"cik",
"taxonomy",
"tag",
"end",
"unit",
"value",
"form",
"filed",
"accession",
"filingUrl"
],
"additionalProperties": false
}
},
"required": [
"status",
"filed",
"fact"
],
"additionalProperties": false
},
{
"type": "object",
"properties": {
"status": {
"type": "string",
"const": "needs_review"
},
"filed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"candidates": {
"type": "array",
"items": {
"type": "object",
"properties": {
"cik": {
"type": "string"
},
"taxonomy": {
"type": "string",
"pattern": "^[a-z][a-z0-9-]{0,19}$",
"description": "SEC taxonomy, e.g. us-gaap."
},
"tag": {
"type": "string",
"pattern": "^[A-Za-z_][A-Za-z0-9_]{0,254}$",
"description": "Case-sensitive XBRL concept tag."
},
"start": {
"description": "First day of a duration fact. Omit for an instant fact.",
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"end": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$",
"description": "Last day of a duration fact or date of an instant fact."
},
"unit": {
"type": "string"
},
"value": {
"type": "number"
},
"fiscalYear": {
"description": "Fiscal year of the filing, as supplied by SEC EDGAR.",
"anyOf": [
{
"type": "integer",
"minimum": -9007199254740991,
"maximum": 9007199254740991
},
{
"type": "null"
}
]
},
"fiscalPeriod": {
"description": "Fiscal period of the filing, as supplied by SEC EDGAR.",
"type": [
"string",
"null"
]
},
"form": {
"type": "string"
},
"filed": {
"type": "string",
"format": "date",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))$"
},
"accession": {
"type": "string",
"pattern": "^\\d{10}-\\d{2}-\\d{6}$"
},
"frame": {
"description": "Current SEC calendar frame metadata, when present.",
"type": "string"
},
"acceptedAt": {
"description": "SEC submission acceptance time, used to order same-day filings.",
"type": "string",
"format": "date-time",
"pattern": "^(?:(?:\\d\\d[2468][048]|\\d\\d[13579][26]|\\d\\d0[48]|[02468][048]00|[13579][26]00)-02-29|\\d{4}-(?:(?:0[13578]|1[02])-(?:0[1-9]|[12]\\d|3[01])|(?:0[469]|11)-(?:0[1-9]|[12]\\d|30)|(?:02)-(?:0[1-9]|1\\d|2[0-8])))T(?:(?:[01]\\d|2[0-3]):[0-5]\\d:[0-5]\\d(?:\\.\\d+)?(?:Z|([+-](?:[01]\\d|2[0-3]):[0-5]\\d)))$"
},
"filingUrl": {
"type": "string",
"format": "uri"
}
},
"required": [
"cik",
"taxonomy",
"tag",
"end",
"unit",
"value",
"form",
"filed",
"accession",
"filingUrl"
],
"additionalProperties": false
},
"description": "Conflicting facts or filings whose order could not be determined."
}
},
"required": [
"status",
"filed",
"candidates"
],
"additionalProperties": false
}
]
},
"description": "Later value changes, first disclosures, and unresolved filings. Unchanged repeats appear in xbrl.history."
}
},
"required": [
"unit",
"latest",
"laterRevisions"
],
"additionalProperties": false
}
}
},
"required": [
"taxonomy",
"tag",
"period",
"status",
"series"
],
"additionalProperties": false
}
}
},
"required": [
"cik",
"source",
"asOf",
"results"
],
"additionalProperties": false
}