Skip to main content

XAPI Korea Python

Python client for the XAPI Korea API. The current version supports account information, vehicle search, vehicle details and inspection history.

Installation

Python 3.10 or newer is required.

python -m pip install xapikorea

Development setup

python -m venv .venv
source .venv/bin/activate
python -m pip install -e .

For development, install the test and build tools:

python -m pip install -e ".[dev]"
python -m pytest
python -m build

Usage

import os

from xapikorea import XAPIKorea


with XAPIKorea(os.environ["XAPIKOREA_API_KEY"]) as client:
    account = client.me()

print(account.email, account.plan)

Search the current inventory:

with XAPIKorea(os.environ["XAPIKOREA_API_KEY"]) as client:
    results = client.search(
        brand="hyundai",
        year_from=2022,
        price_max=30_000_000,
        limit=5,
    )

for car in results.results:
    print(car.manufacturer, car.model, car.price_krw)

Retrieve full vehicle details and photos:

with XAPIKorea(os.environ["XAPIKOREA_API_KEY"]) as client:
    car = client.get_car(42662587)

print(car.manufacturer, car.model, car.price_krw)
print(*car.photos, sep="\n")

Retrieve the vehicle's inspection report:

with XAPIKorea(os.environ["XAPIKOREA_API_KEY"]) as client:
    inspection = client.get_inspection(42662587)

if not inspection.available:
    print("No inspection sheet is available")
elif inspection.had_accident:
    print("The inspection sheet reports accident history")
else:
    print("No accident history reported on the inspection sheet")

Use base_url to point the client at a local API:

client = XAPIKorea("enc_test_key", base_url="http://localhost:8000")

License

This project is licensed under the MIT License.

Support

For bugs and feature requests, open a GitHub issue.

Metadata

Release files for xapikorea 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 xapikorea 0.1.0
File Size Uploaded
xapikorea-0.1.0.tar.gz 10.4 kB Details

Built distribution (wheel)

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

Total release size: 17.8 kB

Release files / xapikorea-0.1.0.tar.gz

Download URL xapikorea-0.1.0.tar.gz
Size 10.4 kB
Tags Source
SHA-256 checksum
How to use checksums
15e5ba20ac921ab659d084106624d5a95bb315f092f0cb7090aceb333d17af7b
BLAKE2b-256 checksum
How to use checksums
b860fac6a62a326d8bbbeac6846be0f4c0b2ceab2230e1f3de0f2707ec9e8576
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 30, 2026.

Transparency log

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

Download URL xapikorea-0.1.0-py3-none-any.whl
Size 7.5 kB
Tags Python 3
SHA-256 checksum
How to use checksums
abb0cda620ca2417fbdb63856361fb5e9b83fd33a2dd2d917eb8dde219bc6d79
BLAKE2b-256 checksum
How to use checksums
4dec6755f28523d2591553272925143462739c3fa19d20fc9507f68a6ef25897
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 30, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.1.0 This release

2 release files

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