Find Secret API-Keys

Aditya Soni
Dec 22, 2019 · 3 min read

Hello everyone, it may be just another blog on how to find API keys, but here I’ll try to give every Information about finding the secret API keys and how to use them to authenticate.

An Application Programming Interface key (API key) is a unique indentifier that is used to authenticate the incoming request and that program or user has known permissions for accessing the non-private user data.

API keys can be found in multiple ways, but the simplest method would be visiting the GitHub page of the desired program or checking the source code.

But it can be a bit of time-consuming, so to save a lot of time. Here is a great tool I would recommend to use:


It’s easy to install and use

  1. Clone the repo or download it via
  2. Open Chrome and go to chrome://extensions
  3. Enable “Developer Mode”
  4. Drag and drop the KeyFinder folder

After installing KeyFinder successfully go-to the target website and Click on the keyFinder icon added on the top right corner of chrome and manually add some common keywords used to find API keys so that KeyFinder can crawl in the website and Find the keys. After visiting links, click on the result/s and there you can see the outcomes.

Now what? that’s the main question. API keys can be used to authenticate without the username and password of an individual.

Below are some ways in which particular API keys found on a Bug Bounty Program can be used to check if they are valid and can also be used to Account takeover or extract personal information from the API.

Slack API token

curl -sX POST ""

Facebook Access Token

GitHub Token

curl -s -u "user:apikey"
curl -s -H "Authorization: token TOKEN_HERE" ""
# Check scope of your api token
curl "" -i -u "user:apikey" | grep "X-OAuth-Scopes:"

Twitter API Secret

curl -u 'API key:API secret key' --data 'grant_type=client_credentials' ''

SendGrid API Token

curl -X "GET" "" -H "Authorization: Bearer SENDGRID_TOKEN-HERE" -H "Content-Type: application/json"

AWS Access Key ID and Secret

Install awscli, set the access key and secret to environment variables, and execute the following command:

AWS_ACCESS_KEY_ID=xxxx AWS_SECRET_ACCESS_KEY=yyyy aws sts get-caller-identity

AWS credentials’ permissions can be determined using Enumerate-IAM. This gives a broader view of the discovered AWS credentials privileges instead of just checking S3 buckets.

git clone
cd enumerate-iam
./ --access-key AKIA... --secret-key StF0q...

Heroku API Key

curl -X POST -H "Accept: application/vnd.heroku+json; version=3" -H "Authorization: Bearer API_KEY_HERE"

Instagram Access Token

Spotify Access Token

curl -H "Authorization: Bearer <ACCESS_TOKEN>"

Zendesk Access Token

curl https://{subdomain} \
-H "Authorization: Bearer ACCESS_TOKEN"

You can find more useful keys here:


Secretx is a tool to extract the API keys from each requested URLs.

python3 --list urlList.txt --threads 15

Best of luck everyone. Keep-Hacking!

Feedbacks and edits are welcome

Twitter, Linkedin

If you enjoyed this blog, please click the 👏 button and share it to help others find it.

Cyber Verse

You are under survillence.

Medium is an open platform where 170 million readers come to find insightful and dynamic thinking. Here, expert and undiscovered voices alike dive into the heart of any topic and bring new ideas to the surface. Learn more

Follow the writers, publications, and topics that matter to you, and you’ll see them on your homepage and in your inbox. Explore

If you have a story to tell, knowledge to share, or a perspective to offer — welcome home. It’s easy and free to post your thinking on any topic. Write on Medium

Get the Medium app

A button that says 'Download on the App Store', and if clicked it will lead you to the iOS App store
A button that says 'Get it on, Google Play', and if clicked it will lead you to the Google Play store