get_listings_by_shop
Retrieve listings that belong to an Etsy shop and filter them by state, such as active, inactive, sold_out, or draft, to review shop inventory and track listing status.
Instructions
Endpoint to list Listings that belong to a Shop. Listings can be filtered using the 'state' param.
Tool call template
Replace each placeholder with a value matching the input schema. Only required parameters are included; add optional parameters as needed.
{
"id": 1,
"jsonrpc": "2.0",
"method": "tools/call",
"params": {
"arguments": {
"shop_id": "<shop_id>"
},
"name": "get_listings_by_shop"
}
}Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| limit | No | The maximum number of results to return. | |
| state | No | When _updating_ a listing, this value can be either `active` or `inactive`. Note: Setting a `draft` listing to `active` will also publish the listing on etsy.com and requires that the listing have an image set. Setting a `sold_out` listing to active will update the quantity to 1 and renew the listing on etsy.com. | |
| offset | No | The number of records to skip before selecting the first result. | |
| shop_id | Yes | The unique positive non-zero numeric ID for an Etsy Shop. | |
| sort_on | No | The value to sort a search result of listings on. NOTES: a) `sort_on` only works when combined with one of the search options (keywords, region, etc.). b) when using `score` the returned results will always be in _descending_ order, regardless of the `sort_order` parameter. | |
| includes | No | An enumerated string that attaches a valid association. Acceptable inputs are 'Shipping', 'Shop', 'Images', 'User', 'Translations', 'Videos', 'Inventory' and 'Personalization'. | |
| sort_order | No | The ascending(up) or descending(down) order to sort listings by. NOTE: sort_order only works when combined with one of the search options (keywords, region, etc.). |