Pin Code Checker | Find Address Free

Pin Code Checker

Enter Pin Code Check

Please enter a valid 6-digit Pin Code.

"; return; }fetch(`https://api.postalpincode.in/pincode/${pinCode}`) .then(response => response.json()) .then(data => { if (data[0].Status === "Success") { const postOffice = data[0].PostOffice[0]; resultDiv.innerHTML = `

Post Office Name: ${postOffice.Name}

District: ${postOffice.District}

State: ${postOffice.State}

Country: ${postOffice.Country}

`; } else { resultDiv.innerHTML = "

Invalid Pin Code. Please try again.

"; } }) .catch(error => { resultDiv.innerHTML = "

Error fetching data. Please try again later.

"; }); });