Help Center

Import: Import your products using API Import

Sarah B
Sarah B
  • 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.

    1.png

  2. Using the “Create File Upload URL“ button inside the primary source section. This will automatically set up the Consumer Key and Permissions.

    2.png

    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.

    3.png

    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). 

    4.png

  3. 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 the following documentation:

    GoDataFeed APIv1 Import Upload Reference

    Example

    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 'https://api.godatafeed.com/v1/{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.

    6.png

  4. At the end, you should be able to import all your products into GoDataFeed. You can trigger a manual upload by clicking the "Import" button shown here. 

    7.png

Related to

Was this article helpful?

0 out of 0 found this helpful

Have more questions? Submit a request

Comments

0 comments

Please sign in to leave a comment.