How to use any
API thanks to
ChatGPT
5 minutes Tutorial
+ 7 examples
RomeoBc
Intro
API in 10 seconds
An API is a software that sends information back
and forth between a website and a user.
API
You App
Most API come at a price but you can try a lot of
them for free and do a few requests.
Users are tracked using an API Key.
Things you can do with API
Enriching your leads - with Hunter.io
Checking the Weather - with 7Timer!
Generating Text - Using OpenAI GPT3
Managing email campaign - Using lemlist
Following Stock Prices - Using YahooFinance
Following Crypto prices - Using CoinMarketCap
Congress members' stock transactions - HSW
Tutorial
Step 1 - Grab your API key
Go to the app you wish to use
(Here I will use Coinmarketcap),
Log in and copy your personal API key
(It’s a series of numbers like this:
ep093642-5450-44j8-8318-2dcb7288b936)
Step 2 - Write the code
(Ask ChatGPT to write it)
Write a ggsheet script that takes the name of a crypto as an input
and gives back the current price of that crypto using the
Coinmarketcap API
Here is a script in Google Sheets script editor that takes the name
of a cryptocurrency as an input and returns the current price of
that crypto using the Coin Market Cap API:
Note that you need to replace the YOUR_API_KEY with your own
API key from CoinMarketCap.
Step 3 - Paste it in GGsheet
Go to Extensions -> Apps Script
Paste the complete code from ChatGPT
Step 4 - Paste your API Key
Replace YOUR_API_KEY with API key from step 1
Your Key
Step 5 - Use your new function
In this case the function is simply
“ =getCryptoPrice(B7) ”
And you’re done
Congrats, you can now use an API
Weekly content
On AI & startups
Follow for more
RomeoBancel