Which SEC file to use

SEC publishes three ticker files. We pulled all three on 2 December 2026.

FileRowsFieldsLast modified
company_tickers.json10,358cik_str, ticker, title30 November 2026
company_tickers_exchange.json10,358cik, name, ticker, exchangesame day
ticker.txt12,084ticker and CIK, tab-separated, lower case16 September 2022

SEC still serves ticker.txt, and old answers online still point to it. Its last change was in September 2022. Compared with today's JSON file, 6,279 tickers appear only in ticker.txt, 4,553 appear only in the JSON file, and 181 point to a different CIK in the two files.

Use the JSON files and treat ticker.txt as a 2022 snapshot.

One ticker, two companies

TickerCIK in ticker.txt (2022)CIK in company_tickers.json (today)
GOLD756894, Barrick, listed today as BARRICK MINING CORP under ticker B1591588, Gold.com, Inc.
XOM34088, EXXON MOBIL CORP2115436, ExxonMobil Holdings Corp

GOLD moved from one company to an unrelated one. If you key a table by ticker, you join Barrick's history to Gold.com's present. XOM now points to a different CIK, so a lookup by today's ticker misses every filing under the old one. Read the filings under both CIKs before you treat them as one record.

Step by step in Python

import json
import urllib.request

UA = "Your Name your.email@example.com"  # SEC requires a User-Agent that names you

def get(url):
    req = urllib.request.Request(url, headers={"User-Agent": UA})
    with urllib.request.urlopen(req, timeout=30) as r:
        return json.load(r)

rows = get("https://www.sec.gov/files/company_tickers.json").values()
ticker_to_cik = {r["ticker"]: r["cik_str"] for r in rows}

def cik_for(ticker):
    t = ticker.strip().upper().replace(".", "-")  # BRK.B -> BRK-B
    return ticker_to_cik.get(t)                    # None if not in today's file

cik = cik_for("brk.b")    # 1067983
cik10 = f"{cik:010d}"     # "0001067983"
sub = get(f"https://data.sec.gov/submissions/CIK{cik10}.json")
print(sub["name"], sub["tickers"], sub["formerNames"])

What we saw when we ran these calls on 2 December 2026:

  • Without a User-Agent, or with Python's default Python-urllib one, SEC returned HTTP 403.
  • data.sec.gov/submissions/CIK320193.json returned 404 and CIK0000320193.json returned 200. SEC's API page says the URL takes the 10-digit CIK with leading zeros.
  • The JSON file stores the CIK as a number (320193), so the leading zeros are gone. Pad it yourself.
  • No ticker appears twice in the file. All 534 share-class tickers use a dash, and none use a dot.

One CIK, many tickers

The file maps ticker to CIK. Going the other way gives you a list.

CIKCompanyTickers in the file
1652044Alphabet Inc.GOOGL, GOOG
1067983Berkshire HathawayBRK-A, BRK-B
70858Bank of America17, including BAC and its preferred shares

So "the ticker for this CIK" has no single answer. Decide which share class you want and store it on purpose, instead of taking the first row you find.

Traps that give a wrong or empty answer

  • The old file. ticker.txt returns a 2022 CIK for 181 tickers.
  • Dots instead of dashes. BRK.B is not in the file. BRK-B is.
  • An unpadded CIK. data.sec.gov returns 404 without the leading zeros.
  • Delisted companies. Today's file lists current tickers only. The old Facebook ticker FB is absent, for example. The filings stay on EDGAR under the CIK, but you need the CIK from somewhere else.
  • Rows that are not exchange listings. In the exchange file on 2 December 2026, 2,547 rows said OTC and 161 had no exchange.
  • Past dates. For a trade in 2019 you need to know who held the ticker in 2019. SEC's files cannot tell you.

Once you have a CIK, mind SEC's access rules on every call: the rate limit and User-Agent guide covers them. If your starting point is a 13F holding, you have a CUSIP, not a ticker, and need a different mapping.

Younesa is building US company data from SEC filings.