{
  "x402Version": 2,
  "id": 13270,
  "slug": "13270",
  "resource": "https://postcode-api-production.up.railway.app/lookup/postcode",
  "description": "Look up a UK postcode: coordinates, country, region, council, ward, parish, parliamentary constituency, and ONS/NHS area codes.",
  "type": "http",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xFFc458dB291b4ABcE020fE3de4f91F2770E537b1",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "bazaar": {
      "info": {
        "input": {
          "body": {
            "postcode": "SW1A 1AA"
          },
          "bodyType": "json",
          "method": "POST",
          "type": "http"
        },
        "output": {
          "example": {
            "found": true,
            "input": "SW1A 1AA",
            "result": {
              "admin_county": null,
              "admin_district": "Westminster",
              "admin_ward": "St James's",
              "ccg": "NHS North West London",
              "codes": {
                "admin_district": "E09000033",
                "admin_ward": "E05013806"
              },
              "country": "England",
              "date_of_introduction": "198001",
              "european_electoral_region": "London",
              "incode": "1AA",
              "latitude": 51.501009,
              "longitude": -0.141588,
              "lsoa": "Westminster 018C",
              "msoa": "Westminster 018",
              "nuts": "Westminster",
              "outcode": "SW1A",
              "parish": "Westminster, unparished area",
              "parliamentary_constituency": "Cities of London and Westminster",
              "postcode": "SW1A 1AA",
              "primary_care_trust": "Westminster",
              "quality": 1,
              "region": "London"
            }
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "body": {
                "properties": {
                  "postcode": {
                    "description": "UK postcode to look up; spacing and case are normalised, e.g. 'SW1A 1AA'.",
                    "type": "string"
                  }
                },
                "required": [
                  "postcode"
                ],
                "type": "object"
              },
              "bodyType": {
                "enum": [
                  "json",
                  "form-data",
                  "text"
                ],
                "type": "string"
              },
              "method": {
                "enum": [
                  "POST",
                  "PUT",
                  "PATCH"
                ],
                "type": "string"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method",
              "bodyType",
              "body"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "found": {
                    "type": "boolean"
                  },
                  "input": {
                    "type": "string"
                  },
                  "result": {
                    "properties": {
                      "admin_county": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "admin_district": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "admin_ward": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "ccg": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "codes": {
                        "type": "object"
                      },
                      "country": {
                        "type": "string"
                      },
                      "date_of_introduction": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "european_electoral_region": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "incode": {
                        "type": "string"
                      },
                      "latitude": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "longitude": {
                        "type": [
                          "number",
                          "null"
                        ]
                      },
                      "lsoa": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "msoa": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "nuts": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "outcode": {
                        "type": "string"
                      },
                      "parish": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "parliamentary_constituency": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "postcode": {
                        "type": "string"
                      },
                      "primary_care_trust": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "quality": {
                        "type": "integer"
                      },
                      "region": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "type": "object"
                  }
                },
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "bazaar"
  ],
  "sourceHost": "postcode-api-production.up.railway.app",
  "lastUpdated": "2026-09-12T16:48:04.146Z",
  "quality": {
    "calls30d": 6,
    "uniquePayers30d": 4,
    "lastCalledAt": "2026-09-12T16:48:03.91Z"
  },
  "liveness": {},
  "verified": false,
  "featured": false,
  "provider": {
    "host": "postcode-api-production.up.railway.app",
    "manifest_name": "postcode-api-production.up.railway.app",
    "source": "cdp-mirror",
    "source_manifest_url": "https://api.cdp.coinbase.com/platform/v2/x402/discovery/resources",
    "submitted_at": "2026-09-18T22:00:31.484Z"
  }
}