sorted-travel
Official Python SDK and CLI for the Sorted Travel REST API.
This is a stdlib-only client for the public endpoints at https://sorted.travel. Destination ranking, facts, weather, and visa tools are a free tier with zero-auth access. An API key is optional.
- Homepage: https://sorted.travel
- Developer portal: https://sorted.travel/developers
- SDK guide: https://sorted.travel/sdks.md
- OpenAPI: https://sorted.travel/openapi.json
- MCP: https://sorted.travel/mcp
- PyPI: https://pypi.org/project/sorted-travel/
Install
pip install sorted-travel
Quickstart
from sorted_travel import Client
client = Client()
print(client.status())
page = client.list_destinations(limit=20)
print(page["data"][0]["handle"], page["has_more"])
Destination tools need no key. If a host still requires one:
client = Client(api_key="st_sandbox_...") # or set SORTED_TRAVEL_API_KEY
Self-serve sandbox keys:
payload = client.create_api_key()
CLI
sorted-travel status
sorted-travel destinations --limit 5
sorted-travel sandbox
sorted-travel api-key
Configuration
| Constructor arg | Environment variable | Default |
|---|---|---|
api_key |
SORTED_TRAVEL_API_KEY |
— |
base_url |
SORTED_TRAVEL_BASE_URL |
https://sorted.travel |
timeout |
— | 30.0 seconds |
Surface
status()—GET /api/v1/statuslist_destinations(cursor=, limit=)—GET /api/v1/destinationscreate_api_key()—POST /api/v1/api-keyssandbox()—GET /sandboxcreate_job(operation, **body)—POST /api/v1/jobsget_job(job_id)—GET /api/v1/jobs/{job_id}get(path, params=)/post(path, body=)— raw REST escape hatch
Interactive ranking, weather, and visa still go through MCP at https://sorted.travel/mcp. This package does not wrap JSON-RPC.
License
MIT. The Sorted Travel product remains under its own terms at https://sorted.travel/terms.
Release files for sorted-travel 0.1.0
For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.
Source distribution (sdist)
| File | Size | Uploaded | |
|---|---|---|---|
| sorted_travel-0.1.0.tar.gz | 6.7 kB | Details |
Built distribution (wheel)
| File | Interpreter | ABI | Platform | Reset |
|---|---|---|---|---|
| sorted_travel-0.1.0-py3-none-any.whl | Python 3 | none | any | Details |
Total release size: 13.7 kB
Release files / sorted_travel-0.1.0.tar.gz
| Download URL | sorted_travel-0.1.0.tar.gz |
|---|---|
| Size | 6.7 kB |
| Tags | Source |
|
SHA-256 checksum How to use checksums |
1803565a3caf7b10dfd267f8c2cf9aceb73ba2c33dd346cdf5b56f3026a42429
|
|
BLAKE2b-256 checksum How to use checksums |
f8af0a3dc38ccd89101923600f6386315dec2be2b623914c45d7e91b2ad4cde8
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.
Transparency logRelease files / sorted_travel-0.1.0-py3-none-any.whl
| Download URL | sorted_travel-0.1.0-py3-none-any.whl |
|---|---|
| Size | 6.9 kB |
| Tags | Python 3 |
|
SHA-256 checksum How to use checksums |
8512a1c62a678a352f226142d50fe07cdb5bd5b8c8f2be8c7aba4a23965310b0
|
|
BLAKE2b-256 checksum How to use checksums |
1aeec08c105b1ccb996bd7e3d5fe359b24e294f3c77aa7f4ff0ecc0eeaf316dc
|
| Upload date | |
|
Uploaded using Trusted Publishing? What is trusted publishing? |
Yes |
| Uploaded via |
twine/7.0.0 CPython/3.13.14
|
Provenance
Provenance describes where a file came from. On PyPI, provenance is shared via attestations, which provide a verifiable record of the build or publishing details. View details, limitations and caveats.
PyPI Publish Attestation
PyPI verified that this artifact, at this checksum, originated from the publisher listed below.
Signed by GitHub Actions, verified by PyPI on Sep 12, 2026.
Transparency log