apyhub
DATA VALIDATION · STANDARD DATA

Validate Indian Postcodes API

What it does

Validate India Pin Code checks whether a postcode exists in the lookup table. Send a postcode string in the request body; spaces are ignored when matching, so you can pass a formatted code or a compact PIN code value.

The response is intentionally simple: data is a boolean. A value of true means the postcode was found, and false means it was not. That makes this API easy to drop into address forms, checkout flows, CRM hygiene checks, or any workflow where you need a quick yes/no decision before accepting an Indian address.

Use Validate India Pin Code when you want to reject obviously invalid entries early, reduce failed deliveries, or normalize user input before storing it. Because the output is just a boolean, it fits cleanly into validation rules, server-side form checks, and batch processing jobs without adding extra parsing logic.

POST
Validate India pin code
https://api.eu.apyverse.com/apyhub/validate-in-postcode

QUICKSTART

GUIDE

Quickstart

Check whether a postcode exists by sending it in a simple JSON body.

curl -X POST "https://api.eu.apyverse.com/apyhub/validate-in-postcode" \
  -H "apy-token: $APY_TOKEN" \
  -H "Content-Type: application/json" \
  -d '{"postcode":"YO17 6DU"}'

What you'll get back

Returns a JSON object with a data boolean field — true when the postcode exists in the lookup table, false otherwise.

{
  "data": true
}
TRY ITLIVE · 10 ATOMS
Loading your default key…
The full key is used to call the gateway and stays in this tab — never sent to orbit or saved.
body*
Postcode or PIN code (spaces ignored for matching).

About this endpoint

What it does

Validates whether the supplied postcode or PIN code exists in the lookup table. It returns a JSON object with a single data boolean field indicating the result.

Request Body

ParameterTypeMandatoryDescription
postcodeStringYesPostcode or PIN code. Spaces are ignored for matching.

Response

Returns a JSON object with a data boolean field — true when the postcode exists in the lookup table, false otherwise.

ParameterTypeMandatoryDescription
dataBooleanYestrue when the postcode exists in the lookup table.

Body

Name
Type
Description
bodyREQUIRED
object
▣ COMMON ERRORS

Errors any endpoint can return

400bad_request

Required parameter missing or malformed body.

401unauthorized

API key missing, revoked, or not authorized for this service.

429rate_limited

Your plan's per-second rate exceeded. Retry with exponential backoff.

503upstream_busy

Backend temporarily unavailable. Try again in a few seconds.