Dere all,
for my private project “Automated TAF to MP3 converter” I need to play with the boxine API to get the cover image of the Tonies. But i have some struggles here. Maybe someone can assist me.
I try to fetch all JSON data from Boxine Product API https://api.prod.shop.tonies.com/api/products
. I want to use the limit
feature because fetching each singel entry takes very long…
So i itearate through the max available data (4753, got from API) using limit
and offset
:
API-Link: https://api.prod.shop.tonies.com/api/products?limit=500&offset=0&shopLocale=de_DE: HTTP_RESPONSE=500
API-Link: https://api.prod.shop.tonies.com/api/products?limit=500&offset=500&shopLocale=de_DE: HTTP_RESPONSE=200
API-Link: https://api.prod.shop.tonies.com/api/products?limit=500&offset=1000&shopLocale=de_DE: HTTP_RESPONSE=200
API-Link: https://api.prod.shop.tonies.com/api/products?limit=500&offset=1500&shopLocale=de_DE: HTTP_RESPONSE=200
API-Link: https://api.prod.shop.tonies.com/api/products?limit=500&offset=2000&shopLocale=de_DE: HTTP_RESPONSE=200
API-Link: https://api.prod.shop.tonies.com/api/products?limit=500&offset=2500&shopLocale=de_DE: HTTP_RESPONSE=200
API-Link: https://api.prod.shop.tonies.com/api/products?limit=500&offset=3000&shopLocale=de_DE: HTTP_RESPONSE=200
API-Link: https://api.prod.shop.tonies.com/api/products?limit=500&offset=3500&shopLocale=de_DE: HTTP_RESPONSE=200
API-Link: https://api.prod.shop.tonies.com/api/products?limit=500&offset=4000&shopLocale=de_DE: HTTP_RESPONSE=200
API-Link: https://api.prod.shop.tonies.com/api/products?limit=500&offset=4500&shopLocale=de_DE: HTTP_RESPONSE=200
But one of the fetches will always return with HTTP_RESPONSE=500 (Internal Server Error). I played a lot with the limit
and always one will fail. I have implemented a RETRY, but even 20 retries will fail…
Has anyone a suggestion for me?
Cheers.