Skip to the content

Products through the API

Read, add and change products, categories and tags from your own tools, with the same rules as the Products screen.

With the products:read scope a key can list the catalog (with search and the same filters as the Products screen), read one product by its id or its ASIN, see the Trash, and list the categories and tags. With products:write it can add a product by hand, change your own fields of a product, move a product to the Trash and back, and add categories and tags.

Calls that ask Amazon need the amazon:fetch scope and count against the key's daily Amazon allowance: adding products by ASIN or Amazon link, refreshing a product now, and importing many ASINs.

Adding products

  • POST /products adds up to 10 products at once by ASIN, Amazon address or amzn.to / a.co short link, and fetches their details from Amazon. Products already in the catalog are not added twice: the answer lists them as existing, and gives the categories and tags you sent to them as well.
  • POST /products/import takes up to 500 and answers at once with a job. The plugin adds them ten at a time, starting about a minute later and then every 15 minutes, until all are done; GET /jobs/{id} shows how far it is. When the key's Amazon allowance for the day is used up, the job waits and goes on the next day.
  • POST /products/manual adds a product with the details you give, without asking Amazon, as adding a product by hand does on the Products screen.
  • With dry_run=true, each of these says which products would be new, which are already in the catalog and which are not products, and adds nothing.

Changing a product

  • PATCH /products/{id} changes your own fields: your title, the badge and its days, your rating, verdict and key points, your brand name, rank and review date, your picture and its text, hiding it, the replacement ASIN, the review mark and note, your own link, and its categories and tags. These are never changed by a refresh from Amazon.
  • The price, brand, features and picture come from Amazon, and the next refresh would write over them, so they can be changed only on a product added by hand; on any other product the change is refused and names the fields.
  • Read the product first and send its ETag in the If-Match header. With dry_run=true the answer lists each field that would change, from what to what, and the ETag is not needed.
  • A category or tag id that does not exist is refused, not left out.

Deleting and restoring

  • DELETE /products/{id} moves the product to the Trash, where it stays for 5 days, as on the Products screen. The answer says on how many pages it was used; with dry_run=true it says so without deleting.
  • GET /products/trash lists what is in the Trash; POST /products/trash/{id}/restore puts one back, using the Trash entry's id. There is no way to delete a product for good, or many at once, through the API.

Type a word, such as "price", "disclosure" or "shortcode".