Skip to main content
All CollectionsData Sources
JSON API Data source

JSON API Data source

Y
Written by Yohan
Updated this week

Like the data source CSV, use the JSON API as a input to import your data to your mappings

Create a JSON API Data source

  • On the Data sources section click on CREATE

  • If you already created a JSON-API account choose JSON-API data source otherwise choose CREATE A NEW JSON-API ACCOUNT

  • Choose a JSON-API account

  • Create the JSON-API data source

Configure a JSON API Data source

From JSON API source, click on configure to set up your dataset

Endpoint

An URL is mandatory to send a request and return data as JSON

Targeted products

Use a targeting to only sync your data with a batch of products

Selectors

Use selectors to create your fields and choose which data you want to retrieve. You have to use a JSON Path language to select a part from the JSON data. To learn how tou use JSON Path, please visit this article.

Your fields can be configured (type, separator, destination) to be added later to the mappings.

Advanced settings

Set up your settings to affect the crawling of products by the bot Dataiads.

User Agent

Always keep DataiadsBot by defaut

Delay

The frequency between each crawling (in milliseconds)

Parallelism

The number of simultaneous products crawled

HTTP headers

Headers to add to populate your request

To receive your data as JSON output, don't forget to add:​Accept: application/json

Query params

To add parameters to your endpoint URL

Testing your products

Once your setup finished you can test your products to check if any data if retrieved

You can save your settings and activate your source to begin the synchronization.

To learn about Data sources activation and synchronization please read this article

To learn about Mappings please read this article

Did this answer your question?