{"id":22191274,"url":"https://github.com/dunderrrrrr/blocket_api","last_synced_at":"2026-01-02T13:22:04.050Z","repository":{"id":248729746,"uuid":"829455107","full_name":"dunderrrrrr/blocket_api","owner":"dunderrrrrr","description":"A python API wrapper for blocket.se 🏷","archived":false,"fork":false,"pushed_at":"2024-07-18T11:46:33.000Z","size":31,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2024-11-14T05:42:12.712Z","etag":null,"topics":["api","blocket","blocket-api","blocket-se-api","blocketse","python","wrapper"],"latest_commit_sha":null,"homepage":"https://blocket.se","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"wtfpl","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/dunderrrrrr.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}},"created_at":"2024-07-16T13:10:53.000Z","updated_at":"2024-09-27T15:55:47.000Z","dependencies_parsed_at":"2024-07-16T20:32:48.661Z","dependency_job_id":null,"html_url":"https://github.com/dunderrrrrr/blocket_api","commit_stats":null,"previous_names":["dunderrrrrr/blocket_api"],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunderrrrrr%2Fblocket_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunderrrrrr%2Fblocket_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunderrrrrr%2Fblocket_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/dunderrrrrr%2Fblocket_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/dunderrrrrr","download_url":"https://codeload.github.com/dunderrrrrr/blocket_api/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":227724176,"owners_count":17810036,"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":["api","blocket","blocket-api","blocket-se-api","blocketse","python","wrapper"],"created_at":"2024-12-02T12:15:14.554Z","updated_at":"2025-12-29T10:10:26.298Z","avatar_url":"https://github.com/dunderrrrrr.png","language":"Python","readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://blocket-api.se/blocket-api.png\" /\u003e\n\u003c/p\u003e\n\n# BlocketAPI\n\n[![PyPI version](https://img.shields.io/pypi/v/blocket_api?style=for-the-badge)](https://pypi.org/project/blocket_api/) [![License](https://img.shields.io/badge/license-WTFPL-green?style=for-the-badge)](https://github.com/dunderrrrrr/blocket_api/blob/main/LICENSE) ![Python](https://img.shields.io/badge/Python-3.10-blue?style=for-the-badge) ![PyPI - Downloads](https://img.shields.io/pypi/dw/blocket_api?style=for-the-badge\u0026color=%23dbce58) \n\nBlocketAPI allows users to search [blocket.se](https://blocket.se/) for ads.\n\n\u003e Blocket is one of Sweden's largest online marketplaces. It was founded in 1996 and allows users to buy and sell a wide range of items, including cars, real estate, jobs, services, and second-hand goods. The platform is known for its extensive reach and user-friendly interface, making it a popular choice for Swedes looking to purchase or sell items quickly and efficiently.\n\n## 🧑‍💻️ Install\n\nInstall BlocketAPI via PyPI...\n\n```sh\npip install blocket-api\n```\n\nor use [blocket-api.se](https://blocket-api.se) without installing anything!\n\n## 💁‍♀️ Usage\n\n```py\nfrom blocket_api import (\n    BlocketAPI,\n    Category,\n    CarColor,\n    CarModel,\n    CarSortOrder,\n    CarTransmission,\n    Location,\n)\n\napi = BlocketAPI()\n\n# search all of blocket\napi.search(\n    \"Tamagotchi\",\n    sort_order=SortOrder.PRICE_ASC,\n    locations=[Location.STOCKHOLM, Location.UPPSALA],\n    category=Category.FRITID_HOBBY_OCH_UNDERHALLNING,\n)\n\n# search for cars\napi.search_car(\n    \"Audi\", # query is optional\n    sort_order=CarSortOrder.MILEAGE_ASC,\n    models=[CarModel.AUDI],\n    colors=[CarColor.GULD],\n    price_from=10000,\n    price_to=50000,\n    transmissions=[CarTransmission.MANUAL],\n    locations=[Location.STOCKHOLM],\n    org_id=1337, # dealer or store id\n)\n\n# search for boats\nfrom blocket_api import BoatType\n\napi.search_boat(\n    \"Mercury\", # query is optional\n    types=[BoatType.DAYCRUISER],\n    locations=[Location.STOCKHOLM],\n    length_from=10,\n    length_to=15,    \n    price_from=20000,\n    price_to=90000,\n    org_id=1337, # dealer or store id\n)\n\n# search for motorcycles\nfrom blocket_api import McType, McModel\n\napi.search_mc(\n    \"TC 150\", # query is optional\n    types=[McType.SPORT],\n    locations=[Location.STOCKHOLM],\n    models=[McModel.DUCATI],\n    price_from=20000,\n    price_to=90000,\n    engine_volume_from=100,\n    engine_volume_to=200,\n    org_id=1337, # dealer or store id\n)\n\n\n# get ad details\nfrom blocket_api import CarAd, RecommerceAd, BoatAd, McAd\n\napi.get_ad(RecommerceAd(12345678))\napi.get_ad(CarAd(12345678))\napi.get_ad(BoatAd(12345678))\napi.get_ad(McAd(12345678))\n```\n\n## 📝 Notes\n\n- REST API: https://blocket-api.se\n- Source repo: https://github.com/dunderrrrrr/blocket_api\n- PyPI: https://pypi.org/project/blocket-api/\n","funding_links":[],"categories":["Misc","Python"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunderrrrrr%2Fblocket_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fdunderrrrrr%2Fblocket_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fdunderrrrrr%2Fblocket_api/lists"}