{"id":25216685,"url":"https://github.com/crefax/bazaar-api","last_synced_at":"2025-10-29T20:07:21.630Z","repository":{"id":270388943,"uuid":"862322226","full_name":"Crefax/bazaar-api","owner":"Crefax","description":"hypixel bazaar api with historical data","archived":false,"fork":false,"pushed_at":"2025-03-21T02:58:57.000Z","size":60,"stargazers_count":1,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-10-10T17:44:20.786Z","etag":null,"topics":["bazaar","hypixel","hypixel-skyblock","skyblock-bazaar"],"latest_commit_sha":null,"homepage":"https://api.crefax.net","language":"Rust","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"gpl-3.0","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/Crefax.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2024-09-24T12:09:27.000Z","updated_at":"2025-03-21T02:59:00.000Z","dependencies_parsed_at":null,"dependency_job_id":"68ba8148-d5e9-4681-a3e7-00f13b1a5eea","html_url":"https://github.com/Crefax/bazaar-api","commit_stats":null,"previous_names":["crefax/bazaar-api"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/Crefax/bazaar-api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crefax%2Fbazaar-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crefax%2Fbazaar-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crefax%2Fbazaar-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crefax%2Fbazaar-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Crefax","download_url":"https://codeload.github.com/Crefax/bazaar-api/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Crefax%2Fbazaar-api/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":281689345,"owners_count":26544619,"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","status":"online","status_checked_at":"2025-10-29T02:00:06.901Z","response_time":59,"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":["bazaar","hypixel","hypixel-skyblock","skyblock-bazaar"],"created_at":"2025-02-10T19:31:18.383Z","updated_at":"2025-10-29T20:07:21.614Z","avatar_url":"https://github.com/Crefax.png","language":"Rust","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bazaar API\n\nRESTful API service for Hypixel SkyBlock Bazaar data. This API tracks, stores, and provides access to Hypixel Bazaar data.\n\n## Getting Started\n\n### Requirements\n\n- Rust (latest stable version)\n- MongoDB (local installation)\n\n### Installation\n\n1. Clone the repository:\n```\ngit clone https://github.com/Crefax/bazaar-api.git\ncd bazaar-api\n```\n\n2. Run the application:\n```\ncargo run\n```\n\nThe application will run on `127.0.0.1:22417` by default.\n\n## API Reference\n\n### Current Bazaar Data Points\n\n#### Get the latest Bazaar data for a specific product\n\n```\nGET /api/skyblock/bazaar/{product_id}\n```\n\nThis endpoint returns the most recent Bazaar data for the specified product.\n\n##### Parameters\n\n| Parameter   | Type   | Description                     |\n|-------------|--------|---------------------------------|\n| product_id  | String | Hypixel SkyBlock product ID     |\n\n##### Response\n\n```json\n{\n  \"product_id\": \"WHEAT\",\n  \"buy_price\": 6.4,\n  \"sell_price\": 5.8,\n  \"buy_volume\": 54321,\n  \"sell_volume\": 12345,\n  \"buy_orders\": 567,\n  \"sell_orders\": 890,\n  \"timestamp\": 1616784000000\n}\n```\n\n#### Get historical Bazaar data for a product within a specific timeframe\n\n```\nGET /api/skyblock/bazaar/{product_id}/history?hours=24\n```\n\nThis endpoint returns historical Bazaar data for the specified product within a given timeframe.\n\n##### Parameters\n\n| Parameter   | Type    | Description                                  | Default    |\n|-------------|---------|----------------------------------------------|-----------|\n| product_id  | String  | Hypixel SkyBlock product ID                  | -         |\n| hours       | Integer | Number of hours to look back from current time | 24        |\n\n##### Response\n\n```json\n[\n  {\n    \"product_id\": \"WHEAT\",\n    \"buy_price\": 6.4,\n    \"sell_price\": 5.8,\n    \"buy_volume\": 54321,\n    \"sell_volume\": 12345,\n    \"buy_orders\": 567,\n    \"sell_orders\": 890,\n    \"timestamp\": 1616784000000\n  },\n  {\n    \"product_id\": \"WHEAT\",\n    \"buy_price\": 6.3,\n    \"sell_price\": 5.7,\n    \"buy_volume\": 54000,\n    \"sell_volume\": 12300,\n    \"buy_orders\": 560,\n    \"sell_orders\": 885,\n    \"timestamp\": 1616780400000\n  }\n]\n```\n\n## Data Model\n\n### BazaarData\n\n| Field       | Type             | Description                               |\n|-------------|------------------|-------------------------------------------|\n| product_id  | String           | Hypixel SkyBlock product ID               |\n| buy_price   | Float            | Current buy price for the product         |\n| sell_price  | Float            | Current sell price for the product        |\n| buy_volume  | Integer          | Total buy volume                          |\n| sell_volume | Integer          | Total sell volume                         |\n| buy_orders  | Integer          | Number of active buy orders               |\n| sell_orders | Integer          | Number of active sell orders              |\n| timestamp   | DateTime (UTC)   | Time when the data was recorded           |\n\n## License\n\nThis project is licensed under the GNU General Public License v3.0 (GPL-3.0) - see the [LICENSE](LICENSE) file for details.\n\nGPL-3.0 is a strong copyleft license that requires anyone who distributes your code or a derivative work to make the source available under the same terms, and also provides an express grant of patent rights from contributors to users.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrefax%2Fbazaar-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fcrefax%2Fbazaar-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fcrefax%2Fbazaar-api/lists"}