javascript - API to check zip code based on address
淡淡烟草味
淡淡烟草味 2017-05-17 10:00:16
0
3
813

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?

淡淡烟草味
淡淡烟草味

reply all(3)
小葫芦

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/...

左手右手慢动作

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

漂亮男人

National zip code

Latest Downloads
More>
Web Effects
Website Source Code
Website Materials
Front End Template