{"repo":"AndreVarandas/clash-royale-api","free":true,"listed":false,"github":"https://github.com/AndreVarandas/clash-royale-api","clone":"git clone https://github.com/AndreVarandas/clash-royale-api.git","description":"A wrapper for the OFFICIAL Clash Royale API","language":"TypeScript","stars":37,"topics":["clashroyale","clash-royale-api","clash-royale-official","api-wrapper","api","supercell"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"Clash Royale Official API Wrapper An asynchronous wrapper for the official Clash Royale API. Official API Link https://developer.clashroyale.com Important note This wrapper will only work from a nodejs server app. The official clash royale api is, unfortunately, blocking requests done directly from the browser. Getting started In order to use the official api, you will need a token. This token can be obtained at the Official API website https://developer.clashroyale.com. - For each token an ip address is associated, so make sure to use the token in the same server where you got it. You can also use a proxy server to make the requests, such as https://docs.royaleapi.com/proxy.html - More details below in the usage section. Once you register and get the token, you are ready to start. Usage Install the package: - yarn add @varandas/clash-royale-api OR - npm i --save @varandas/clash-royale-api Usage: About the proxy server The proxy server is a service provided by the RoyaleAPI team. It allows you to make requests to the official API from the browser. If you want to host your own proxy server, there is a nuxt web app you can use available at https://github.com/AndreVarandas/royale-proxy-api. Methods All api calls are asynchronous and used in the same way as above in the getCards example. Clans - getClans(params: IClanRequestParams) - Returns a list of all the available clans. - getClanByTag(tag: string) - Returns details about a specific clan. - getClanMembers(tag: string) - Retu","default_branch":null,"files":null,"tree":[],"storefront":"/r/AndreVarandas","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/AndreVarandas/clash-royale-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}