0% acharam este documento útil (0 voto)
424 visualizações9 páginas

Como Usar APIs com ChatGPT: Tutorial Rápido

Este documento fornece um tutorial de 5 minutos sobre como usar APIs graças ao ChatGPT, com 7 exemplos. Ele explica o que é uma API, como obter chaves de API gratuitas, coisas que podem ser feitas com APIs como acompanhar preços de ações e criptomoedas, e um passo a passo para usar a API da CoinMarketCap para obter preços de criptomoedas em uma planilha do Google usando o código fornecido pelo ChatGPT.
Direitos autorais
© © All Rights Reserved
Levamos muito a sério os direitos de conteúdo. Se você suspeita que este conteúdo é seu, reivindique-o aqui.
Formatos disponíveis
Baixe no formato PDF, TXT ou leia on-line no Scribd
0% acharam este documento útil (0 voto)
424 visualizações9 páginas

Como Usar APIs com ChatGPT: Tutorial Rápido

Este documento fornece um tutorial de 5 minutos sobre como usar APIs graças ao ChatGPT, com 7 exemplos. Ele explica o que é uma API, como obter chaves de API gratuitas, coisas que podem ser feitas com APIs como acompanhar preços de ações e criptomoedas, e um passo a passo para usar a API da CoinMarketCap para obter preços de criptomoedas em uma planilha do Google usando o código fornecido pelo ChatGPT.
Direitos autorais
© © All Rights Reserved
Levamos muito a sério os direitos de conteúdo. Se você suspeita que este conteúdo é seu, reivindique-o aqui.
Formatos disponíveis
Baixe no formato PDF, TXT ou leia on-line no Scribd

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

How to use any 
API thanks to 
ChatGPT
RomeoBc
5 minutes Tutorial  
+ 7 examples
Intro
API in 10 seconds
An API is a 
 back 
and forth between a website and a user.








Most API come at a price but you
Things you can do with API
Enriching your leads - with Hunter.io

Checking the Weather - with 7Timer!

Generating Text - Usin
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
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 giv
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
Follow for more
RomeoBancel
Weekly content
On AI & startups

Você também pode gostar