API Connector Documentation
Import D-iD API Data to Google Sheets
In this guide, we’ll walk through how to pull data from the D-ID API directly into Google Sheets, using the API Connector add-on for Sheets.
Contents
- Before You Begin
- Part 1: Get D-ID API Key
- Part 2: Pull D-ID API Data into Sheets
- Part 3: API Documentation
Before You Begin
Click here to install the API Connector add-on from the Google Marketplace.
Part 1: Get Your D-ID API Key
- Log in to D-ID, open the left-hand sidebar, and click Settings & API.
- Click Generate new key
- Copy the key to your clipboard.
- One last step: Because the D-ID API requires Basic Authentication, we need to encode our API key to base 64. You can do this by entering your API key into this form.
The encoding script runs in your browser, and none of your credentials are seen or stored by this site.
Part 2: Pull D-ID API Data into Sheets
You can run a request to any of the endpoints shown in the documentation. For this simple example, we'll fetch the number of credits remaining in our account. Substitute in your own encoded credentials where it says your_encoded_credentials
.
- Open up Google Sheets and click Extensions > API Connector > Open > Create request.
- In the request form enter the following:
- Application:
Custom
- Method:
GET
- Request URL:
https://api.d-id.com/credits
- Headers
Authorization
:Basic
your_encoded_credentials
- Application:
- Create a new tab and click Set current to use that tab as your data destination.
- Name your request and click Run. A moment later you’ll see data from your test request populate your Sheet.
Part 3: API Documentation
Official API documentation: https://docs.d-id.com/reference/get-started