Find an API

Search public APIs with auth details & Postman guides

← All APIs

SEC EDGAR API

data.sec.gov · Finance

Finance No Auth Free & Open Finance SEC Stocks

US Securities and Exchange Commission public financial data — company filings, financial statements (income, balance sheet, cash flow), insider trading, and 10-K/10-Q reports. Free, no API key.

Authentication

No authentication requiredFree to use with no key needed.

Sample Requests

GET Get company facts

Get all financial facts for Apple (CIK 0000320193).

https://data.sec.gov/api/xbrl/companyfacts/CIK0000320193.json

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
User-Agent YourName [email protected]
curl -X GET "https://data.sec.gov/api/xbrl/companyfacts/CIK0000320193.json" \
  -H "User-Agent: YourName [email protected]"
import requests
headers = {
    "User-Agent": "YourName [email protected]"
}
response = requests.get(
    "https://data.sec.gov/api/xbrl/companyfacts/CIK0000320193.json",
    headers=headers,
)
print(response.json())
const url = 'https://data.sec.gov/api/xbrl/companyfacts/CIK0000320193.json';

const response = await fetch(url, {
  headers: {
    'User-Agent': 'YourName [email protected]'
  },
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://data.sec.gov/api/xbrl/companyfacts/CIK0000320193.json"
	req, _ := http.NewRequest("GET", targetURL, nil)
	req.Header.Set("User-Agent", "YourName [email protected]")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://data.sec.gov/api/xbrl/companyfacts/CIK0000320193.json")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)
req["User-Agent"] = "YourName [email protected]"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://data.sec.gov/api/xbrl/companyfacts/CIK0000320193.json";
$opts = ["http" => [
    "method" => "GET",
    "header" => implode("\r\n", [
        "User-Agent: YourName [email protected]"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));
GET Search companies

Get filing history for Apple.

https://data.sec.gov/submissions/CIK0000320193.json

Hover any highlighted part to learn what it does

Headers — extra info sent with the request
User-Agent YourName [email protected]
curl -X GET "https://data.sec.gov/submissions/CIK0000320193.json" \
  -H "User-Agent: YourName [email protected]"
import requests
headers = {
    "User-Agent": "YourName [email protected]"
}
response = requests.get(
    "https://data.sec.gov/submissions/CIK0000320193.json",
    headers=headers,
)
print(response.json())
const url = 'https://data.sec.gov/submissions/CIK0000320193.json';

const response = await fetch(url, {
  headers: {
    'User-Agent': 'YourName [email protected]'
  },
}); 
const data = await response.json();
console.log(data);
package main

import (
	"fmt"
	"io"
	"net/http"
)

func main() {
	targetURL := "https://data.sec.gov/submissions/CIK0000320193.json"
	req, _ := http.NewRequest("GET", targetURL, nil)
	req.Header.Set("User-Agent", "YourName [email protected]")

	client := &http.Client{}
	resp, _ := client.Do(req)
	defer resp.Body.Close()
	body, _ := io.ReadAll(resp.Body)
	fmt.Println(string(body))
}
require "net/http"
require "json"

uri = URI("https://data.sec.gov/submissions/CIK0000320193.json")

http = Net::HTTP.new(uri.host, uri.port)
http.use_ssl = uri.scheme == "https"

req = Net::HTTP::Get.new(uri)
req["User-Agent"] = "YourName [email protected]"

res = http.request(req)
puts JSON.parse(res.body)
<?php
$url = "https://data.sec.gov/submissions/CIK0000320193.json";
$opts = ["http" => [
    "method" => "GET",
    "header" => implode("\r\n", [
        "User-Agent: YourName [email protected]"
    ]),
]];
$ctx = stream_context_create($opts);
$res = file_get_contents($url, false, $ctx);
print_r(json_decode($res, true));

Postman Setup Guide

Get Postman ↗
  1. No API key needed
  2. Always set User-Agent: YourName [email protected] (required by SEC)
  3. Find CIK numbers at sec.gov/cgi-bin/browse-edgar?action=getcompany&company=apple&type=10-K
  4. Apple CIK: 0000320193, Tesla: 0001318605, Google: 0001652044
  5. Financial data: GET /api/xbrl/companyfacts/CIK{cik}.json

What can you build with SEC EDGAR API?

SEC EDGAR API is a Finance API. Developers commonly use finance APIs for:

  • processing payments and handling transactions
  • building subscription and billing systems
  • automating invoicing and financial reporting
  • fraud detection and risk scoring
  • connecting to banking and accounting software

No authentication required. This API is open — no signup or key needed. Ideal for quick prototypes and public-facing features. SEC EDGAR API is free to use, making it a low-risk choice to experiment with.

New to APIs? Read our beginner's guide

Open documentation ↗