Skip to content

Fetching data from API

PersivX allows users to periodically fetch data from APIs with GET, POST and OAuth 2.0 secured endpoints. The data retrieved can be pre-processed using Python before being fed into PersivX Workspace. The final data passed to PersivX should be in a 2D array format, similar to SQL tables.


There is no restriction on the size of the data as long as the API response completes within 60 seconds, and the total disk usage stays within the allotted limit for your organization.

Note

APIs can have the same refresh schedules as of the PersivX workspace or different if required. Developers can set the refresh schedule rule when adding the API Datasource


Passing Headers (optional)

Some SaaS products require authentication before their APIs can be accessed. In such cases, headers for authentication can be included in the API request. PersivX imposes no restrictions on the number of headers you can pass with the request.



Steps to connect:

Step 1: Select API

New DS

Step 2: Add API details

Info

Preprocess the response to return only a 2D array with the required data. If your API already returns with only a 2D array, no updates are required in this section.

API as data source


Data Refresh

If multiple APIs are added to a PersivX workspace, each API can optionally have its own refresh frequency. You can set refresh intervals to hourly, daily, weekly, monthly, or define a custom schedule. It's also possible to combine schedules, such as refreshing data every weekday (Monday-Friday) at 6 PM and adding an extra refresh at 12 PM every Monday - by creating multiple refresh schedules for the same API.

Refresh Schedules