X-Git-Url: https://git.cweiske.de/ouya-store-api.git/blobdiff_plain/5a0b01a4f964b3eb17418771888c319db99dbe75..2c3d7625240fe18d8df395f469a9e7c7a0b3b7fb:/api/devs.ouya.tv/api-v1-search.rst diff --git a/api/devs.ouya.tv/api-v1-search.rst b/api/devs.ouya.tv/api-v1-search.rst new file mode 100644 index 0000000..9332545 --- /dev/null +++ b/api/devs.ouya.tv/api-v1-search.rst @@ -0,0 +1,48 @@ +==================================================== +``GET https://devs.ouya.tv/api/v1/search`` +==================================================== + +Search for games in the discover store. + + +HTTP request +============ +Protocol + ``https`` +Method + ``GET`` +Host + ``devs.ouya.tv`` +Path + ``/api/v1/search`` +Headers + Standard headers +GET parameters + ``auth_token`` + Same as ``X-OUYA-AuthToken`` + ``q`` + Search word(s) + + +HTTP response +============= +Status code + ``200 OK`` +Content-type + ``application/json; charset=utf-8`` + +The ``count`` property contains the number of games that matched the search +string, even if they are not all returned in the result list. +The search result list is limited to 20 or 40 games. + +When the ``count`` is higher than the number of items in ``results``, +the OUYA will send a new search request to the API when another letter is added +to the search word. + +If the ``count`` and ``results`` are the same, the OUYA will use the current +response and filter it for itself without asking the server again. + +Example +------- +.. include:: api-v1-search.response.json + :code: