Skip to main content

Path of Apis

A single Python library for multiple APIs that cover Path of Exile, currently supporting poe2scout.com.

Overview

path_of_apis is a Python library designed to provide a clean, type-safe, and easy-to-use interface for interacting with various APIs related to Path of Exile (PoE). Currently, it supports the poe2scout.com API, which provides data on items, leagues, currencies, and more.

This library is built with type hints and modular design in mind, making it easy to extend to support additional APIs in the future.

Installation

pip install path_of_apis

Usage

✅ Basic Example

from path_of_apis.poe_scout.api import Poe2ScoutAPI

api = Poe2ScoutAPI()
api.default.check_live()
api.default.check_ready()

📦 Available Endpoints

  • /Health - Check if the API is live and ready
  • /Realms - Get realm data
  • /Leagues - Get league data and exchange info
  • /Items - Get item data, price history, and more
  • /Uniques - Get unique item data
  • /Currencies - Get currency data and exchange history

🧠 Type Hints

All classes and methods are fully typed with Python's type hints, ensuring better code readability and IDE support.

Example:

from path_of_apis.poe_scout.api import Poe2ScoutAPI

api: Poe2ScoutAPI = Poe2ScoutAPI()
item: Item = api.items.get_items("poe2", "runes")[0]

🧪 Testing

This project includes a full test suite using pytest, and you can run it with:

pytest tests/test_poe_scout.py

Example Usage

Get Realms

from path_of_apis.poe_scout.api import Poe2ScoutAPI

api = Poe2ScoutAPI()
realms = api.realms.get_realms()
print(realms)

Get Leagues

from path_of_apis.poe_scout.api import Poe2ScoutAPI

api = Poe2ScoutAPI()
leagues = api.leagues.get_leagues("poe2")
print(leagues)

Get Items

from path_of_apis.poe_scout.api import Poe2ScoutAPI

api = Poe2ScoutAPI()
items = api.items.get_items("poe2", "runes")
for item in items:
    print(f"{item.Name}: {item.CurrentPrice}")

License

MIT License

Contributing

Contributions are welcome! If you'd like to add support for additional APIs or improve the library, feel free to open a PR or issue.

Roadmap

  • Add support for more PoE APIs
  • Improve type hints and documentation
  • Add more detailed error handling
  • Add async support for faster API calls

Metadata

Release files for path-of-apis 0.1.0

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for path-of-apis 0.1.0
File Size Uploaded Provenance Actions
path_of_apis-0.1.0.tar.gz 30.8 kB Without provenance Details for path_of_apis-0.1.0.tar.gz

Built distribution (wheel)

Table of built distributions (wheels) for path-of-apis 0.1.0
File Interpreter ABI Platform Actions
path_of_apis-0.1.0-py3-none-any.whl Python 3 none any Details for path_of_apis-0.1.0-py3-none-any.whl

Total release size: 39.0 kB

Release files / path_of_apis-0.1.0.tar.gz

Download URL path_of_apis-0.1.0.tar.gz
Size 30.8 kB
Tags Source
SHA-256 checksum
How to use checksums
d80ce5e7d925c02502611f7e334b3ca34722f1fa96a9b78262d2b19901efc5cf
BLAKE2b-256 checksum
How to use checksums
c609d1cbefa501f998bab2a91451a2613693ed6510b9c0361164c979e9f92d69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Release files / path_of_apis-0.1.0-py3-none-any.whl

Download URL path_of_apis-0.1.0-py3-none-any.whl
Size 8.3 kB
Tags Python 3
SHA-256 checksum
How to use checksums
1af59d8388a0488afa5f4a1b7b70be3181ab1a1234f3de4412f99c805c58e543
BLAKE2b-256 checksum
How to use checksums
bbf071c4a31c60a47e9dc5a5ef3b0172dd118a65c1da3b9707c8b47a35b60a30
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/6.2.0 CPython/3.11.14

Security for path-of-apis 0.1.0

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.

No provenance found

None of the files in this release were uploaded with provenance metadata.

A note on package security

PyPI is a repository for distributing packages, not a service for auditing them. While third-party security researchers and our staff do their best to detect and remove malicious packages, PyPI cannot guarantee the quality, security or suitability of any given package.

To learn more about protecting yourself from malicious actors, visit our package security documentation.

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files No provenance

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page