Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New service: cainiao #39

Open
mishailovic opened this issue Dec 10, 2022 · 7 comments
Open

New service: cainiao #39

mishailovic opened this issue Dec 10, 2022 · 7 comments
Labels
new service New postal service

Comments

@mishailovic
Copy link

They don't have official api for parcel tracking, but we can do something with html parsing. Usually AliExpress uses this provider for parcels that are going to Russia

@mishailovic
Copy link
Author

Upd: actually this service can track every Chinese package, and not only those which were sent to Russia

@proninyaroslav proninyaroslav added the new service New postal service label Aug 20, 2024
@mishailovic
Copy link
Author

mishailovic commented Dec 4, 2024

might be little old, but they updated their api, and now its publicly available: https://global.cainiao.com/global/detail.json?mailNos={YOUR_TRACK_NUMBER_HERE}&lang=en-US&language=en-US gives you detailed json. Hope it helps. Also the service itself covers more than 100+ providers now, so if we implement this we basically add 100+ new services

@proninyaroslav
Copy link
Owner

@mishailovic
Do they have any restrictions and do they have documentation?

@mishailovic
Copy link
Author

They have no restrictions afaik, tho website gives you cloudflare verification when you reload fast for 10 times or so, but I don’t think it covers the api. Speaking about documentation: no, I don’t think they have it. They might have, but I didn’t find any

@mishailovic
Copy link
Author

@d1nuc0m
Copy link

d1nuc0m commented Jan 5, 2025

@mishailovic @proninyaroslav Maybe it is interesting, Cainiao seems to have API docs, although for different endpoints - I haven't tried it. The relevant APIs might be CAINIAO_LPS_QUERY_PARCEL_ARRIVED_PUDO and CN_OVERSEA_DL_QUERY_PACKAGE_STATUS?

@proninyaroslav
Copy link
Owner

@d1nuc0m
Documentation should make implementation a bit easier.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
new service New postal service
Projects
None yet
Development

No branches or pull requests

3 participants