PTT Cargo Tracking Endpoint
Update (2026-04-25): The API in this blog post ceased existing a long time ago. This means everything else on this blog post are outdated and invalid.
Endpoint: https://pttws.ptt.gov.tr/cepptt/mssnvrPttaceaemaa/gonderitakipvepostakod/gonderisorguYurticiveYurtDisi
Request Method: GET
Query Strings
barkod: (13 alphanumerical characters long tracking code)RXEXAMPLE00TRtokenIdBildirim: (likely pushnotif uuid, leave empty)''kaynak:ANDROIDorIOS
Headers
Content-Type:application/jsonUser-Agent:ek.pttApp-Version:unknown
Warning
Although the returned data is JSON, server response Content-Type is text/plain for some reason.
Python Example
import requests
import json
trackingcode = "RXEXAMPLE00TR"
url = f"https://pttws.ptt.gov.tr/cepptt/mssnvrPttaceaemaa/gonderitakipvepostakod/gonderisorguYurticiveYurtDisi?barkod={trackingcode}&tokenIdBildirim=''&kaynak=ANDROID"
headers = {
'User-Agent': 'ek.ptt',
'Content-Type': 'application/json',
'App-Version': 'unknown'
}
response = requests.request("GET", url, headers=headers)
data = json.loads(response.text)
print(response.text)
Copyright 2018-2026, linuxgemini (İlteriş Yağıztegin Eroğlu). Any and all opinions listed here are my own and not representative of my employers; future, past and present.