B
B
Barring2019-06-23 18:46:43
JavaScript
Barring, 2019-06-23 18:46:43

How to solve the problem with GIPHY API?

I'm trying to build my test project based on the API from the giphy.com service and there is the following request form for searching for animations:

https://api.giphy.com/v1/gifs/search?api_key=wMqvSK3gHL65KRyFxTxyrNCUCJbskKtb&q=cs go&limit=20&offset=0

link
On return, we will get JSONa file with 20 animations on request 'cs go'.
But if you put the number 10 instead of 20, then the API returns nothing.
https://api.giphy.com/v1/gifs/search?api_key=wMqvSK3gHL65KRyFxTxyrNCUCJbskKtb&q=cs go&limit=10&offset=0

link
A similar error occurs only with a search query "cs go"(don't ask me what forced me to look for just such gifs) and precisely when the parameter is limited limitto 10. If you change it limitto any other value (even < 10) - everything works correctly.
Although this does not cause any critical problem, it is nevertheless just curious to understand what the error is. Either I missed something somewhere, or it's just a "bug" on the part of the service.

Answer the question

In order to leave comments, you need to log in

Didn't find what you were looking for?

Ask your question

Ask a Question

731 491 924 answers to any question