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

The URL for the thumbnail sized photo (always 85x64, with white borders).

List String or null

The URL for the list view sized photo (scaled down to fit 160x120).

Medium String or null

The URL for the medium sized photo (scaled down to fit 175x175).

Gallery String or null

The URL for the gallery sized photo (scaled down to fit 233x176).

Large String or null

The URL for the large sized photo (scaled down to fit 352x264).

FullSize String or null

The URL for the full sized photo (scaled down to fit 670x502).

PlusSize String or null

The URL for the plus sized photo (scaled down to fit).

PhotoId Long Integer

The ID of the photo.

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
}