% Generated by roxygen2: do not edit by hand
% Please edit documentation in R/get_cik.R
\name{get_cik}
\alias{get_cik}
\title{Look up a company's SEC Central Index Key from its ticker symbol}
\usage{
get_cik(symbol)
}
\arguments{
\item{symbol}{A character string containing the stock ticker symbol
(e.g. \code{"AAPL"}). Case-insensitive.}
}
\value{
A character string containing the CIK number (without zero-padding).
}
\description{
Translates a stock ticker symbol into the corresponding SEC EDGAR Central
Index Key (CIK). The CIK is a unique numerical identifier assigned by the
SEC to every company that files with EDGAR. It is required for all
subsequent EDGAR API calls.
}
\details{
Data is retrieved from \url{https://www.sec.gov/files/company_tickers.json},
a publicly maintained mapping file updated by the SEC. No API key is
required.

The SEC requests that automated tools identify themselves via a User-Agent
header. Set your identifier once per session with:
\code{options(edgarfundamentals.user_agent = "Your Name your@email.com")}
}
\examples{
\dontrun{
options(edgarfundamentals.user_agent = "Jane Smith jane@example.com")
get_cik("AAPL")
get_cik("LLY")
}

}
