Using Responses

Working with responses from RiotQuest is incredibly simple and they're flexible and powerful.

Every endpoint except code()->id() and mastery()->score() return a Collection.

RiotQuest's Collections are built right on top of Laravel's Collections and are neat wrappers for arrays.

We chose collections over primitive arrays due to their flexibility and the ability to extend them. Each API response have their own class which extends the collections, allowing for more interactivity and more fluent syntax.


Endpoints which do not return collections return a primitive type like a string or an integer.

Caches and Rate Limits

You do not have to worry about rate limits or caching items at all. RiotQuest does this automatically for you. Information about the cache can be found here and information about the rate limiter can be found here.