You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently with what I do with what I do with the API a lot of un-nessesary requests to the site, specifically 4232 as of right now since it's one on each page, on top of every other request made.
Would it be possible to implement a way to get every resource at once, or at least the total amount? It would allow me to do one, although probably large-ish request instead of many requests.
Adding the resource description to the following would also help lower the amount of un-necessary requests made.
/resources
/resources/free
/resources/premium
The text was updated successfully, but these errors were encountered:
what do you need so many requests for?
the API supports pagination (see the docs), so you could pass e.g. ?size=100 to the request to get more items than the default.
I use spiget to scrape every .jar & skript to make it easier for me to check for malware (This having found 500+ malicious resources that would most likely go hidden otherwise) and more recently, description/tag/title checking. While Spigot's API handles desc/tag/title, I'm not sure md would be happy with the few thousand requests I send in a somewhat short amount of time.
I can bump the size up and see how many requests are made then, however there woud still be un-necessary ones just for the description. Would be nice if that were made part of the response since the tag & title are.
Took a look, a size of 1000 bumps the amount massively down to 43 requests and 2k down to 22. If you could add the description as well, then it would max out at a much lower amount. At least unless I need to download actual resource files
Currently with what I do with what I do with the API a lot of un-nessesary requests to the site, specifically 4232 as of right now since it's one on each page, on top of every other request made.
Would it be possible to implement a way to get every resource at once, or at least the total amount? It would allow me to do one, although probably large-ish request instead of many requests.
Adding the resource description to the following would also help lower the amount of un-necessary requests made.
/resources
/resources/free
/resources/premium
The text was updated successfully, but these errors were encountered: