Quora is a famous question-and-answer website. We can use the Quora API to import data from Quora into Google Sheets. In this tutorial, we’ll show you how to connect the Quora REST API to the Google Sheets API in 6 steps:
To pull data from the Quora API to Google Sheets, first install and open the Apipheny Google Sheets add-on.
Apipheny is a no-code API integrator for Google Sheets that you can use to make unlimited API requests, connect to unlimited APIs, save API requests, schedule API requests, and more.
1. Install Apipheny by opening the following link on desktop and then clicking the Install button on the page: https://apipheny.io/install
2. After you’ve installed Apipheny, open a Google Sheet and then click on the Add-Ons or Extensions option in the top menu. In the add-ons menu, you should see Apipheny.
Click Apipheny > Import API to open the Apipheny sidebar in your Google Sheet.
At the moment, registering an OAuth client requires contacting the Quora support team at firstname.lastname@example.org. In your email, include this required information:
Once registration is complete, you’ll be able to view your account’s client ID and client secret, when you visit this URL: https://www.quora.com/ads/oauth_client_data
In your browser’s address bar, paste the following link and then press Enter:
When you visit the URL, an Authorization page will then be displayed. Click the Accept button to continue:
The browser will then navigate to the redirect URL that you provided when you registered your client. One query parameter (a code) will be added to your browser’s address bar, at the end of the redirect URL. The code parameter is a single use login code that we will now use to acquire an access token:
Open up a terminal and compose the following curl command:
curl -X POST -d "client_id=YOUR_CLIENT_ID" -d "client_secret=YOUR_CLIENT_SECRET " -d "code=CODE " -d "grant_type=authorization_code" --data-urlencode "redirect_uri=YOUR_REDIRECT_URL" https://www.quora.com/_/oauth/token
You’ll need to replace a few values:
Your access token will be displayed in the response.
In this section, we’ll show you how to browse the Quora API documentation to find an endpoint that retrieves the specific information you need from your Quora account. If you already know your API URL, or you want to use the same example URL as us, just skip to Step 5.
First, open the Quora API documentation page: https://www.quora.com/ads/api9169a6d6e9b42452d500a61717d87d15d5fa49ec5b53030741178130#section/Overview
The menu on the left contains general information about the Quora API and a list of API endpoints:
An example endpoint is Get data for an account, which gets a paginated list of data, either for each entity in the requested level, or each time window in a time series. The URL for this endpoint is:
The documentation for this endpoint contains the cURL command, example responses, the necessary scopes (ads_read), the path parameters and the query parameters:
All API calls to the Quora API should be made to the https://api.quora.com/ads/v0/ base domain.
Okay, we’re in the home stretch. Now go back to your Google Sheet and make sure that the Apipheny add-on is open on the Import tab. With the Import Tab open, enter these details into the add-on:
API URL: In Step 4, I explained how you can find the Quora API endpoint that you need. Now copy your complete API URL into the Apipheny add-on, where it says API URL Path, followed by any GET parameters required for your query.
For this example, we are using the Get current user endpoint, which provides information about the Quora user which is currently authorized to use the Reporting API. The corresponding URL for this endpoint is:
If you’re following the same example, just copy and paste this URL into Apipheny.
Headers: In the Headers section of the Apipheny add-on, add one row with the following key and value:
In the header value, make sure to replace your_token with the value of the token you obtained previously, in Step 3. There should be a literal space between Bearer and your_token.
Here’s what our API request looks like in Apipheny:
The last step is to click the Run button at the bottom of the Apipheny add-on and then your Quora data will be imported into your Google Sheet.
After making a successful request to the Quora API, try querying a different Quora API endpoint, or try using one of the more advanced features in the Apipheny add-on, such as:
Constant Contact API
Facebook Graph API
Facebook Ads API
Google SERP API
Linkedin Ads API
Product Hunt API
Reddit Ads API
Riot Games API