{"id":16676483,"url":"https://github.com/jaxwilko/steam-market-api","last_synced_at":"2025-04-09T20:34:07.795Z","repository":{"id":117217368,"uuid":"111318696","full_name":"jaxwilko/steam-market-api","owner":"jaxwilko","description":"PHP - Composer Compatible - Steam Market API","archived":false,"fork":false,"pushed_at":"2018-01-19T17:06:12.000Z","size":6,"stargazers_count":8,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-03-23T22:36:56.158Z","etag":null,"topics":["composer-package","php","php7","steam","steam-api"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/jaxwilko.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2017-11-19T17:55:45.000Z","updated_at":"2024-09-05T01:24:04.000Z","dependencies_parsed_at":null,"dependency_job_id":"1271afe2-ed2e-4f3a-9a38-b389c84d5df0","html_url":"https://github.com/jaxwilko/steam-market-api","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxwilko%2Fsteam-market-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxwilko%2Fsteam-market-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxwilko%2Fsteam-market-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jaxwilko%2Fsteam-market-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jaxwilko","download_url":"https://codeload.github.com/jaxwilko/steam-market-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248107907,"owners_count":21049034,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","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":["composer-package","php","php7","steam","steam-api"],"created_at":"2024-10-12T13:10:38.470Z","updated_at":"2025-04-09T20:34:07.775Z","avatar_url":"https://github.com/jaxwilko.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Steam Market API\nThis package is designed to allow you to compile a database of Steam item info.\n\nTo install via composer add:\n\n```\n\"require\": {\n        \"jaxwilko/steam-market-api\": \"dev-master\",\n},\n\"repositories\": [\n        {\n            \"type\": \"vcs\",\n            \"url\":  \"git@github.com:JaxWilko/steam-market-api.git\"\n        }\n    ],\n```\n\nto your composer.json file, then run `composer require jaxwilko/steam-market-api`\n\nThis package currently offers 3 API calls you can make to Steam.\n\nYou must at some point pass the appId to the Api class, you can do this in each request or set it globally via `Api::setAppId(xxx)`.\n\nFor the below I will be using the CS:GO appId which is 730.\n\n### Market Listings\n\n```\n$options = ['start' =\u003e 0];\n\n$listings = Api::request('MarketList', 730)-\u003ecall($options)-\u003eresponse();\n```\n\nThis will return a list of 100 items, you'll need to change the `start` option to cycle through the complete list of item.\n\nEach item in the array will look like:\n\n```\n[\n  \"image\" =\u003e \"http://steamcommunity-a.akamaihd.net/economy/image/-9a81dlWLwJ2UUGcVs_nsVtzdOEdtWwKGZZLQHTxDZ7I56KU0Zwwo4NUX4oFJZEHLbXH5ApeO4YmlhxYQknCRvCo04DEVlxkKgpot7HxfDhoyszJemkV4N27q4KcqPrxN7LEmyUDsJIh27-YpYmmiVDm_UFuZ2vzJYPDJlRsYw2C8lC5w-fu0Je_6ZrB1zI97TOUU9Z0\"\n  \"name\" =\u003e \"AK-47 | Black Laminate (Field-Tested)\"\n  \"price\" =\u003e 12.22\n  \"volume\" =\u003e 143\n  \"condition\" =\u003e \"Field-Tested\"\n]\n```\n\n### Item Sale History\n\n```\n$itemName = 'AK-47 | Black Laminate (Field-Tested)';\n\n$sales = Api::request('SaleHistory', 730)-\u003ecall(['itemName' =\u003e rawurlencode($itemName)])-\u003eresponse();\n```\n\nThis will return the lifetime sales history for an item by date.\n\ne.g.\n\n```\n[ \n    \"sale_date\" =\u003e \"2016-06-16\"\n    \"sale_price\" =\u003e 2.807\n    \"quantity\" =\u003e 4395\n]\n```\n\n### Item Current Price\n\nFor some reason this call to Steam seems to be very inconsitant, but this is how you access it:\n\n```\n$itemName = 'AK-47 | Black Laminate (Field-Tested)';\n\nApi::request('ItemPricing', 730)-\u003ecall(['itemName' =\u003e rawurlencode($itemName)])-\u003eresponse()\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaxwilko%2Fsteam-market-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjaxwilko%2Fsteam-market-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjaxwilko%2Fsteam-market-api/lists"}