Import Twitch Data to Google Sheets

In this guide, we’ll walk through how to import Twitch data directly into Google Sheets, using the API Connector add-on for Sheets. We'll set up a custom OAuth connection and connect to their API.


Before You Begin

Click here to install the API Connector add-on from the Google Marketplace.

Part 1: Get your Twitch OAuth Credentials

  1. Navigate to You'll need to log in if you haven't already.
  2. In the top right, click Your Console
  3. Click Register Your Applicationtwitch-register
  4. Fill out an app name and category, and include the OAuth redirect URL provided here. Click Create.
  5. You'll see your new application. Click Manage
  6. The client ID and secret will be displayed on this page. Copy them and keep them handy, we'll need them shortly.

Part 2: Connect Twitch to API Connector

  1. Open up Google Sheets and click Extensions > API Connector > Manage Connections
  2. Scroll to the bottom of the sidebar and click Add Custom OAuth
  3. Fill in the Custom OAuth modal as follows. If you like, edit the scopes you'd like to have access to.
    • OAuth Grant Type: Authorization Code
    • Name: Custom Twitch
    • Authorization Base URL: user:read:email user:read:follows
    • Token URL:
    • Client IDprovided by Twitch
    • Client Secretprovided by Twitch
  4. Click Save
  5. Click Manage Connections to return to the list of connections
  6. Scroll down until you find your new custom connection. Click Connect
  7. You'll be prompted to give access to the new app you created above. Click Authorize
  8. You'll be returned to your sheet and can verify that the new connection is now active.

Part 3: Get Twitch Data in Sheets

To create a request, include your full request URL in the request URL field, and select your custom Twitch connection from the dropdown OAuth menu.

You can see the full list of available endpoint and parameters in the API documentation. For example, here we'll get information about a specific channel. Substitute in your own client ID where it says your_client_id.

  • Application: Custom
  • Method: GET
  • Request URL:
  • OAuth: Custom Twitch
  • Headers
    • Client-Id: your_client_id

Part 4: API Documentation

Official API documentation:

13 thoughts on “Import Twitch Data to Google Sheets”

      • i made some progress with it now thank you for responding i also have one more question. I ran the api connector but i got this error message:
        Completed with errors
        - We received an error from (400) show response
        {"error":"Bad Request","status":400,"message":"Missing required parameter \"broadcaster_id\""}

        where would i find the broadcaster_id ?

    • Add them to the end of the request URL with a separate "login" parameter for each one, e.g. ?login=X&login=Y&login=Z, where X, Y, and Z are the names are the streamers you're interested in.

    • You can add it to the end, e.g.
      To make it more automated, you can list all your broadcaster IDs in one column and then reference them in your request, e.g.!A1:A10+++

  1. Hello i was able to pull a list of users for my analysis but when i make the request i only get the total number. and a empty column next to it. How do i identify the broadcaster to the number of followers in the query ?

    • Tick the "Add request URL" box (under Output options) to see the request URL you sent initially alongside the response from the API.

      • Thank you. That worked now i ran into a issue if i wanted to create a list i tried the syntax and i only got one line. How do i populate a list of users ?

      • Twitch only lets you enter a single broadcaster_id at a time. However you can cycle through a list of broadcaster IDs, running a request for each one, in a multi-query request like!A1:A10+++

Leave a Comment

Jump To