Quora is a popular 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:
Apipheny is an API connector for Google Sheets. You can use Apipheny to connect your Google Sheets to unlimited API data sources, make unlimited API requests, and more. There is a 30 day free trial included.
1.) Install Apipheny by opening the following link on desktop and then clicking the Install button in the Google Marketplace: https://apipheny.io/install
2.) After you’ve installed Apipheny, open a Google Sheet and then click on the Extensions dropdown in the menu at the top.
In the dropdown list you should see Apipheny. Click Apipheny then click Import API to open the Apipheny sidebar in your Google Sheet.
Tip: you can open a new Google Sheet by entering this URL in your browser:
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 command prompt window (for Windows OS) or a terminal (for Mac OS) 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:
Note: For Mac OS you may need to use single quotes ( ' ) instead of double quotes ( " ).
Your access token will be displayed in the response.
Note: If the token/key that you generate has an expiration time, you will need to complete this same process again to get a new token when the old one expires.
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.
Make a GET request
Make a POST request
PUT, PATCH, & DELETE Requests
Save requests for later
Schedule requests for automatic updates
Reference cell values in requests
=APIPHENY custom function
Stack multiple URLs in a single request
Run all saved requests at once
Modify your request settings
Import & export saved API settings
Alpha Vantage API
Constant Contact API
Facebook Graph API
Facebook Ads API
Google SERP API
Linkedin Ads API
Product Hunt API
Reddit Ads API
Riot Games API