{
  "x402Version": 2,
  "id": 54154,
  "slug": "54154",
  "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",
  "resourceType": "Developer Tool",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xFFc458dB291b4ABcE020fE3de4f91F2770E537b1",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "1000",
      "amountUsd": 0.001,
      "maxTimeoutSeconds": 300
    }
  ],
  "outputSchema": {
    "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"
  },
  "extensions": {
    "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-10-08T07:46:20.088Z",
  "quality": {
    "calls30d": 5,
    "uniquePayers30d": 4,
    "lastCalledAt": "2026-10-08T07:46:19.895Z"
  },
  "metadata": {
    "extensions": {
      "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"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "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-10-14T01:15:01.050Z"
  },
  "exampleResponse": {
    "example": {
      "found": true,
      "input": "string",
      "result": {
        "admin_county": "string",
        "admin_district": "string",
        "admin_ward": "string",
        "ccg": "string",
        "codes": {},
        "country": "string",
        "date_of_introduction": "string",
        "european_electoral_region": "string",
        "incode": "string",
        "latitude": 0,
        "longitude": 0,
        "lsoa": "string",
        "msoa": "string",
        "nuts": "string",
        "outcode": "string",
        "parish": "string",
        "parliamentary_constituency": "string",
        "postcode": "string",
        "primary_care_trust": "string",
        "quality": 0,
        "region": "string"
      }
    },
    "type": "string"
  }
}