Api Endpoint

postcode-api-production.up.railway.app

Look up a UK postcode: coordinates, country, region, council, ward, parish, parliamentary constituency, and ONS/NHS area codes.

Open interactive test console

Offering

Provider
postcode-api-production.up.railway.app
Method
POST
Offering type
Api Endpoint
Transport type
http
Category
Location And Travel
Delivery
Not provided
Pricing model
Not provided
x402 version
2

Endpoint context

URL
https://postcode-api-production.up.railway.app/lookup/postcode
MIME type
Not provided
First seen
2026-10-16T01:52:52.778Z
Last seen
Tags
None supplied

Payment pricing

x402 payment terms are the authoritative price for calling this endpoint.

Payment option 1
0.001 USDC
Atomic price: 1000 · Network: eip155:8453 · Asset: USDC · Scheme: exact
Raw x402 terms
[
  {
    "scheme": "exact",
    "network": "eip155:8453",
    "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
    "amount": "1000",
    "payTo": "0xFFc458dB291b4ABcE020fE3de4f91F2770E537b1"
  }
]

Observed health

Status
Reachable
Latest latency
104 ms
Average latency
475 ms
HTTP status
405
Last checked
Reachability
100% over 14 checks

Latency is measured to the first response headers. A reachable result does not verify response accuracy or merchant identity.

Input schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string",
      "const": "http"
    },
    "method": {
      "type": "string",
      "enum": [
        "POST",
        "PUT",
        "PATCH"
      ]
    },
    "bodyType": {
      "type": "string",
      "enum": [
        "json",
        "form-data",
        "text"
      ]
    },
    "body": {
      "type": "object",
      "properties": {
        "postcode": {
          "type": "string",
          "description": "UK postcode to look up; spacing and case are normalised, e.g. 'SW1A 1AA'."
        }
      },
      "required": [
        "postcode"
      ]
    }
  },
  "required": [
    "type",
    "method",
    "bodyType",
    "body"
  ],
  "additionalProperties": false
}

Output schema

{
  "type": "object",
  "properties": {
    "type": {
      "type": "string"
    },
    "example": {
      "type": "object",
      "properties": {
        "input": {
          "type": "string"
        },
        "found": {
          "type": "boolean"
        },
        "result": {
          "type": "object",
          "properties": {
            "postcode": {
              "type": "string"
            },
            "quality": {
              "type": "integer"
            },
            "incode": {
              "type": "string"
            },
            "outcode": {
              "type": "string"
            },
            "country": {
              "type": "string"
            },
            "region": {
              "type": [
                "string",
                "null"
              ]
            },
            "longitude": {
              "type": [
                "number",
                "null"
              ]
            },
            "latitude": {
              "type": [
                "number",
                "null"
              ]
            },
            "admin_district": {
              "type": [
                "string",
                "null"
              ]
            },
            "admin_county": {
              "type": [
                "string",
                "null"
              ]
            },
            "admin_ward": {
              "type": [
                "string",
                "null"
              ]
            },
            "parish": {
              "type": [
                "string",
                "null"
              ]
            },
            "parliamentary_constituency": {
              "type": [
                "string",
                "null"
              ]
            },
            "european_electoral_region": {
              "type": [
                "string",
                "null"
              ]
            },
            "primary_care_trust": {
              "type": [
                "string",
                "null"
              ]
            },
            "lsoa": {
              "type": [
                "string",
                "null"
              ]
            },
            "msoa": {
              "type": [
                "string",
                "null"
              ]
            },
            "ccg": {
              "type": [
                "string",
                "null"
              ]
            },
            "nuts": {
              "type": [
                "string",
                "null"
              ]
            },
            "codes": {
              "type": "object"
            },
            "date_of_introduction": {
              "type": [
                "string",
                "null"
              ]
            }
          }
        }
      }
    }
  },
  "required": [
    "type"
  ]
}