Home  >  Q&A  >  body text

javascript - API to check zip code based on address

Recently, I need to use the function of querying the postal code based on the delivery address, but many domestic interfaces are mostly charged or have other restrictions. I have seen the aggregation interface before. Although it is charged but the level is low, I am worried that the number of calls cannot meet the demand. Could you please tell me, is there any free API, or where can I get the address and postal code data so that I can query it as a service?

淡淡烟草味淡淡烟草味2690 days ago785

reply all(3)I'll reply

  • 高洛峰

    高洛峰2017-05-17 10:02:16

    Thanks to lejoy and my name is Zhang Xiaomei for their answers, which helped me find the solution.
    Most API interfaces on the Internet either charge a fee or have a limit on the number of calls per day, with the highest being only 1,000 times a day;
    It is basically difficult to find complete postal code data across the country, so it is not feasible to make it into a service;
    Finally passed lejoy's The URL is found, the data provider of Baidu postal code search is http://cpdc.chinapost.com.cn/..., this website obtains the postal code through ajax request search, and finds the requested parameters in F12, even if the area ID is removed. Parameters, the zip code can still be obtained through fuzzy search, and there is no limit on the number of calls so far. This solution will be used from now on. (PS: This data provider’s registration information is from China Post Network, the data should be correct)
    Attached is an example of my request: http://cpdc.chinapost.com.cn/...

    reply
    0
  • ringa_lee

    ringa_lee2017-05-17 10:02:16

    http://opendata.baidu.com/post/
    Return html, you need to analyze and extract the desired results yourself

    reply
    0
  • 漂亮男人

    漂亮男人2017-05-17 10:02:16

    National zip code

    reply
    0
  • Cancelreply