Express Logistics Information Interface API, with what good? I want to call the third-party API to display the data, do Express information query

Source: Internet
Author: User
Keywords Php api
To do express information display, such as the order has been shipped, where the goods, such information shows, how to call The courier company's API? Want to use Shun Fung Express, look at the development manual is very complex, read and understand, who knows how to use?

Reply content:

To do express information display, such as the order has been shipped, where the goods, such information shows, how to call The courier company's API? Want to use Shun Fung Express, look at the development manual is very complex, read and understand, who knows how to use?

Aggregated data and Baidu API are also available, some charges, there is a free trial

Reference: Courier Bird

We used KUAIDI100 's free interface. http://www.kuaidi100.com/

HTTPS://WWW.JUHE.CN/DOCS/API/ID/43 can look at the aggregated data of the comparative professional

Turn from a question previously answered: https://segmentfault.com/q/1010000005360416/a-1020000005369082

can use the Courier Bird API, give you a copy of Java Demo:https://github.com/wucao/common-api

Express Bird official website: http://www.kdniao.com/

Interface Documentation: Http://www.kdniao.com/YundanChaxunAPI.aspx

Free to use, no more than 3,000 times a day, you need to register before you can use. Express Company code: Http://www.kdniao.com/file/ExpressCode.xls

Use:

KdniaoService kdniaoService = new KdniaoService();kdniaoService.setApiId("API ID"); // API ID(商户ID)kdniaoService.setApiKey("API Key"); // API KeyList
  
   
    
    list = kdniaoService.getTrace("YTO", "700192858115"); // 快递公司编码、快递单号for(KdniaoTrace trace : list) {    System.out.println(trace.getTime() + " | " + trace.getMessage());}
  
   

Output:

2016-05-24 19:15:08 | 【广东省广州市白云区罗冲围公司】 取件人: 张定 已收件2016-05-24 20:15:35 | 【广东省广州市白云区罗冲围公司】 已收件2016-05-24 23:07:52 | 【广州转运中心】 已收入2016-05-24 23:13:35 | 【广州转运中心】 已发出 下一站 【上海转运中心】2016-05-26 02:18:40 | 【上海转运中心】 已收入2016-05-26 04:33:15 | 【上海转运中心】 已发出 下一站 【上海市闵行区虹桥公司】2016-05-26 07:37:59 | 【上海市闵行区虹桥公司】 已收入2016-05-26 07:38:03 | 【上海市闵行区虹桥公司】 派件人: 朱照耀 派件中 派件员电话183215393022016-05-26 11:55:09 | 客户 签收人: 邮件收发章 已签收 感谢使用圆通速递,期待再次为您服务
  • Related Article

    Contact Us

    The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

    If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

    A Free Trial That Lets You Build Big!

    Start building with 50+ products and up to 12 months usage for Elastic Compute Service

    • Sales Support

      1 on 1 presale consultation

    • After-Sales Support

      24/7 Technical Support 6 Free Tickets per Quarter Faster Response

    • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.