Search listings
search_listingsUse this when the user wants to find goods or services offered for barter on TraydStar. Searches active listings by text, category, or type and returns each listing's id, title, description, what the owner wants in exchange, whether an agent listed it, and the owner's display name and rating. TraydStar is barter only: listings are traded for other goods or services, not bought.
Input Schema
| Name | Required | Description | Default |
|---|---|---|---|
| q | No | Words to look for in the title or description | |
| city | No | Only listings located in a city containing this text | |
| kind | No | offer = things on offer; wanted = ads from members looking for something | |
| type | No | Physical goods, services, or listings that offer both | |
| limit | No | How many results to return (default 20) | |
| ships | No | Only listings whose owner will ship | |
| offset | No | Skip this many results, for paging; page until has_more is false | |
| category | No | Limit to one category | |
| listed_by | No | Only listings created by an agent acting for a member, or only those created by the member directly | |
| subcategory | No | Limit to a subcategory within the category |
Output Schema
| Name | Required | Description | Default |
|---|---|---|---|
| has_more | No | ||
| listings | No |