Help Center

Import: Import your products using API Import

Sarah Bacchus
Sarah Bacchus
  • Updated

Importing your products using API Import enables you to configure the import process similarly to Manual Upload. The key distinction is that, unlike Manual Upload, you are not required to manually upload the import file. Instead, you can incorporate the file using our  GoDataFeed API v1.

Setup Permissions

The first thing you need to do is set up all the necessary permissions to send the file through our HTTP request. You can do this in two ways:


1. Manually set up a Consumer Key in the GoDataFeed App with the Import - Update permission checked.



2. Using the “CREATE FILE UPLOAD URL“ button inside the primary source section. This will automatically set up the Consumer Key and Permissions.



By including this Consumer Key and the necessary Permissions, you will generate the subsequent HTTP URL. This URL will serve as the endpoint where you can send the file that will be utilized for the import process to gather all the products. You can examine the formatting of this URL in the GoDataFeed API v1 reference.



By using this endpoint, you can send the file following the same file format you set in the primary source by selecting any of the following: GoDataFeedXML, Google XML, Comma-delimited (.txt), Tab-delimited (.txt), Zip (accepted format compressed in .zip folder), GZip (accepted format compressed in .gzip folder), Semicolon-Delimited (.csv), Generic XML, JSON (.json). 


Then you send the file through a PUT HTTP request to the endpoint, you could use any programming language to create the request such as Python, Java, JavaScript, C#, etc., or use a tool like cURL, Postman, or any other advanced REST to do a PUT request and send the file to the endpoint. (for further information review GoDataFeed APIv1 Import Upload Reference)

This step may need to be done on your client's side if you are working with a customer.


Here's an example using cURL to do the request:

curl --location -g --request PUT '{token}/Imports' \

--header 'Content-Type: text/plain' \

--data '@/C:/User /Documents/products.csv'


After sending this request, the file name input from the primary source should be filled with the name of the file that you send.



At the end, you should be able to import all your products and you can trigger a manual upload by clicking the Import button on the far left. 


Related to

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request



Please sign in to leave a comment.