{"id":19306133,"url":"https://github.com/ge-tracker/osrs-api","last_synced_at":"2026-05-15T11:10:16.633Z","repository":{"id":62509428,"uuid":"260442976","full_name":"ge-tracker/osrs-api","owner":"ge-tracker","description":"Interacts with the official OSRS API","archived":false,"fork":false,"pushed_at":"2023-03-06T12:05:51.000Z","size":51,"stargazers_count":1,"open_issues_count":0,"forks_count":1,"subscribers_count":0,"default_branch":"master","last_synced_at":"2025-11-14T21:02:56.573Z","etag":null,"topics":["hiscores","osrs","osrs-api"],"latest_commit_sha":null,"homepage":null,"language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ge-tracker.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","contributing":"CONTRIBUTING.md","funding":null,"license":"LICENSE.md","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null}},"created_at":"2020-05-01T11:28:06.000Z","updated_at":"2025-11-06T11:42:28.000Z","dependencies_parsed_at":"2022-11-02T13:01:11.951Z","dependency_job_id":null,"html_url":"https://github.com/ge-tracker/osrs-api","commit_stats":null,"previous_names":[],"tags_count":11,"template":false,"template_full_name":null,"purl":"pkg:github/ge-tracker/osrs-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ge-tracker%2Fosrs-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ge-tracker%2Fosrs-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ge-tracker%2Fosrs-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ge-tracker%2Fosrs-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ge-tracker","download_url":"https://codeload.github.com/ge-tracker/osrs-api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ge-tracker%2Fosrs-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33064662,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-13T13:14:54.681Z","status":"online","status_checked_at":"2026-05-15T02:00:06.351Z","response_time":103,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["hiscores","osrs","osrs-api"],"created_at":"2024-11-10T00:04:18.129Z","updated_at":"2026-05-15T11:10:16.617Z","avatar_url":"https://github.com/ge-tracker.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# OSRS API\n\nThis package is a Laravel/PHP wrapper for the OSRS API, to easily interact with the Grand Exchange and Hiscore APIs.\n\n## Installation\n\nYou can install the package via composer:\n\n```bash\ncomposer require ge-tracker/osrs-api\n```\n\nIf you wish to publish the package's configuration, you can run the following command:\n\n```bash\nphp artisan vendor:publish --provider=\"GeTracker\\OsrsApi\\OsrsApiServiceProvider\"\n```\n\n## Usage\n\nWe recommend using this package via dependency injection in your methods, as this is a cleaner interface than a facade.\n\n### Accessing the Grand Exchange API\n\n``` php\npublic function execute(OsrsApi $osrsApi)\n{\n    $item = $osrsApi-\u003ege()-\u003eitemDetail(13576);\n    echo $item-\u003eid . ': ' . $item-\u003ename;\n}\n```\n\n### Fetching hiscores\n\nAll requests to the hiscores are cached for 60 seconds by default. \n\n``` php\npublic function execute(OsrsApi $osrsApi)\n{\n    $hiscores = $osrsApi-\u003ehiscores()-\u003efetch('Lynx Titan');\n    \n    echo 'Attack: ' . $hiscores-\u003estats-\u003eattack-\u003elevel;\n}\n```\n\n### Testing\n\n``` bash\ncomposer test\n```\n\n### Changelog\n\nPlease see [CHANGELOG](CHANGELOG.md) for more information what has changed recently.\n\n## Contributing\n\nPlease see [CONTRIBUTING](CONTRIBUTING.md) for details.\n\n### Security\n\nIf you discover any security related issues, please email james@ge-tracker.com instead of using the issue tracker.\n\n## Credits\n\n- [GE Tracker](https://github.com/ge-tracker)\n- [All Contributors](../../contributors)\n\n## License\n\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n## Laravel Package Boilerplate\n\nThis package was generated using the [Laravel Package Boilerplate](https://laravelpackageboilerplate.com).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fge-tracker%2Fosrs-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fge-tracker%2Fosrs-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fge-tracker%2Fosrs-api/lists"}