Skip to main content

darak

The official Python client for the Darak API: every live rental and sale listing in Saudi Arabia, deduplicated across 13+ sources. Standard library only, Python 3.9+.

pip install darak
from darak import Darak, DarakError

darak = Darak()  # reads DARAK_API_KEY

page = darak.listings.search(city="riyadh", listing_type="rent", beds=3, limit=25)
print(page["data"][0]["price"]["yearly_sar"])

# Every result, fetching pages as you go (stops at your plan's paging depth).
for listing in darak.listings.search_all(city="jeddah", listing_type="sale"):
    print(listing["id"], listing["location"]["neighborhood_name_en"])

try:
    darak.listings.get(1)
except DarakError as e:
    print(e.status, e.code, e.request_id)

Get a key at platform.darak.app.

  • Lists are sent comma-separated: property_type=["apartment", "villa"].
  • 429 and 5xx (and network errors) are retried, honoring Retry-After. A monthly-quota 429 isn't waited out; it raises.
  • Namespaces, generated from the API's OpenAPI spec so they track it exactly: listings, market, analytics, projects, reference, brokers, and organization (admin keys). listings.search_all(...) pages for you by following the cursor, and request(method, path, query, body) reaches anything not yet wrapped.
  • cities.list / neighborhoods / directions still work; they are the 0.1.0 names for what is now reference.

Tests: python3 -m unittest discover -s tests.

Release files for darak 0.2.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 darak 0.2.0
File Size Uploaded
darak-0.2.0.tar.gz 11.5 kB Details

Built distribution (wheel)

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

Total release size: 20.6 kB

Release files / darak-0.2.0.tar.gz

Download URL darak-0.2.0.tar.gz
Size 11.5 kB
Tags Source
SHA-256 checksum
How to use checksums
fd2c750e35340095f86d46b135a3a07978c58aaaab7872403930952603d98d66
BLAKE2b-256 checksum
How to use checksums
6ea08b440dc9b7778420ef1f7bc758f420237420f6e25e2193a36aef9f4f16b9
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 23, 2026.

Transparency log

Release files / darak-0.2.0-py3-none-any.whl

Download URL darak-0.2.0-py3-none-any.whl
Size 9.1 kB
Tags Python 3
SHA-256 checksum
How to use checksums
63d89172bb055cd67f2c504474581bf5de7f59f02887751b48c05d6b0203976c
BLAKE2b-256 checksum
How to use checksums
aca77ba571dcae728bd2c563e4a4766d9787f513f1141bac22e40c30cc752fbf
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 23, 2026.

Transparency log

Release history Release notifications | RSS feed

This release

0.2.0 This release

2 release files

0.1.0

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