Skip to content

Instantly share code, notes, and snippets.

@iKlotho
Last active January 11, 2026 21:02
Show Gist options
  • Select an option

  • Save iKlotho/0c5119a319232733ba6f to your computer and use it in GitHub Desktop.

Select an option

Save iKlotho/0c5119a319232733ba6f to your computer and use it in GitHub Desktop.
TC kimlik no sorgulama python
import xml.etree.ElementTree as ET
import requests
url = "https://tckimlik.nvi.gov.tr/Service/KPSPublic.asmx?WSDL"
headers = {"content-type": "text/xml"}
# Change this
tc_no = "XXXXXXXXXXXX"
ad = "NAME"
soyad = "SURNAME"
dogum_yili = 1995
body = f"""<?xml version="1.0" encoding="utf-8"?>
<soap:Envelope xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns:xsd="http://www.w3.org/2001/XMLSchema" xmlns:soap="http://schemas.xmlsoap.org/soap/envelope/">
<soap:Body>
<TCKimlikNoDogrula xmlns="http://tckimlik.nvi.gov.tr/WS">
<TCKimlikNo>{tc_no}</TCKimlikNo>
<Ad>{ad}</Ad>
<Soyad>{soyad}</Soyad>
<DogumYili>{dogum_yili}</DogumYili>
</TCKimlikNoDogrula>
</soap:Body>
</soap:Envelope>"""
r = requests.post(url, data=body, headers=headers)
root = ET.fromstring(r.text)
if root.find(".//soap:Fault", namespaces={"soap": "http://schemas.xmlsoap.org/soap/envelope/"}):
fault_element = root.find(".//faultstring")
error_message = fault_element.text
print("Error:", error_message)
else:
result_element = root.find(".//{http://tckimlik.nvi.gov.tr/WS}TCKimlikNoDogrulaResult")
result = result_element.text
print(result)
@menaftekes243-a11y
Copy link

Samsun

@menaftekes243-a11y
Copy link

Edirne

@786cvh8rxy-lab
Copy link

mahmut yılmaz

@yucedagadile7-design
Copy link

Elanur canlı 12 yaşında ve tc istiyorum

@muhammetaytar9-a11y
Copy link

Emirhan tekdemir 14 yaşında annesin adı babasının adı ve Emirhanın TC kimliğini bulmak istiyorum

@furkanmertsevim1907-crypto
Copy link

furkanmertsevim1907-crypto commented Dec 27, 2025

Tarık Erdoğan kişisinin tcsini bütün aile bilgilerini bulmak istiyorum

@ass2999
Copy link

ass2999 commented Dec 28, 2025

Ben bu kodu nası kullanabilirim

@kilincmuhamet35-a11y
Copy link

TALAD DADAŞ SEVİNÇEK

@marask633-prog
Copy link

Fatma Harum Tc si lazım

@marask633-prog
Copy link

Fatma harum tc ve aile soy agacı

@siraerva30-lab
Copy link

27.04.2011
diyarbakır
umut asaf yokuş

Aile soy ağacı
Sosyal medyası
TC
Telefon numara
Adres

ÇOK ACİLL YOKSA COK KOTU SEYLER OLABİLİR LUTFEN AMA LUTFEN YARDIM EDİN GEREKİRSE WP KONUSABİLİRİZ

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment