skyscanner-flights-sdk 1.0.0__tar.gz

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
@@ -0,0 +1,21 @@
1
+ MIT License
2
+
3
+ Copyright (c) 2026 JiStudio (https://github.com/jistudio-dev)
4
+
5
+ Permission is hereby granted, free of charge, to any person obtaining a copy
6
+ of this software and associated documentation files (the "Software"), to deal
7
+ in the Software without restriction, including without limitation the rights
8
+ to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
9
+ copies of the Software, and to permit persons to whom the Software is
10
+ furnished to do so, subject to the following conditions:
11
+
12
+ The above copyright notice and this permission notice shall be included in all
13
+ copies or substantial portions of the Software.
14
+
15
+ THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
16
+ IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
17
+ FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
18
+ AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
19
+ LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
20
+ OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
21
+ SOFTWARE.
@@ -0,0 +1,88 @@
1
+ Metadata-Version: 2.4
2
+ Name: skyscanner-flights-sdk
3
+ Version: 1.0.0
4
+ Summary: Zero-dependency Python SDK for live multi-airline Skyscanner flight search, cabin classes & fare monitoring via Apify.
5
+ Author-email: JiStudio <dev@jistudio.dev>
6
+ License: MIT
7
+ Project-URL: Homepage, https://jistudio-dev.github.io/skyscanner-flights/
8
+ Project-URL: Repository, https://github.com/jistudio-dev/skyscanner-flights-sdk
9
+ Project-URL: Documentation, https://jistudio-dev.github.io/skyscanner-flights/
10
+ Keywords: skyscanner,flights,travel-api,airfare,apify
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Internet :: WWW/HTTP
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Dynamic: license-file
24
+
25
+ # Skyscanner Flights API SDK — Live Airfare Search & Fare Watch (Python / Node.js / n8n)
26
+
27
+ [![Skyscanner Flights Scraper — Live Multi-Airline Fares on Apify](https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/skyscanner-hero-v1.png)](https://apify.com/jistudio/skyscanner-flights-scraper)
28
+
29
+ Zero-dependency **Python** & **Node.js (ESM)** SDK + **CLI Fare Watch** + **n8n flight deal alert workflow** backed by [`jistudio/skyscanner-flights-scraper`](https://apify.com/jistudio/skyscanner-flights-scraper) on Apify Cloud (`$0` start fee, Pay-Per-Event from `$0.56 / 1,000` results with Store discounts).
30
+
31
+ - **Live multi-airline fares**: Direct & connecting flights, airlines, durations, layovers, cabin classes (`economy`, `premium_economy`, `business`, `first`), currencies, and booking provider links.
32
+ - **One-way & round-trip** support with flexible IATA airport codes (`SGN`, `HAN`, `SIN`, `NRT`, `LAX`, `LHR`, `JFK`, etc.).
33
+ - **Zero cookies, zero browser setup, zero pip/npm dependencies.**
34
+
35
+ ---
36
+
37
+ ## How It Works
38
+
39
+ <p align="center">
40
+ <img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/skyscanner-step1-v1.png" width="820" alt="Step 1: Configure IATA origin, destination & dates"/><br/>
41
+ <img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/step-arrow-down.svg" width="40" alt=""/><br/>
42
+ <img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/skyscanner-step2-v1.png" width="820" alt="Step 2: Structured flight itineraries JSON"/>
43
+ </p>
44
+
45
+ ---
46
+
47
+ ## Quickstart
48
+
49
+ ### 1. Python SDK (Zero Dependencies)
50
+
51
+ ```bash
52
+ export APIFY_TOKEN="YOUR_APIFY_API_TOKEN"
53
+ python examples/fare_watch.py SGN SIN 2026-12-20
54
+ ```
55
+
56
+ ```python
57
+ from python.skyscanner_sdk import SkyscannerClient
58
+
59
+ client = SkyscannerClient(apify_token="YOUR_APIFY_API_TOKEN")
60
+ flights = client.search_flights(
61
+ origin="SGN",
62
+ destination="SIN",
63
+ depart_date="2026-12-20",
64
+ adults=1,
65
+ currency="USD",
66
+ max_results=10,
67
+ )
68
+ for f in flights[:3]:
69
+ print(f.get("airline"), "|", f.get("price"), f.get("currency"), "| Stops:", f.get("stops"))
70
+ ```
71
+
72
+ ### 2. Node.js 18+ (Zero Dependencies)
73
+
74
+ ```javascript
75
+ import { SkyscannerClient } from "./node/index.mjs";
76
+
77
+ const client = new SkyscannerClient(process.env.APIFY_TOKEN);
78
+ const flights = await client.searchFlights({ origin: "LAX", destination: "NRT", departDate: "2026-12-20", maxResults: 5 });
79
+ console.log(flights);
80
+ ```
81
+
82
+ ---
83
+
84
+ ## JiStudio Ecosystem
85
+
86
+ - **Apify Actor**: [apify.com/jistudio/skyscanner-flights-scraper](https://apify.com/jistudio/skyscanner-flights-scraper) · **Public Task**: [Live Flight Search Task](https://apify.com/jistudio)
87
+ - **GitHub Org**: [github.com/jistudio-dev](https://github.com/jistudio-dev)
88
+ - **License**: MIT — Independent travel research SDK; not affiliated with Skyscanner Ltd.
@@ -0,0 +1,64 @@
1
+ # Skyscanner Flights API SDK — Live Airfare Search & Fare Watch (Python / Node.js / n8n)
2
+
3
+ [![Skyscanner Flights Scraper — Live Multi-Airline Fares on Apify](https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/skyscanner-hero-v1.png)](https://apify.com/jistudio/skyscanner-flights-scraper)
4
+
5
+ Zero-dependency **Python** & **Node.js (ESM)** SDK + **CLI Fare Watch** + **n8n flight deal alert workflow** backed by [`jistudio/skyscanner-flights-scraper`](https://apify.com/jistudio/skyscanner-flights-scraper) on Apify Cloud (`$0` start fee, Pay-Per-Event from `$0.56 / 1,000` results with Store discounts).
6
+
7
+ - **Live multi-airline fares**: Direct & connecting flights, airlines, durations, layovers, cabin classes (`economy`, `premium_economy`, `business`, `first`), currencies, and booking provider links.
8
+ - **One-way & round-trip** support with flexible IATA airport codes (`SGN`, `HAN`, `SIN`, `NRT`, `LAX`, `LHR`, `JFK`, etc.).
9
+ - **Zero cookies, zero browser setup, zero pip/npm dependencies.**
10
+
11
+ ---
12
+
13
+ ## How It Works
14
+
15
+ <p align="center">
16
+ <img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/skyscanner-step1-v1.png" width="820" alt="Step 1: Configure IATA origin, destination & dates"/><br/>
17
+ <img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/step-arrow-down.svg" width="40" alt=""/><br/>
18
+ <img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/skyscanner-step2-v1.png" width="820" alt="Step 2: Structured flight itineraries JSON"/>
19
+ </p>
20
+
21
+ ---
22
+
23
+ ## Quickstart
24
+
25
+ ### 1. Python SDK (Zero Dependencies)
26
+
27
+ ```bash
28
+ export APIFY_TOKEN="YOUR_APIFY_API_TOKEN"
29
+ python examples/fare_watch.py SGN SIN 2026-12-20
30
+ ```
31
+
32
+ ```python
33
+ from python.skyscanner_sdk import SkyscannerClient
34
+
35
+ client = SkyscannerClient(apify_token="YOUR_APIFY_API_TOKEN")
36
+ flights = client.search_flights(
37
+ origin="SGN",
38
+ destination="SIN",
39
+ depart_date="2026-12-20",
40
+ adults=1,
41
+ currency="USD",
42
+ max_results=10,
43
+ )
44
+ for f in flights[:3]:
45
+ print(f.get("airline"), "|", f.get("price"), f.get("currency"), "| Stops:", f.get("stops"))
46
+ ```
47
+
48
+ ### 2. Node.js 18+ (Zero Dependencies)
49
+
50
+ ```javascript
51
+ import { SkyscannerClient } from "./node/index.mjs";
52
+
53
+ const client = new SkyscannerClient(process.env.APIFY_TOKEN);
54
+ const flights = await client.searchFlights({ origin: "LAX", destination: "NRT", departDate: "2026-12-20", maxResults: 5 });
55
+ console.log(flights);
56
+ ```
57
+
58
+ ---
59
+
60
+ ## JiStudio Ecosystem
61
+
62
+ - **Apify Actor**: [apify.com/jistudio/skyscanner-flights-scraper](https://apify.com/jistudio/skyscanner-flights-scraper) · **Public Task**: [Live Flight Search Task](https://apify.com/jistudio)
63
+ - **GitHub Org**: [github.com/jistudio-dev](https://github.com/jistudio-dev)
64
+ - **License**: MIT — Independent travel research SDK; not affiliated with Skyscanner Ltd.
@@ -0,0 +1,34 @@
1
+ [build-system]
2
+ requires = ["setuptools>=68"]
3
+ build-backend = "setuptools.build_meta"
4
+
5
+ [project]
6
+ name = "skyscanner-flights-sdk"
7
+ version = "1.0.0"
8
+ description = "Zero-dependency Python SDK for live multi-airline Skyscanner flight search, cabin classes & fare monitoring via Apify."
9
+ readme = "README.md"
10
+ license = {text = "MIT"}
11
+ requires-python = ">=3.10"
12
+ authors = [{name = "JiStudio", email = "dev@jistudio.dev"}]
13
+ keywords = ["skyscanner", "flights", "travel-api", "airfare", "apify"]
14
+ classifiers = [
15
+ "Development Status :: 5 - Production/Stable",
16
+ "Intended Audience :: Developers",
17
+ "License :: OSI Approved :: MIT License",
18
+ "Programming Language :: Python :: 3",
19
+ "Programming Language :: Python :: 3.10",
20
+ "Programming Language :: Python :: 3.11",
21
+ "Programming Language :: Python :: 3.12",
22
+ "Topic :: Internet :: WWW/HTTP",
23
+ "Topic :: Software Development :: Libraries :: Python Modules",
24
+ ]
25
+ dependencies = []
26
+
27
+ [project.urls]
28
+ Homepage = "https://jistudio-dev.github.io/skyscanner-flights/"
29
+ Repository = "https://github.com/jistudio-dev/skyscanner-flights-sdk"
30
+ Documentation = "https://jistudio-dev.github.io/skyscanner-flights/"
31
+
32
+ [tool.setuptools.packages.find]
33
+ where = ["."]
34
+ include = ["skyscanner_sdk*"]
@@ -0,0 +1,4 @@
1
+ [egg_info]
2
+ tag_build =
3
+ tag_date = 0
4
+
@@ -0,0 +1,88 @@
1
+ Metadata-Version: 2.4
2
+ Name: skyscanner-flights-sdk
3
+ Version: 1.0.0
4
+ Summary: Zero-dependency Python SDK for live multi-airline Skyscanner flight search, cabin classes & fare monitoring via Apify.
5
+ Author-email: JiStudio <dev@jistudio.dev>
6
+ License: MIT
7
+ Project-URL: Homepage, https://jistudio-dev.github.io/skyscanner-flights/
8
+ Project-URL: Repository, https://github.com/jistudio-dev/skyscanner-flights-sdk
9
+ Project-URL: Documentation, https://jistudio-dev.github.io/skyscanner-flights/
10
+ Keywords: skyscanner,flights,travel-api,airfare,apify
11
+ Classifier: Development Status :: 5 - Production/Stable
12
+ Classifier: Intended Audience :: Developers
13
+ Classifier: License :: OSI Approved :: MIT License
14
+ Classifier: Programming Language :: Python :: 3
15
+ Classifier: Programming Language :: Python :: 3.10
16
+ Classifier: Programming Language :: Python :: 3.11
17
+ Classifier: Programming Language :: Python :: 3.12
18
+ Classifier: Topic :: Internet :: WWW/HTTP
19
+ Classifier: Topic :: Software Development :: Libraries :: Python Modules
20
+ Requires-Python: >=3.10
21
+ Description-Content-Type: text/markdown
22
+ License-File: LICENSE
23
+ Dynamic: license-file
24
+
25
+ # Skyscanner Flights API SDK — Live Airfare Search & Fare Watch (Python / Node.js / n8n)
26
+
27
+ [![Skyscanner Flights Scraper — Live Multi-Airline Fares on Apify](https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/skyscanner-hero-v1.png)](https://apify.com/jistudio/skyscanner-flights-scraper)
28
+
29
+ Zero-dependency **Python** & **Node.js (ESM)** SDK + **CLI Fare Watch** + **n8n flight deal alert workflow** backed by [`jistudio/skyscanner-flights-scraper`](https://apify.com/jistudio/skyscanner-flights-scraper) on Apify Cloud (`$0` start fee, Pay-Per-Event from `$0.56 / 1,000` results with Store discounts).
30
+
31
+ - **Live multi-airline fares**: Direct & connecting flights, airlines, durations, layovers, cabin classes (`economy`, `premium_economy`, `business`, `first`), currencies, and booking provider links.
32
+ - **One-way & round-trip** support with flexible IATA airport codes (`SGN`, `HAN`, `SIN`, `NRT`, `LAX`, `LHR`, `JFK`, etc.).
33
+ - **Zero cookies, zero browser setup, zero pip/npm dependencies.**
34
+
35
+ ---
36
+
37
+ ## How It Works
38
+
39
+ <p align="center">
40
+ <img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/skyscanner-step1-v1.png" width="820" alt="Step 1: Configure IATA origin, destination & dates"/><br/>
41
+ <img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/step-arrow-down.svg" width="40" alt=""/><br/>
42
+ <img src="https://api.apify.com/v2/key-value-stores/0J5jsCbmj4kPfyj6H/records/skyscanner-step2-v1.png" width="820" alt="Step 2: Structured flight itineraries JSON"/>
43
+ </p>
44
+
45
+ ---
46
+
47
+ ## Quickstart
48
+
49
+ ### 1. Python SDK (Zero Dependencies)
50
+
51
+ ```bash
52
+ export APIFY_TOKEN="YOUR_APIFY_API_TOKEN"
53
+ python examples/fare_watch.py SGN SIN 2026-12-20
54
+ ```
55
+
56
+ ```python
57
+ from python.skyscanner_sdk import SkyscannerClient
58
+
59
+ client = SkyscannerClient(apify_token="YOUR_APIFY_API_TOKEN")
60
+ flights = client.search_flights(
61
+ origin="SGN",
62
+ destination="SIN",
63
+ depart_date="2026-12-20",
64
+ adults=1,
65
+ currency="USD",
66
+ max_results=10,
67
+ )
68
+ for f in flights[:3]:
69
+ print(f.get("airline"), "|", f.get("price"), f.get("currency"), "| Stops:", f.get("stops"))
70
+ ```
71
+
72
+ ### 2. Node.js 18+ (Zero Dependencies)
73
+
74
+ ```javascript
75
+ import { SkyscannerClient } from "./node/index.mjs";
76
+
77
+ const client = new SkyscannerClient(process.env.APIFY_TOKEN);
78
+ const flights = await client.searchFlights({ origin: "LAX", destination: "NRT", departDate: "2026-12-20", maxResults: 5 });
79
+ console.log(flights);
80
+ ```
81
+
82
+ ---
83
+
84
+ ## JiStudio Ecosystem
85
+
86
+ - **Apify Actor**: [apify.com/jistudio/skyscanner-flights-scraper](https://apify.com/jistudio/skyscanner-flights-scraper) · **Public Task**: [Live Flight Search Task](https://apify.com/jistudio)
87
+ - **GitHub Org**: [github.com/jistudio-dev](https://github.com/jistudio-dev)
88
+ - **License**: MIT — Independent travel research SDK; not affiliated with Skyscanner Ltd.
@@ -0,0 +1,9 @@
1
+ LICENSE
2
+ README.md
3
+ pyproject.toml
4
+ skyscanner_flights_sdk.egg-info/PKG-INFO
5
+ skyscanner_flights_sdk.egg-info/SOURCES.txt
6
+ skyscanner_flights_sdk.egg-info/dependency_links.txt
7
+ skyscanner_flights_sdk.egg-info/top_level.txt
8
+ skyscanner_sdk/__init__.py
9
+ skyscanner_sdk/client.py
@@ -0,0 +1,3 @@
1
+ from .client import SkyscannerClient
2
+
3
+ __all__ = ["SkyscannerClient"]
@@ -0,0 +1,50 @@
1
+ """Zero-dependency Python SDK for JiStudio Skyscanner Flights Scraper on Apify Cloud."""
2
+ import json
3
+ import os
4
+ import urllib.parse
5
+ import urllib.request
6
+
7
+ ACTOR_ID = "jistudio~skyscanner-flights-scraper"
8
+
9
+
10
+ class SkyscannerClient:
11
+ def __init__(self, apify_token: str | None = None, timeout: int = 90):
12
+ self.token = apify_token or os.environ.get("APIFY_TOKEN", "")
13
+ if not self.token:
14
+ raise ValueError("Provide apify_token or set APIFY_TOKEN environment variable.")
15
+ self.timeout = timeout
16
+
17
+ def search_flights(
18
+ self,
19
+ origin: str,
20
+ destination: str,
21
+ depart_date: str,
22
+ return_date: str = "",
23
+ adults: int = 1,
24
+ cabin_class: str = "economy",
25
+ currency: str = "USD",
26
+ market: str = "US",
27
+ max_results: int = 15,
28
+ ) -> list[dict]:
29
+ payload = {
30
+ "origin": origin.upper(),
31
+ "destination": destination.upper(),
32
+ "departDate": depart_date,
33
+ "adults": adults,
34
+ "cabinClass": cabin_class,
35
+ "currency": currency.upper(),
36
+ "market": market.upper(),
37
+ "maxResults": max_results,
38
+ }
39
+ if return_date:
40
+ payload["returnDate"] = return_date
41
+ qs = urllib.parse.urlencode({"token": self.token})
42
+ url = f"https://api.apify.com/v2/acts/{ACTOR_ID}/run-sync-get-dataset-items?{qs}"
43
+ req = urllib.request.Request(
44
+ url,
45
+ data=json.dumps(payload).encode("utf-8"),
46
+ headers={"Content-Type": "application/json", "Accept": "application/json"},
47
+ method="POST",
48
+ )
49
+ with urllib.request.urlopen(req, timeout=self.timeout) as resp:
50
+ return json.loads(resp.read().decode("utf-8"))