This is a simple and efficient CLI written in Go to lookup the Central Index Key (CIK) numbers of companies from the SEC database. Enter a company name, and it will return the associated CIK number.
- Handles gzip-compressed responses
- Extracts CIK and company name from the response
- Parses multi-word company names
- Go v1.20
- goquery package (used for HTML parsing)
Clone the repo:
git clone https://github.com/nronzel/cik-lookup.git
cd cik-lookup
Install Dependencies
go mod tidy
To use the tool, run the following command from the terminal:
go run main.go <company_name>
Replacing the company name with the company you want to look up.
Example:
go run main.go microsoft corp
The results are truncated to 100 if more than 100 results are found. Try being more specific in these situations.
Simple POST request with the company name to the SEC CIK lookup URL.
If you want to contribute to this and expand upon its functionality, please fork the repository and submit a pull request with your changes.
This project is licensed under the MIT License.
For any queries or suggestions, feel free to open an issue.