{"id":31942255,"url":"https://github.com/irahorecka/chrono24","last_synced_at":"2025-10-14T09:41:40.445Z","repository":{"id":65152447,"uuid":"584506555","full_name":"irahorecka/chrono24","owner":"irahorecka","description":"Chrono24 API wrapper","archived":false,"fork":false,"pushed_at":"2025-04-05T23:53:50.000Z","size":143,"stargazers_count":40,"open_issues_count":3,"forks_count":5,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-09-27T11:23:59.959Z","etag":null,"topics":["api","api-rest","chrono24","horology","timepiece","watches"],"latest_commit_sha":null,"homepage":"","language":"Python","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/irahorecka.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":"2023-01-02T19:04:20.000Z","updated_at":"2025-09-21T15:37:03.000Z","dependencies_parsed_at":"2024-01-23T22:26:14.408Z","dependency_job_id":"671bcd25-625c-428e-ab0c-66643291bc77","html_url":"https://github.com/irahorecka/chrono24","commit_stats":{"total_commits":4,"total_committers":2,"mean_commits":2.0,"dds":0.25,"last_synced_commit":"41c58cd5bffa26eac69dfdf9c1beee8383b64c2b"},"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/irahorecka/chrono24","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irahorecka%2Fchrono24","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irahorecka%2Fchrono24/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irahorecka%2Fchrono24/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irahorecka%2Fchrono24/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/irahorecka","download_url":"https://codeload.github.com/irahorecka/chrono24/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/irahorecka%2Fchrono24/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279018625,"owners_count":26086404,"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-14T02:00:06.444Z","response_time":60,"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":["api","api-rest","chrono24","horology","timepiece","watches"],"created_at":"2025-10-14T09:41:34.996Z","updated_at":"2025-10-14T09:41:40.437Z","avatar_url":"https://github.com/irahorecka.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# chrono24\n\n\u003cp align=\"center\"\u003e\n  \u003cimg src=\"https://i.imgur.com/GzeQ0hp.png\" width=\"50%\" /\u003e\n\u003c/p\u003e\n\n\u003cbr\u003e\n\n[Chrono24](https://www.chrono24.com/) API wrapper\n\n[![pypiv](https://img.shields.io/pypi/v/chrono24.svg)](https://pypi.python.org/pypi/chrono24)\n[![Python 3.7+](https://img.shields.io/badge/python-3.7+-blue.svg)](https://www.python.org/downloads/)\n[![tests](https://github.com/irahorecka/chrono24/actions/workflows/ci.yaml/badge.svg)](https://github.com/irahorecka/chrono24/actions)\n[![Licence](https://img.shields.io/badge/license-MIT-blue.svg)](https://raw.githubusercontent.com/irahorecka/chrono24/main/LICENSE)\n\n## Dealing with Cloudflare Restrictions\n\n\u003e [!WARNING]\n\u003e **Cloudflare anti-bot protection blocks direct API access.**\n\nIf you encounter issues retrieving listings from Chrono24 due to Cloudflare’s anti-scraping measures, consider using [FlareSolverr](https://github.com/FlareSolverr/FlareSolverr). This open-source proxy solution bypasses Cloudflare’s protections.  \n\nTo get started:  \n1. Follow the [installation guide](https://github.com/FlareSolverr/FlareSolverr#Installation) to spin up the Docker container.  \n2. Route your API requests through FlareSolverr to retrieve the desired HTML content.  \n\n## Installation\n\n```bash\npip install chrono24\n```\n\n## Quick Start\n\nPerform a standard search for Rolex DateJust watches:\n\n```python\nimport chrono24\n\nfor listing in chrono24.query(\"Rolex DateJust\").search():\n    print(listing)\n```\n\nExample output:\n\n```python\n\u003e\u003e\u003e {'id': '32322343',\n    'url': 'https://chrono24.com/rolex/datejust-41mm-blue-diamond-dial-2022---126334--id32322343.htm',\n    'manufacturer': 'Rolex',\n    'certification_status': 'Basic',\n    'title': 'Rolex Datejust 41',\n    'description': '41mm Blue Diamond Dial 2022 - 126334',\n    'price': '$16,553',\n    'shipping_price': '$396',\n    'location': 'Düsseldorf, Germany.',\n    'merchant_name': 'Dealer',\n    'badge': 'Professional',\n    'image_urls': ['https://cdn2.chrono24.com/images/uhren/32322343-gp8hzm4ppkzsbhzc7s7bl2vh-ExtraLarge.jpg',\n    'https://cdn2.chrono24.com/images/uhren/32322343-u7wq78hxqoalnfrlag1gkt8d-ExtraLarge.jpg',\n    'https://cdn2.chrono24.com/images/uhren/32322343-93ykurb99s654x7aysnh8ljs-ExtraLarge.jpg',\n    'https://cdn2.chrono24.com/images/uhren/32322343-gxd85po61ynmoictprm1gvfq-ExtraLarge.jpg',\n    'https://cdn2.chrono24.com/images/uhren/32322343-den0sntpacmucq5zdktzul70-ExtraLarge.jpg']}\n    # ...\n```\n\n## Usage\n\nSearch for standard or detailed watch listings for any query, limiting results to, for example, 25 listings. All results will be retrieved if no limit is provided, and they'll be sorted by new listings first.\n\n```python\nimport chrono24\n\nrolex_dj = chrono24.query(\"Rolex DateJust\")\n\n# Search for standard listings\nfor listing in rolex_dj.search(limit=25):\n    print(listing)\n\n# Search for detailed listings\nfor detailed_listing in rolex_dj.detailed_search(limit=25):\n    print(detailed_listing)\n```\n\n**Note:** When using these functions, be cautious not to overwhelm Chrono24 with excessive requests. The `standard_search` method consumes 1 request per 120 posts retrieved, while `detailed_search` utilizes 1 request per individual post. Avoid flooding requests to maintain a balanced usage of the Chrono24 service and prevent any potential access limitations.\n\n## API Outputs\n\nExample output from `.search`:\n\n```python\n{\n    'id': '32322343',\n    'url': 'https://chrono24.com/rolex/datejust-41mm-blue-diamond-dial-2022---126334--id32322343.htm',\n    'manufacturer': 'Rolex',\n    'certification_status': 'Basic',\n    'title': 'Rolex Datejust 41',\n    'description': '41mm Blue Diamond Dial 2022 - 126334',\n    'price': '$16,553',\n    'shipping_price': '$396',\n    'location': 'Düsseldorf, Germany.',\n    'merchant_name': 'Dealer',\n    'badge': 'Professional',\n    'image_urls': [...],  # List of image URLs\n}\n```\n\nExample output from `.detailed_search`, which extends results from `.search`:\n\n```python\n{\n    'id': '32322343',\n    'url': 'https://chrono24.com/rolex/datejust-41mm-blue-diamond-dial-2022---126334--id32322343.htm',\n    'manufacturer': 'Rolex',\n    'certification_status': 'Basic',\n    'title': 'Rolex Datejust 41',\n    'description': '41mm Blue Diamond Dial 2022 - 126334',\n    'price': '$16,553',\n    'shipping_price': '$396',\n    'location': 'Düsseldorf, Germany.',\n    'merchant_name': 'Dealer',\n    'badge': 'Professional',\n    'image_urls': [...],  # List of image URLs\n    'listing_code': 'J8S2V6',\n    'brand': 'Rolex',\n    'model': 'Datejust 41',\n    'reference_number': '126334',\n    'dealer_product_code': '8675310109006',\n    'case_material': 'Steel',\n    'bracelet_material': 'Steel',\n    'year_of_production': '2022',\n    'condition': 'Very good (Worn with little to no signs of wear)',\n    'scope_of_delivery': 'Original box, original papers',\n    'availability': 'Item needs to be procured',\n    'case_diameter': '41 mm',\n    'bracelet_color': 'Steel',\n    'availabe_payments': [...],  # List of available payment methods\n    'anticipated_delivery': 'Latest anticipated delivery on 1/22',\n    'merchant_rating': '4.4',\n    'merchant_reviews': '196',\n    'merchant_badges': [...],  # List of merchant badges\n}\n```\n\n**Note:** Output keys in `.search` will always be constant, but `.detailed_search` can vary based on information provided by the listing page, expanding on the details retrieved by `.search`.\n\n## Filters\n\nYou can refine your watch searches using various filter criteria, as well as define year ranges using `min_year` and `max_year`. Pre-defined filters include options such as case material, bracelet type, movement type, and more. These filters and year constraints can be applied when creating a query object.\n\n### How to Use Filters\n\nTo use filters, specify them when creating a query using the `filters` argument. You can pass a single string, a list/tuple of filter keys, or include year constraints using the `min_year` and `max_year` parameters:\n\n```python\nimport chrono24\n\n# Initialize a query with a single filter\nsteel_rolex_dj = chrono24.query(\"Rolex DateJust\", filters=\"steel\")\n# Initialize a query with multiple filters\nsteel_auto_rolex_dj = chrono24.query(\"Rolex DateJust\", filters=[\"steel\", \"automatic\"])\n# Initialize a query with year constraints\nnew_rolex_dj = chrono24.query(\"Rolex DateJust\", min_year=2010, max_year=2020)\n# Combine filters and year constraints\nnew_steel_auto_rolex_dj = chrono24.query(\"Rolex DateJust\", filters=[\"steel\", \"automatic\"], min_year=2010, max_year=2020)\n```\n\n### Available Filter Categories\n\nThe available filter categories are:\n\n- **Case Filters**: Material, diameter, and more.\n- **Clasp Filters**: Clasp type, material, etc.\n- **Condition and Delivery Contents**: Item condition, delivery options, included papers/box.\n- **Dial Filters**: Dial color, numerals, etc.\n- **Location Filters**: Country-specific filters.\n- **Movement and Functions**: Manual, automatic, complications.\n- **Other Filters**: Miscellaneous filters such as water resistance, glass type.\n- **Seller and Listing Type**: Dealer, private seller, new/used.\n- **Sort By**: Sorting options like 'Newest listings first', 'Price ascending', etc.\n- **Strap and Bracelet**: Bracelet material, color, strap type.\n- **Watch Type**: Sports, dress, luxury, and more.\n\n### Finding Filters\n\nYou can view all available filters using the `chrono24.filters.show()` method:\n\n```python\nimport chrono24\n\n# Display all available filter categories and keys\nchrono24.filters.show()\n```\n\nThis will print a categorized list of all possible filters, helping you decide which ones to apply to your query. If you're not sure which filter to use, you can also search for filter keys using the `chrono24.filters.search(query)` method:\n\n```python\nimport chrono24\n\n# Search for filters related to 'steel'\nchrono24.filters.search(\"steel\")\n```\n\nExample output:\n\n```text\nSearch results for query 'steel':\n\nDirect matches:\n  - gold_steel_band\n  - steel_band\n  - gold_steel_color\n  - steel_band_color\n  - gold_steel_clasp\n  - steel_clasp\n  - gold_steel\n  - steel\n  - gold_steel_bezel\n  - steel_bezel\n\nFuzzy matches:\n  - steel\n  - steel_band\n  - gold_steel\n  - steel_clasp\n  - steel_bezel\n```\n\nThis output shows the best filter keys matching the query 'steel', divided into **Direct matches** (exact or close matches) and **Fuzzy matches** (similar but not exact matches). Use these filter keys to refine your watch search in `chrono24`.\n\n## Attributes\n\nThe `chrono24` instance offers public attributes:\n\n- `count`: Total number of listings found.\n- `url`: URL of listings page.\n\n```python\nimport chrono24\n\nrolex_dj = chrono24.query(\"Rolex DateJust\")\n\nrolex_dj.count\n# \u003e\u003e\u003e 35582\nrolex_dj.url\n# \u003e\u003e\u003e 'https://www.chrono24.com/rolex/datejust--mod45.htm?dosearch=true\u0026query=Rolex+DateJust'\n```\n\n## Exceptions\n\nThe `chrono24` package handles specific exceptions that might occur during its use:\n\n- `NoListingsFoundException`: Raised when no listings are found.\n- `RequestException`: Raised when a request error occurs or repeated requests fail.\n\n```python\nimport chrono24\nfrom chrono24.exceptions import NoListingsFoundException, RequestException\n\ntry:\n    invalid_query = chrono24.query(\"Invalid Query\")\nexcept NoListingsFoundException:\n    # In cases where no listings match the provided query\n    print(\"No listings were found.\")\nexcept RequestException:\n    # In cases where a request error occurs or repeated requests fail\n    print(\"Request error or repeated requests failed.\")\n```\n\n## Contribute\n\n- [Issues Tracker](https://github.com/irahorecka/chrono24/issues)\n- [Source Code](https://github.com/irahorecka/chrono24/tree/main/chrono24)\n\n## Support\n\nIf you are having issues or would like to propose a new feature, please use the [issues tracker](https://github.com/irahorecka/chrono24/issues).\n\n## License\n\nThis project is licensed under the MIT license.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firahorecka%2Fchrono24","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Firahorecka%2Fchrono24","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Firahorecka%2Fchrono24/lists"}