Parsehub is a popular web scraping tool. In this tutorial, I’ll show you how to connect the Parsehub REST API to Google Sheets in 5 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:
After logging into your Parsehub account, click your username link:
In the drop-down menu, click the Account item:
Your API key will be displayed in the Account section. Copy and paste your API key in a safe location because you will need it in the next steps.
In this section, we’ll show you how to browse the Parsehub API documentation to find the Parsehub API URL with an endpoint that retrieves the information you need from your Parsehub account.
If you already know your URL, or you want to use the same example URL as us, just skip to Step 4.
First, open the Parsehub API documentation page: https://www.parsehub.com/docs/ref/api/v2/
The menu on the left contains several sections, out of which Methods contains the API’s endpoints:
If you click the Methods section you will find a list of endpoints for this API:
An example API URL and endpoint is Run a project, which will start running an instance of the specified project on the ParseHub cloud:
The endpoint’s documentation contains a short description of its purpose, the endpoint’s HTTP method (eg. POST), the URI, a list of the accepted parameters, and example request as a cURL command and an associated example response:
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:
Method: At the top of the Apipheny sidebar, select the HTTP method (GET or POST) required by your API endpoint. For this example, we are using the GET method.
API URL: In Step 3, we explained how you can find the Parsehub REST API endpoint that you need. Now copy and paste your complete Parsehub API URL into the Apipheny add-on, where it says API URL Path, followed by any parameters required for your query (if applicable).
For this example, we are using the List all projects endpoint, which gets the list of projects in your account. This is what the whole URL looks like:
Finally, the last step is to click the Run button at the bottom of the Apipheny add-on and then wait for the Parsehub API data to be imported into your Google Sheet. Here’s what our request looked like when completed:
That’s it! You’ve successfully connected your Parsehub account to Google Sheets using the Parsehub API, Google Sheets API, and the Apipheny add-on.
After making a successful request to the Parsehub API, try querying a different Parsehub API endpoint, or try using one of the more advanced features in the Apipheny add-on.
Schedule requests for automatic updates
Reference cell values in requests
Stack multiple URLs in a single request
Run all saved requests at once
Crypto API tutorials and more:
Sponsored by Zink Virtual Tip Jar & Rewording.io Paraphrasing Tool
Accept donations on Twitch | Accept donations on Discord | Accept donations on YouTube | Accept donations on Telegram | Accept donations on Twitter | Accept donations on TikTok | Accept donations on Instagram | Accept donations on LinkedIn | Accept donations on Facebook | Accept donations on your Website