Website logo

Get a collection of the different URLs for a given photo ID

Get a collection of the different URLs for a given photo ID

URL: https://api.trademe.co.nz/v1/photos/{photoId}.{file_format}
HTTP Method: GET
Requires Authentication? Yes
Permission Required: None
Supported Formats: XML, JSON
Rate Limited? Yes

URL parameters

photoId Integer (required)

file_format Enumeration (required) The format of the response.
xml Serialize responses into XML.
json Serialize responses into JSON.

Returns

<PhotoUrl>

Thumbnail String or null Thumbnail
List String or null List
Medium String or null Medium
Gallery String or null Gallery
Large String or null Large
FullSize String or null FullSize
PlusSize String or null PlusSize
PhotoId Integer PhotoId

Example XML Response (switch to JSON)

<PhotoUrl xmlns="http://api.trademe.co.nz/v1">
  <Thumbnail>ABC</Thumbnail>
  <List>ABC</List>
  <Medium>ABC</Medium>
  <Gallery>ABC</Gallery>
  <Large>ABC</Large>
  <FullSize>ABC</FullSize>
  <PlusSize>ABC</PlusSize>
  <PhotoId>123</PhotoId>
</PhotoUrl>

Example JSON Response (switch to XML)

{
  "Thumbnail": "ABC",
  "List": "ABC",
  "Medium": "ABC",
  "Gallery": "ABC",
  "Large": "ABC",
  "FullSize": "ABC",
  "PlusSize": "ABC",
  "PhotoId": 123
}