I am currently developing an application that integrates with Etsy's API, specifically using the createDraftListing endpoint to post new listings. My application focuses on digital downloads, and I am having trouble determining the correct taxonomy_id to use for these types of products. DOCS
Here's a snippet of my code for creating a draft listing:
import axios from 'axios';
const listingData = {
quantity: 9,
title: "Example Title",
description: "Example Description",
price: 19.99,
who_made: "i_did",
when_made: "2020_2024",
taxonomy_id: ???, // Unsure what to put here
type: "download",
};
axios.post('https://openapi.etsy.com/v3/application/listings', listingData, {
headers: {
'x-api-key': 'Your-Etsy-API-Key',
'Authorization': 'Bearer Your-OAuth-Token',
'Content-Type': 'application/json',
}
})
.then(response => {
console.log(response.data);
})
.catch(error => {
console.error('Error posting to Etsy:', error);
});
I am aware that taxonomy_id is essential for ensuring the listing appears in the correct category on Etsy, but I'm not sure how to find the appropriate ID for digital downloads. I've looked through the Etsy API documentation but haven't found clear guidance on this.
My questions are:
- How do I retrieve the list of available
taxonomy_idsfrom Etsy's API? - What is the best way to determine the appropriate
taxonomy_idfor digital download products? - Is there an example or a resource that shows the mapping of product types to their respective taxonomy IDs on Etsy?
Any help or pointers to the relevant documentation would be greatly appreciated!
Send a
GETrequest to this URL: https://openapi.etsy.com/v3/application/seller-taxonomy/nodesUse your
api-keywith ax-api-keyheader and the value. You'll receive a large list of taxonomies which you can use. Here is a small amount of the taxonomy code as an example: