Website logo

Retrieve information about a branding image

Analyse the photo to check whether the photo is a logo or a photo.

URL: https://api.trademe.co.nz/v1/photos/{photoId}/Metadata.{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

<BrandingImageAnalysis>

The result of the analysis

LogoAnalysis <LogoAnalysis> or null LogoAnalysis
Confidence Number Confidence
IsLogo Boolean IsLogo

Example XML Response (switch to JSON)

<BrandingImageAnalysis xmlns="http://api.trademe.co.nz/v1">
  <LogoAnalysis>
    <Confidence>123.0</Confidence>
    <IsLogo>false</IsLogo>
  </LogoAnalysis>
</BrandingImageAnalysis>

Example JSON Response (switch to XML)

{
  "LogoAnalysis": {
    "Confidence": 123.0,
    "IsLogo": false
  }
}