Retrieve listing duration options for a category
Retrieves the default duration and the duration options that are available for listings in a specific category.
Some categories are currently unsupported (including subcategories): 350 (Real Estate), 5000 (Jobs) and 36 (Businesses for sale).
This API is deprecated in favour of the category details API.
URL: | https://api.trademe.co.nz/v1/Categories/{category}/Durations.{file_format} |
---|---|
HTTP Method: | GET |
Requires Authentication? | No |
Permission Required: | Public |
Supported Formats: | XML, JSON |
Rate Limited? | No |
URL parameters
category | String (required) |
The number of the category to retrieve durations for. |
||||
---|---|---|---|---|---|---|
file_format | Enumeration (required) | The format of the response. | ||||
|
Returns
<ListingDurations>
Default | Enumeration |
The default duration for the listing. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|---|
|
||||||||||||||||||||||||||||||||||||||||||||||||||||||||
Durations | Collection of Enumeration or null |
A list of durations this category supports. |
||||||||||||||||||||||||||||||||||||||||||||||||||||||
|
Examples
https://api.trademe.co.nz/v1/Categories/1443/Durations.xml - Retrieves the listing duration options for antiques > advertising category. https://api.trademe.co.nz/v1/Categories/0266/Durations.xml - Retrieves the listing duration options for music DVDs.