Postal Codes API - การเข้าถึงข้อมูลรหัสไปรษณีย์ทั่วโลก

ค้นหารหัสไปรษณีย์ รับระยะทางของรหัสไปรษณีย์ทั้งหมด และอีกมากมายด้วย API รหัสไปรษณีย์ของเรา

ข้อมูลทั่วโลก
94+ ประเทศ
{
   "query":{
      "code": "10005",
      "country": "US",
      "range": "25",
      "measure": "mi",
   },
   "results":{
       "range_codes_unique": [
           "07010", 
           "07020", 
           "07022", 
           "07024", 
           "07026", 
           ...
       ],
       "range_codes": [
           "07010", 
           "07020", 
           "07022", 
           "07024", 
           "07026", 
           ...
       ],
       "range_codes_details": [
          {
              "postal_code":"07010",
              "country_code":"US",
              "city":"Cliffside Park",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07020",
              "country_code":"US",
              "city":"Edgewater",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07022",
              "country_code":"US",
              "city":"Fairview",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07024",
              "country_code":"US",
              "city":"Fort Lee",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07026",
              "country_code":"US",
              "city":"Garfield",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
           ...
       ],
   }
}
Postalcodes.app - Access to Worldwide Postal Code data | Product Hunt






ใช้งานง่าย API

PostalCodes.app เป็นเครื่องมือที่ช่วยให้คุณได้รับข้อมูลเกี่ยวกับรหัสไปรษณีย์ต่างๆ ทั่วโลก คุณสามารถรับรหัสไปรษณีย์ในระยะทางเป็นกิโลเมตรหรือไมล์ หรือดูรายละเอียดของรหัสไปรษณีย์โดยทั่วไป

GET รับรหัสไปรษณีย์ในระยะทาง

ด้วยจุดสิ้นสุดที่ใช้งานง่ายนี้ คุณจะได้รับรายการรหัสไปรษณีย์ที่อยู่ในระยะที่กำหนด ตัวอย่างคำขอจะส่งคืนรายการรหัสไปรษณีย์ที่ไม่ซ้ำ รายการรหัสไปรษณีย์ทั้งหมด และรายละเอียดของรหัสไปรษณีย์แต่ละรายการ

GET https://postalcodes.app/api/v1/?key=YOUR-APIKEY&distance=25&zipcode=10005&country=us

API ของเรายอมรับการวัดระยะทางเป็นกิโลเมตร (ค่าเริ่มต้น) หรือไมล์

หากต้องการเปลี่ยนการวัดเป็นกิโลเมตร คุณต้องใส่ ms ในคำขอของคุณ:

GET https://postalcodes.app/api/v1/?key=YOUR-APIKEY&ms=km&distance=25&zipcode=10005&country=us

การตอบสนองจะมีลักษณะดังนี้:

{
   "query":{
      "code": "10005",
      "country": "US",
      "range": "25",
      "measure": "mi"
   },
   "results":{
       "range_codes_unique": ["07010", "07020", "07022", "07024", "07026", ...],
       "range_codes": ["07010", "07020", "07022", "07024", "07026", ...],
       "range_codes_details": [
          {
              "postal_code":"07010",
              "country_code":"US",
              "city":"Cliffside Park",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07020",
              "country_code":"US",
              "city":"Edgewater",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07022",
              "country_code":"US",
              "city":"Fairview",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07024",
              "country_code":"US",
              "city":"Fort Lee",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
          {
              "postal_code":"07026",
              "country_code":"US",
              "city":"Garfield",
              "state":"New Jersey",
              "state_code":"NJ",
              "province":"Bergen",
              "province_code":"003"
          },
           ...
       ],
   }
}

GET รับรายละเอียดรหัสไปรษณีย์

ตัวอย่างต่อไปนี้จะส่งคืนรายละเอียดของรหัสไปรษณีย์ที่ตรงกับคำค้นหา

GET https://postalcodes.app/api/v1/?key=YOUR-APIKEY&zipcode=10005&country=us

การตอบสนองจะมีลักษณะดังนี้:

{
   "query":{
      "code": "10005",
      "country": "us",
      "range": "",
      "measure": "mi"
   },
   "results":{
       "range_codes_unique": ["10005"],
       "range_codes": ["10005"],
       "range_codes_details": [
          {
              "postal_code":"10005",
              "country_code":"US",
              "city":"New York",
              "state":"New York",
              "state_code":"NY",
              "province":"New York",
              "province_code":"061"
          }
       ],
   }
}

GET รับข้อมูลที่กำหนดเอง

คุณสามารถส่งพารามิเตอร์เพิ่มเติมเพื่อรับเฉพาะสิ่งที่คุณต้องการในผลลัพธ์ เพียงเพิ่ม fields ค่าในคำขอของคุณ

GET https://postalcodes.app/api/v1/?key=YOUR-APIKEY&fields=["range_codes_unique"]&distance=25&zipcode=10005&country=us

การตอบสนองจะมีลักษณะดังนี้:

{
   "query":{
      "code": "10005",
      "country": "US",
      "range": "25",
      "measure": "mi"
   },
   "results":{
       "range_codes_unique": ["07010", "07020", "07022", "07024", "07026", ...]
   }
}



+94 ประเทศที่รองรับ

AD (อันดอร์รา)
AR (อาร์เจนตินา)
AS (อเมริกันซามัว)
AT (ออสเตรีย)
AU (ออสเตรเลีย)
AX (หมู่เกาะโอลัน)
AZ (อาเซอร์ไบจาน)
BD (บังคลาเทศ)
BE (เบลเยียม)
BG (บัลแกเรีย)
BM (เบอร์มิวดา)
BR (บราซิล)
Flag of Belarus
BY (เบลารุส)
CA (แคนาดา)
CH (ประเทศสวิสเซอร์แลนด์)
CL (ชิลี)
CO (โคลอมเบีย)
CR (คอสตาริกา)
CY (ประเทศไซปรัส)
CZ (สาธารณรัฐเช็ก)
Flag of Germany
DE (ประเทศเยอรมัน)
DK (เดนมาร์ก)
DO (สาธารณรัฐโดมินิกัน)
DZ (แอลจีเรีย)
EE (เอสโตเนีย)
ES (สเปน)
FI (ฟินแลนด์)
FM (ไมโครนีเซีย)
FO (หมู่เกาะแฟโร)
FR (ฝรั่งเศส)
GB (ประเทศอังกฤษ)
GF (เฟรนช์เกีย)
GG (ไหมพรมและอัลเดอร์นีย์)
GL (เกาะกรีนแลนด์)
GP (ลุป)
GT (กัวเตมาลา)
GU (กวม)
HR (โครเอเชีย (Hrvatska))
HU (ฮังการี)
IE (ไอร์แลนด์)
IM (ผู้ชาย (Isle of))
IN (อินเดีย)
IS (ประเทศไอซ์แลนด์)
IT (อิตาลี)
JE (นิวเจอร์ซีย์)
JP (ประเทศญี่ปุ่น)
Flag of South Korea
KR (เกาหลีใต้)
LI (นสไตน์)
LK (ศรีลังกา)
LT (ประเทศลิธัวเนีย)
LU (ลักเซมเบิร์ก)
LV (ลัตเวีย)
MC (โมนาโก)
MD (มอลโดวา)
Flag of the Marshall Islands
MH (หมู่เกาะมาร์แชลล์)
MK (มาซิโดเนีย)
MP (หมู่เกาะมาเรียนาเหนือ)
MQ (มาร์ตินีก)
MT (เกาะมอลตา)
Flag of Malawi
MW (มาลาวี)
MX (เม็กซิโก)
MY (ประเทศมาเลเซีย)
Flag of New Caledonia
NC (นิวแคลิโดเนีย)
NL (เนเธอร์แลนด์)
NO (นอร์เวย์)
NZ (นิวซีแลนด์)
PE (เปรู)
Flag of the Philippines Coding according to the official "description and specification of the FILIPINO flag" in Executive Order No. 23 from 1936
PH (ฟิลิปปินส์)
Flag of Pakistan
PK (ปากีสถาน)
PL (โปแลนด์)
PM (แซงปีแยร์และมีเกอลง)
the star is in the center of gravity of the triangle, so the x-pos is irrational (tan(30 deg) * 15)
PR (เปอร์โตริโก้)
PT (โปรตุเกส)
PW (ปาเลา)
RE (การรวมตัวใหม่)
RO (โรมาเนีย)
RS (เซอร์เบีย)
RU (รัสเซีย)
SE (สวีเดน)
SG (สิงคโปร์)
Flag of Slovenia
SI (สโลวีเนีย)
SJ (หมู่เกาะสฟาลบาร์และยานไมเอน)
Flag of Slovakia
SK (สโลวะเกีย)
SM (ซานมาริโน)
TH (ประเทศไทย)
TR (ไก่งวง)
UA (ยูเครน)
US (สหรัฐ)
Flag of Uruguay
UY (อุรุกวัย)
Flag of Vatican City
VA (นครวาติกัน (Holy See))
VI (หมู่เกาะเวอร์จิน (สหรัฐอเมริกา))
WF (หมู่เกาะวาลลิสและฟุตูนา)
YT (มายอต)
ZA (แอฟริกาใต้)

ราคาและแผน


แผนฟรี

รวมอะไรบ้าง?

240 คำขอรายวัน

US$ 49/ปี

รวมอะไรบ้าง?

4,800 คำขอรายวัน

US$ 149/ปี

รวมอะไรบ้าง?

60,000 คำขอรายวัน

US$ 500/ปี

รวมอะไรบ้าง?

300,000 คำขอรายวัน

US$ 1,000/ปี

รวมอะไรบ้าง?

1,200,000 คำขอรายวัน

US$ 2,500/ปี

รวมอะไรบ้าง?

คำขอรายวันไม่ จำกัด

เริ่มใช้ API ของเราได้ฟรีวันนี้!

รับ 240 คำขอฟรีทุกวัน