{"id":25299890,"url":"https://github.com/richarah/aviasales-python","last_synced_at":"2025-04-06T23:19:58.134Z","repository":{"id":277132482,"uuid":"931435739","full_name":"richarah/aviasales-python","owner":"richarah","description":"Unofficial Python wrapper for accessing flight ticket prices, routes, and other data via the Aviasales Flight Data API","archived":false,"fork":false,"pushed_at":"2025-02-12T10:14:23.000Z","size":16,"stargazers_count":0,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-02-12T10:33:05.778Z","etag":null,"topics":["api","aviasales","aviasales-api","cheap-flights","flight","flights","flights-api","flights-search","python","python3","travel","trip"],"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/richarah.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":"2025-02-12T09:21:06.000Z","updated_at":"2025-02-12T10:14:27.000Z","dependencies_parsed_at":"2025-02-13T08:48:50.286Z","dependency_job_id":null,"html_url":"https://github.com/richarah/aviasales-python","commit_stats":null,"previous_names":["richarah/aviasales-python"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richarah%2Faviasales-python","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richarah%2Faviasales-python/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richarah%2Faviasales-python/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/richarah%2Faviasales-python/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/richarah","download_url":"https://codeload.github.com/richarah/aviasales-python/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247564519,"owners_count":20959066,"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","aviasales","aviasales-api","cheap-flights","flight","flights","flights-api","flights-search","python","python3","travel","trip"],"created_at":"2025-02-13T05:22:35.940Z","updated_at":"2025-04-06T23:19:58.115Z","avatar_url":"https://github.com/richarah.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"# aviasales-python\n\nA Python wrapper for accessing flight ticket prices, routes, and other data via the Aviasales Flight Data API\n\n## Features\n\n* Retrieve the cheapest tickets for specific dates.\n* Fetch the latest ticket prices over a period of time.\n* Explore flight price trends in a calendar format.\n* Get prices for alternative (nearest) directions.\n* Access popular routes for specific airlines and cities.\n* Retrieve airline logos and currency exchange rates.\n* Support for one-way and round-trip flights, non-stop searches, and custom sorting.\n\n## Requirements\n\n* Python 3.12\n* `requests` library\n* `python-dotenv` library for environment variable management\n\n## Installation\n\n1. Clone the repository:\n      git clone https://github.com/richarah/aviasales-python.git\n\n2. Navigate into the project folder:\n      cd aviasales-python\n\n3. Install the required dependencies:\n      pip install -r requirements.txt\n\n4. (Optional) If you wish to use the wrapper in different currencies or markets, you can modify the `currency` and `market` parameters in the `AviasalesAPI` class when instantiating it.\n\n## Usage\n\n1. **Import the API Wrapper:**\n      `from aviasales import AviasalesAPI`\n\n2. **Initialize the API Wrapper:**\n      `api = AviasalesAPI(API_TOKEN)`\n\n3. **Usage:**\n   \n   * Get the latest prices for a period:\n        `data = api.get_latest_prices(\"OSL\", \"ALC\", \"2025-12-07\", \"year\")`\n\n## Methods\n\nThe following methods are available in the `AviasalesAPI` class:\n\n* `prices_for_dates`: Get prices for specific dates.\n* `get_latest_prices`: Get prices over a specific period.\n* `prices_month_matrix`: Get a matrix of prices for a given month.\n* `prices_nearest_places_matrix`: Get prices for nearest directions.\n* `prices_week_matrix`: Get a weekly calendar of prices.\n* `prices_cheap`: Get the cheapest tickets, including options with transfers.\n* `grouped_prices`: Get the cheapest tickets grouped by an attribute.\n* `prices_direct`: Get the cheapest non-stop tickets.\n* `prices_calendar`: Get flight price trends in a calendar format.\n* `airline_directions`: Get popular routes for a given airline.\n* `city_directions`: Get the most popular destinations from a specified city.\n* `popular_directions`: Get the cheapest tickets to popular destinations.\n* `special_offers`: Get special flight offers.\n* `currency_rates`: Get current exchange rates.\n* `airline_logo`: Get the URL of an airline's logo.\n\n## License\n\nMIT\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricharah%2Faviasales-python","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fricharah%2Faviasales-python","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fricharah%2Faviasales-python/lists"}