Skip to content

Obtain the CIK number of a company from the SEC website.

License

Notifications You must be signed in to change notification settings

nronzel/cik-lookup

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

CIK Lookup

Overview

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.

Features

  • Handles gzip-compressed responses
  • Extracts CIK and company name from the response
  • Parses multi-word company names

Requirements

  • Go v1.20
  • goquery package (used for HTML parsing)

Installation

Clone the repo:

git clone https://github.com/nronzel/cik-lookup.git
cd cik-lookup

Install Dependencies

go mod tidy

Usage

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

Note

The results are truncated to 100 if more than 100 results are found. Try being more specific in these situations.

How It Works

Simple POST request with the company name to the SEC CIK lookup URL.

Contributing

If you want to contribute to this and expand upon its functionality, please fork the repository and submit a pull request with your changes.

License

This project is licensed under the MIT License.

Contact

For any queries or suggestions, feel free to open an issue.

About

Obtain the CIK number of a company from the SEC website.

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages