Adobe Stock API - invalid value of thumbnail_url for Rest/Media/1/Files response

New Here ,
Aug 07, 2019 Aug 07, 2019

Copy link to clipboard

Copied

Hello friends.

I need help. I have an issue with the not correct  value of thumbnail_url in response for /Rest/Media/1/Files. For exmaple:  /Rest/Media/1/Files/?ids=47166705&result_columns[]=id&result_columns[]=thumbnail_url

I get this thumbnail_url:

https://as2.ftcdn.net/jpg/00/47/16/67/400_F_47166705_S80xEs3TCyY9nCj95yxZUzLX5Vax7x2Q.jpg which givs http 404 error.

Views

115

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines
Adobe Employee ,
Aug 07, 2019 Aug 07, 2019

Copy link to clipboard

Copied

Hi!

Thank you for pointing this out. This appears to be a bug. The value of thumbnail_url is dynamic and should reflect the default size of 500. The value of 400 is a legacy value from Fotolia that is no longer valid.

There is an easy workaround while you are waiting for this to be patched. Instead of requesting a generic thumbnail size, request a specific size such as thumbnail_500_url. These values are documented in the Search API here:

Stock API Search Reference

Here is an example of explicitly requesting the 500px thumbnail:

https://stock.adobe.io/Rest/Media/1/Files?ids=47166705&result_columns[0]=id&result_columns[1]=thumbn...

Result:

    "files": [         {             "id": 47166705,             "thumbnail_500_url": "https:\/\/as2.ftcdn.net\/jpg\/00\/47\/16\/67\/500_F_47166705_S80xEs3TCyY9nCj95yxZUzLX5Vax7x2Q.jpg"         }     ]

I will document the bug so it can be fixed in a later update.

Thank you,

Christopher

stockapis@adobe.com

Likes

translate

Translate

Translate

Report

Report
Community Guidelines
Be kind and respectful, give credit to the original source of content, and search for duplicates before posting. Learn more
community guidelines