{"repo":"maxswa/osrs-json-hiscores","free":true,"listed":false,"github":"https://github.com/maxswa/osrs-json-hiscores","clone":"git clone https://github.com/maxswa/osrs-json-hiscores.git","description":"The Oldschool Runescape API wrapper that does more!","language":"TypeScript","stars":53,"topics":["runescape","osrs","oldschool-runescape","typescript","api","hiscores","highscores"],"license":"ISC","category":"api-integrations-sdks","readme_excerpt":"OSRS .json Hiscores The Old School RuneScape API wrapper that does more! What it does The official hiscores API for Old School RuneScape (OSRS) can return CSV or a simple JSON array. This wrapper converts the hiscores data into a more usable JSON object and provides extra information about the given player. By comparing player info it infers the player's game mode, as well as any previous modes (de-ultimated, de-ironed and/or died as a hardcore ironman). Additional functions are provided that screen-scrape the OSRS leaderboards and return a list of players as json. Also simple utility functions are provided to fetch the raw responses from Jagex's APIs, if desired. osrs-json-hiscores has TypeScript support, with full definitions for all functions and custom data types. --- ⚠ Disclaimer ⚠ Jagex does not provide Access-Control-Allow-Origin headers in their responses. This means that CORS will block all browser requests to their hiscores API. In order to get around this, osrs-json-hiscores needs to be installed on the server side and exposed to the front end via a simple API. Here is an example of this in use: codesandbox.io/s/osrs-json-hiscores-demo TLDR: You cannot use this library directly in your client side app e.g. React or Vue, you must set up a server which uses this lib internally and have your client fetch data from your server. --- Installation With npm: With Yarn: How to use Install the package and then import it into your project: Once you import it you can call the ","default_branch":null,"files":null,"tree":[],"storefront":"/r/maxswa","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/maxswa/osrs-json-hiscores/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."}