Skip to main content

auto-api.com client — search car listings across encar, mobile.de, autoscout24, che168 and more

Project description

auto-api-client-python

PyPI version Python version License

Python client for the auto-api.com car listings API.

Gives you access to 8 automotive marketplaces through a single interface — encar (Korea), mobile.de and autoscout24 (Europe), che168/dongchedi/guazi (China), dubicars/dubizzle (UAE). Search offers, pull listing details, track changes. Built on requests.

Installation

pip install auto-api-client

Usage

from auto_api import Client

client = Client('your-api-key')

Get filters

filters = client.get_filters('encar')

Search offers

offers = client.get_offers('mobilede', page=1, brand='BMW', year_from=2020)

# Pagination
print(offers['meta']['page'])
print(offers['meta']['next_page'])

Get single offer

offer = client.get_offer('encar', '40427050')

Track changes

change_id = client.get_change_id('encar', '2025-01-15')
changes = client.get_changes('encar', change_id)

# Next batch
next_batch = client.get_changes('encar', changes['meta']['next_change_id'])

Get offer by URL

info = client.get_offer_by_url('https://encar.com/dc/dc_cardetailview.do?carid=40427050')

Error handling

from auto_api import Client, AuthError, ApiError

try:
    offers = client.get_offers('encar', page=1)
except AuthError as e:
    # 401/403 — invalid API key
    print(e.status_code, e.message)
except ApiError as e:
    print(e.status_code, e.message)

Supported sources

Source Platform Region
encar encar.com South Korea
mobilede mobile.de Germany
autoscout24 autoscout24.com Europe
che168 che168.com China
dongchedi dongchedi.com China
guazi guazi.com China
dubicars dubicars.com UAE
dubizzle dubizzle.com UAE

Other languages

Language Package
PHP auto-api/client
TypeScript @auto-api/client
Go auto-api-go
C# AutoApi.Client
Java auto-api-client
Ruby auto-api-client
Rust auto-api-client

Documentation

auto-api.com

Project details


Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

autoapicom_client-1.0.0.tar.gz (4.6 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

autoapicom_client-1.0.0-py3-none-any.whl (5.3 kB view details)

Uploaded Python 3

File details

Details for the file autoapicom_client-1.0.0.tar.gz.

File metadata

  • Download URL: autoapicom_client-1.0.0.tar.gz
  • Upload date:
  • Size: 4.6 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.14.0

File hashes

Hashes for autoapicom_client-1.0.0.tar.gz
Algorithm Hash digest
SHA256 2e69e65e1ed61d1c1e851bf4fac163ecc02b626236ee428c0bf48238a38c71cb
MD5 b7f77ff3c32007fd6486b798d506432d
BLAKE2b-256 bdfed4ae049e9b55cb4f9e74d89918a904f53e533e82cfb3edc1bc9a817dfdeb

See more details on using hashes here.

File details

Details for the file autoapicom_client-1.0.0-py3-none-any.whl.

File metadata

File hashes

Hashes for autoapicom_client-1.0.0-py3-none-any.whl
Algorithm Hash digest
SHA256 ee5c44c03d763e844366ee4098bb75665a0594bb2b9ddc38f5d3d31ddb874805
MD5 6f42b3620f12413465bf5506f357b728
BLAKE2b-256 f9f05426a2d3dc3f4a4aacf7950e4c578597cd9c2ffc917b948dba478ed69d1c

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page