You can enter the URL to a CSV, TSV, JSON, HTML, XLS, XLSX or XML file. DataPrep also supports URL imports that require authentication.
To import files from URLs
1. Create a workspace or open an existing workspace.
Click here to see how to create a workspace.
2. Click URL from the Choose your data source section.
2. Enter the Dataset name and the request URL to fetch your data.
You can also click the Try sample link to import the sample dataset and see how it works.
3. Enter the necessary parameters and headers.
For example, you can declare parameters and headers with data types, content format and the language used.
4. Select one of the pagination options if you want to import your data page-wise.
Note: The None option is selected by default.
Pagination
i) Page Number - Select this option if your data is stored on multiple pages and you want to import them in the same order. You need to provide the following details when using this option:
- Page number parameter : This is the page parameter name provided by your API/URL provider.
- Initial value : The initial page number from which you want to start importing.
- Number of requests : The number of requests to execute in sequence.
In the above screenshot, we are fetching 10 pages. The URL will be executed 10 times as follows:
Here, the Parameter name is Page and the Number of requests is 10.
ii) Offset and limit - Select this option if you have a large dataset and want to import the data in batches by providing the start position and batch size of each batch. You need to provide the following details when using this option:
- Offset parameter : This is the offset parameter name given by your API provider.
- Initial value : Provide the initial value of offset.
- Number of requests : Number of requests to execute in the sequence.
- Limit parameter : This is the limit parameter name given by your API provider.
- Limit value : Number of records to be fetched from the offset.
From the second request, the Offset Parameter value is the previous offset value + limit.
Here the Offset Parameter name is Offset , Limit Parameter name is Limit . The Limit Value is 100 and the Number of requests is 10.
iii) Next page URL - Select this option if you have your data in pages where each page has the URL for the next page. You need to provide the following details when using this option:
URL Property Path : The property name that can fetch the URL of the next page.
In the above screenshot, the next page URL Property is /next_page_URL. The next page will be fetched from the JSON property /next_page_URL. This execution will continue until the /next_page_URL property is empty or null.
Note:
1. The Next Page URL pagination is applicable only for JSON and XML files.
2. These pagination options can be used in Zoho DataPrep only if your API provider permits you to do so.
5. Select one of the authorization types and give a name to this connection.
- No Auth - The URL you provide doesn't require any authorization.
- Basic Auth - The URL requires the 'Username' and 'Password' to authorize the URL and import data.
- OAuth2.0 - The URL is secured using OAuth2.0 authentication technique. It requires 'Client ID', 'Client Secret', 'Access Token', and 'Refresh token' to authorize the URL and allow import.
Note: The Auth configuration is saved for importing from the URL in the future. Credentials are securely encrypted and stored.
6. Give a name to your connection in the Connection name text box.
7. Click Authenticate to fetch the data from the URL.
8. Once you have completed importing data, your dataset will open and you can start preparing your data right away.
Note: You can choose to schedule the import using the
Schedule import option available for datasets in your workspace or from the
Import menu in the top bar of the DataPrep Studio page.
Click here to know more.
To Edit the URL connection
DataPrep saves your data connections to avoid the hassle of keying in the credentials every time you need to connect to a data source or destination. You can always edit the saved data connection and update them with new parameters or credentials using the Edit connection option.
1. Click Saved data connections from the Choose a data source box while creating a new dataset.
2. You can manage your saved data connections right from the data import screen. Click the ellipsis (3 dots) icon to share, edit, view the connection overview, or remove the connection.
3. Click the Edit connection option to update the saved connection with new parameters or credentials.
4. You can also edit the pagination options under the Pagination tab if you want to import your data page-wise:
- Page number
- Offset and limit
- Next page URL
5. Click the Update button to update the connection.
SEE ALSO