Skip to main content

ajaxapi (Python SDK) v2

PyPI

Yeni Ajax API (https://api.ajax.ink) için Python istemcisi. Sorgular için API anahtarı ve aktif abonelik gerekir. Paket ve dokümantasyon: https://ajax.ink

v2.0.0 büyük sürümdür: eski ücretsiz/key'siz apiv2.ajaxsystems.fun adresi kapatılmıştır. Yeni taban adres https://api.ajax.ink, kimlik doğrulama ak_... API anahtarıdır.

Kurulum

pip install ajaxapi

Python 3.8+ desteklenir; ek bağımlılık yoktur.

Hızlı başlangıç

from ajaxapi import AjaxAPI

api = AjaxAPI(api_key="ak_xxxxxxxxxxxxxxxx")
sonuc = api.tc("17420629810")

print(sonuc.raw())   # tam JSON
print(sonuc.data)    # yanıttaki "data" alanı

API anahtarı ortam değişkeninden de okunur:

export AJAXAPI_KEY="ak_xxxxxxxxxxxxxxxx"
from ajaxapi import AjaxAPI
api = AjaxAPI()

API anahtarınızı panelden oluşturabilirsiniz: https://ajax.ink/keys.php

Modül fonksiyonları (eski sürüm uyumlu)

Eski sürümdeki fonksiyon adları korunmuştur:

import ajaxapi

ajaxapi.set_api_key("ak_xxxxxxxxxxxxxxxx")

sonuc = ajaxapi.tc("17420629810")
sonuc = ajaxapi.ad_soyad("MEHMET", "YILMAZ")
sonuc = ajaxapi.aile("17420629810")
sonuc = ajaxapi.aile_pro("17420629810")
sonuc = ajaxapi.tc_gsm("17420629810")
sonuc = ajaxapi.gsm_tc("5550000000")
sonuc = ajaxapi.tapu("17420629810")
sonuc = ajaxapi.adres("17420629810")
sonuc = ajaxapi.ada_parsel("İSTANBUL", "KADIKÖY")
sonuc = ajaxapi.isyeri("17420629810")
sonuc = ajaxapi.eokul("17420629810")

Her fonksiyon AjaxResult döndürür. raw() tam JSON'u, data yanıttaki data alanını verir.

İstemci sınıfı

from ajaxapi import AjaxAPI

api = AjaxAPI(
    api_key="ak_xxxxxxxxxxxxxxxx",
    timeout=30,          # saniye
    retries=3,           # 429 / 5xx / bağlantı hatalarında
    cache_enabled=False, # kişisel veri için varsayılan kapalı
)

sonuc = api.query("tc", tc="17420629810")
print(sonuc.data)

base_url varsayılanı https://api.ajax.ink'dir. Alternatif olarak https://ajax.ink/api.php de kullanılabilir.

Endpoint'ler

Fonksiyon Endpoint Parametreler
tc() tc tc_no
tc_pro() tcpro tc_no
ad_soyad() adsoyad ad, soyad, il?, ilce?
aile() aile tc_no
aile_pro() aile tc_no
sulale() sulale tc_no
tc_gsm() tcgsm tc_no
gsm_tc() gsmtc gsm_no
eokul() eokul tc_no
adres() adres tc_no
tapu() tapu tc_no
ada_parsel() adaparsel il, ilce, mahalle?, ada?, parsel?
isyeri() isyeri tc_no

Hata yönetimi

from ajaxapi import AjaxAPI, AjaxApiAuthError, AjaxApiError

api = AjaxAPI(api_key="ak_xxxxxxxxxxxxxxxx")
try:
    sonuc = api.tc("17420629810")
except AjaxApiAuthError as exc:
    print("Anahtar/abonelik hatası:", exc.error)
    print("Paket:", exc.purchase_url)
except AjaxApiError as exc:
    print("API hatası:", exc)

Önemli istisnalar:

  • AjaxApiAuthError — 401/403 (anahtar yok/pasif veya abonelik yok)
  • AjaxApiValidationError — 400/422 (geçersiz parametre)
  • AjaxApiRateLimitError — 429
  • AjaxApiServerError — 5xx
  • AjaxApiTimeoutError, AjaxApiConnectionError — ağ hataları

Abonelik yoksa hata mesajında ve purchase_url alanında https://ajax.ink adresi bulunur.

Toplu sorgu

sonuclar = api.batch_tc(["17420629810", "11111111110"])
for kayit in sonuclar:
    print(kayit["tc"], kayit["durum"])

Komut satırı

ajaxapi --key ak_xxxxxxxxxxxxxxxx tc 17420629810
ajaxapi --key ak_xxxxxxxxxxxxxxxx adsoyad ROKET ATAR
ajaxapi --key ak_xxxxxxxxxxxxxxxx adaparsel İSTANBUL KADIKÖY
ajaxapi --key ak_xxxxxxxxxxxxxxxx query tc --param tc=17420629810

Anahtar AJAXAPI_KEY ortam değişkeninden de alınır:

export AJAXAPI_KEY="ak_xxxxxxxxxxxxxxxx"
ajaxapi tc 17420629810

v1'den geçiş

  • Taban adres https://apiv2.ajaxsystems.fun → https://api.ajax.ink
  • API anahtarı zorunlu: AjaxAPI(api_key="ak_...") veya set_api_key("ak_...")
  • aile_pro() artık yeni API'deki aile ucunu kullanır
  • Önbellek varsayılan olarak kapalı
  • requests/httpx bağımlılığı yok; sadece standart kütüphane

Lisans

MIT © 2026 Ajax Systems

Metadata

Release files for ajaxapi 2.0.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 ajaxapi 2.0.0
File Size Uploaded Provenance Actions
ajaxapi-2.0.0.tar.gz 12.9 kB Without provenance Details for ajaxapi-2.0.0.tar.gz

Built distribution (wheel)

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

Total release size: 26.3 kB

Release files / ajaxapi-2.0.0.tar.gz

Download URL ajaxapi-2.0.0.tar.gz
Size 12.9 kB
Tags Source
SHA-256 checksum
How to use checksums
dc99ef2d5d44f8b76c992166deeb4f26cc425538e246916b5113f2f260426b92
BLAKE2b-256 checksum
How to use checksums
c59a10c194d08d356f8f0413f28e4e1e0df895b2d0f2b283cbed7711411c6254
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.2

Release files / ajaxapi-2.0.0-py3-none-any.whl

Download URL ajaxapi-2.0.0-py3-none-any.whl
Size 13.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
e91cd8a33b9af6e44ceb3f7b94f11739c19e032f1e1e5a7e9f1f019eff479f67
BLAKE2b-256 checksum
How to use checksums
a2caa7d0e31b4157daf9b0bc903b3448836c3e8b66cea48a5e7681bdd5668c26
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/7.0.0 CPython/3.11.2

Security for ajaxapi 2.0.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.

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