Live Company Facts API provides accurate and up-to-date information about companies in real time. It allows users to access essential business details such as company profiles, industry information, headquarters, leadership, financial data, employee count, and other key business insights through a simple and easy-to-integrate API. It helps developers and businesses quickly retrieve reliable company information for research, analysis, and business applications.
All requests require an API token in the Authorization header.
Authorization: AUTH_TOKEN
| Parameter | Type | Required | Description |
|---|---|---|---|
| cik | string | Required |
Supported:
|
| accession_number | string | Optional |
Supported:
|
| factors | array | Optional |
List of financial facts to retrieve. Supports US-GAAP financial concepts, such as:
|
| period | string | Optional | Reporting period end date in YYYY-MM-DD format (e.g., 2025-12-31). |
{
"cik": "0001318605",
"factors": [
"us-gaap:Assets",
"us-gaap:NetIncomeLoss",
"us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax"
],
"period": "2025-12-31"
}
<?php
$url = "https://api.secfilingdata.com/v1/filings/companyfacts/";
$auth_token = 'AUTH_TOKEN';
$post_fields = array(
'cik' => '0001318605',
'factors' => array(
'us-gaap:Assets',
'us-gaap:NetIncomeLoss',
'us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax'
),
'period' => '2025-12-31',
);
$ch = curl_init($url);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
curl_setopt($ch, CURLOPT_POST, true);
curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode($post_fields));
curl_setopt($ch, CURLOPT_HTTPHEADER, [
'Content-Type: application/json',
'Authorization: ' . $auth_token,
]);
$response = curl_exec($ch);
curl_close($ch);
echo $response;
import requests
url = "https://api.secfilingdata.com/v1/filings/companyfacts/"
headers = {
"Content-Type": "application/json",
"Authorization": "AUTH_TOKEN"
}
payload = {
"cik": "0001318605",
"factors": [
"us-gaap:Assets",
"us-gaap:NetIncomeLoss",
"us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax"
],
"period": "2025-12-31"
}
response = requests.post(url, headers=headers, json=payload)
print(response.json())
const url = "https://api.secfilingdata.com/v1/filings/companyfacts/";
const payload = {
cik: "0001318605",
factors: [
"us-gaap:Assets",
"us-gaap:NetIncomeLoss",
"us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax"
],
period: "2025-12-31"
};
fetch(url, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Authorization": "AUTH_TOKEN"
},
body: JSON.stringify(payload)
})
.then(response => response.json())
.then(data => console.log(data))
.catch(error => console.error(error));
const axios = require("axios");
const url = "https://api.secfilingdata.com/v1/filings/companyfacts/";
const payload = {
cik: "0001318605",
factors: [
"us-gaap:Assets",
"us-gaap:NetIncomeLoss",
"us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax"
],
period: "2025-12-31"
};
axios.post(url, payload, {
headers: {
"Content-Type": "application/json",
"Authorization": "AUTH_TOKEN"
}
})
.then(response => console.log(response.data))
.catch(error => console.error(error));
curl --location 'https://api.secfilingdata.com/v1/filings/companyfacts/' \
--header 'Content-Type: application/json' \
--header 'Authorization: AUTH_TOKEN' \
--data '{
"cik": "0001318605",
"factors": [
"us-gaap:Assets",
"us-gaap:NetIncomeLoss",
"us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax"
],
"period": "2025-12-31"
}'
package main
import (
"bytes"
"fmt"
"io"
"net/http"
)
func main() {
url := "https://api.secfilingdata.com/v1/filings/companyfacts/"
payload := []byte(`{
"cik": "0001318605",
"factors": [
"us-gaap:Assets",
"us-gaap:NetIncomeLoss",
"us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax"
],
"period": "2025-12-31"
}`)
req, _ := http.NewRequest("POST", url, bytes.NewBuffer(payload))
req.Header.Set("Content-Type", "application/json")
req.Header.Set("Authorization", "AUTH_TOKEN")
client := &http.Client{}
resp, err := client.Do(req)
if err != nil {
panic(err)
}
defer resp.Body.Close()
body, _ := io.ReadAll(resp.Body)
fmt.Println(string(body))
}
import java.io.OutputStream;
import java.net.HttpURLConnection;
import java.net.URL;
import java.util.Scanner;
public class Main {
public static void main(String[] args) throws Exception {
URL url = new URL(
"https://api.secfilingdata.com/v1/filings/companyfacts/"
);
HttpURLConnection conn =
(HttpURLConnection) url.openConnection();
conn.setRequestMethod("POST");
conn.setRequestProperty("Content-Type", "application/json");
conn.setRequestProperty("Authorization", "AUTH_TOKEN");
conn.setDoOutput(true);
String json = "{"
+ "\"cik\":\"0001318605\","
+ "\"factors\":["
+ "\"us-gaap:Assets\","
+ "\"us-gaap:NetIncomeLoss\","
+ "\"us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax\""
+ "],"
+ "\"period\":\"2025-12-31\""
+ "}";
try (OutputStream os = conn.getOutputStream()) {
os.write(json.getBytes("UTF-8"));
}
Scanner scanner = new Scanner(conn.getInputStream());
while (scanner.hasNextLine()) {
System.out.println(scanner.nextLine());
}
scanner.close();
conn.disconnect();
}
}
using System;
using System.Net.Http;
using System.Text;
using System.Threading.Tasks;
class Program
{
static async Task Main()
{
using var client = new HttpClient();
client.DefaultRequestHeaders.Add(
"Authorization", "AUTH_TOKEN"
);
var json = @"{
""cik"": ""0001318605"",
""factors"": [
""us-gaap:Assets"",
""us-gaap:NetIncomeLoss"",
""us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax""
],
""period"": ""2025-12-31""
}";
var content = new StringContent(
json, Encoding.UTF8, "application/json"
);
var response = await client.PostAsync(
"https://api.secfilingdata.com/v1/filings/companyfacts/",
content
);
var result = await response.Content.ReadAsStringAsync();
Console.WriteLine(result);
}
}
require 'net/http'
require 'json'
require 'uri'
url = URI(
"https://api.secfilingdata.com/v1/filings/companyfacts/"
)
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Content-Type"] = "application/json"
request["Authorization"] = "AUTH_TOKEN"
request.body = {
cik: "0001318605",
factors: [
"us-gaap:Assets",
"us-gaap:NetIncomeLoss",
"us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax"
],
period: "2025-12-31"
}.to_json
response = http.request(request)
puts response.body
[
{
"cik": "0001318605",
"period": "2025-12-31",
"xbrlpath": "https://www.sec.gov/Archives/edgar/data/0001318605/000162828026003952/tsla-20251231_htm.xml",
"accession_number": "000162828026003952",
"data": {
"us-gaap:Assets": {
"value": "137806000000.0",
"unit": "iso4217:USD",
"period": "2025-12-31"
},
"us-gaap:NetIncomeLoss": {
"value": "3794000000.0",
"unit": "iso4217:USD",
"period": "2025-12-31"
},
"us-gaap:RevenueFromContractWithCustomerExcludingAssessedTax": {
"value": "94827000000.0",
"unit": "iso4217:USD",
"period": "2025-12-31"
}
},
"message": "Company facts retrieved successfully."
}
]
application/jsonjson_encode($postData)| Status Code | Description |
|---|---|
| 200 | Successful request |
| 204 | No results found |
| 400 | Invalid request parameters |
| 401 | Unauthorized / Invalid token |
| 500 | Internal server error |