Troubleshooting

 

ON THIS PAGE      Show

 

 

 

 

Searches and Metadata

A query containing quotes or an apostrophe causes an error

Make sure that you are not using ‘smart quotes’ in the query instead of straight quotes. ‘Smart’ (curvy or slanted) quotes might have been copied from Microsoft Word or Outlook. Queries with ‘smart’ single or double quotes are not supported by the API and generate an error. To create a valid search request, replace the ‘smart’ quote(s) in the query with straight quote(s); for example:

 

  Incorrect (slanted apostrophe):

 

https://api.ap.org/media/v/content/search?q=Schindlers+List

 

 

 

 

  Correct (straight apostrophe):

 

https://api.ap.org/media/v/content/search?q=Schindler's+List

 

 

 

 

  Incorrect (slanted quotes):

 

https://api.ap.org/media/v/content/search?q=Edge+Of+Tomorrow

 

 

 

 

  Correct (straight quotes):

 

https://api.ap.org/media/v/content/search?q="Edge+Of+Tomorrow"

 

 

 

Duplicate images in Search or Feed responses

Duplicate images with different image IDs may occasionally appear in APTOPIX content due to editorial filing practices. If you notice duplicates in content other than APTOPIX, please contact us.

Whether or not the pricing=true parameter was specified in the search request, search results always contain Item Metadata links that do not include the pricing=true parameter or the API key. You must add the pricing=true parameter and supply the API key in the x-api-key request header if you want to receive complete pricing information in the Item Metadata responses (including formatted price, use code and pricing message in addition to the price tags on renditions).

Item Metadata returns "404 Item source unavailable"

If you get this message when following the item metadata link from the search or feed response, please contact us and provide the details of the search or feed request and response and the details of the failed item metadata request.

Otherwise (for example, if you have stored the item metadata link in your system after requesting it from AP Media API), the content might no longer be available.

Downloads

"404 Requested binary cannot be located" or "404 Item source unavailable" download error

If you get this message when following the rendition download links from the search, feed or item metadata response, please contact us and provide the details of the search, feed or item metadata request and response and the details of the failed rendition download request.

Otherwise (for example, if you have stored the rendition download link in your system after requesting it from AP Media API), the content might no longer be available.

402 response "Price has changed"

Refer to Download After a Price Change.

403 response "Item not available in plan"

Refer to Item Not Available In Plan.