{
  "x402Version": 2,
  "id": 36313,
  "slug": "36313",
  "resource": "https://api.duoleads.com/v1/code/url",
  "description": "Parse and canonicalise a URL, and extract its registrable domain using the Public Suffix List — the part an agent needs to decide whether two URLs belong to the same owner. Returns scheme, host, port, path, decoded query parameters and fragment, the public suffix, the registrable domain (eTLD+1), the subdomain, whether the suffix is an ICANN or a private entry, plus a canonical form with default port, dot-segments and percent-encoding normalised. unicode_host uses WHATWG/UTS 46 (non-strict).",
  "type": "http",
  "serviceName": "Duo Data Utilities",
  "resourceType": "Monitoring",
  "accepts": [
    {
      "scheme": "exact",
      "network": "eip155:8453",
      "payTo": "0xCD673f7e1daD254347AEab6be0DEFe8b9C6b3A39",
      "asset": "0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913",
      "amount": "50000",
      "amountUsd": 0.05,
      "maxTimeoutSeconds": 120
    }
  ],
  "outputSchema": {
    "properties": {
      "example": {
        "properties": {
          "data": {
            "properties": {
              "canonical": {
                "type": "string"
              },
              "fragment": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "host": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "host_type": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "path": {
                "type": "string"
              },
              "port": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "public_suffix": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "query": {
                "items": {
                  "properties": {
                    "key": {
                      "type": "string"
                    },
                    "value": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "key",
                    "value"
                  ],
                  "type": "object"
                },
                "type": "array"
              },
              "registrable_domain": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "scheme": {
                "type": "string"
              },
              "subdomain": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "suffix_source": {
                "type": "string"
              },
              "unicode_host": {
                "type": [
                  "string",
                  "null"
                ]
              },
              "username": {
                "type": [
                  "string",
                  "null"
                ]
              }
            },
            "required": [
              "canonical",
              "scheme",
              "username",
              "host",
              "port",
              "path",
              "fragment",
              "query",
              "public_suffix",
              "registrable_domain",
              "subdomain",
              "suffix_source",
              "host_type",
              "unicode_host"
            ],
            "type": "object"
          },
          "meta": {
            "properties": {
              "computed_at": {
                "description": "RFC 3339 UTC with milliseconds",
                "type": "string"
              },
              "deterministic": {
                "type": "boolean"
              },
              "disclaimer": {
                "type": "string"
              },
              "price_usd": {
                "type": "string"
              },
              "request_id": {
                "type": "string"
              },
              "sources": {
                "items": {
                  "required": [
                    "id",
                    "version",
                    "published"
                  ],
                  "type": "object"
                },
                "type": "array"
              }
            },
            "required": [
              "request_id",
              "computed_at",
              "price_usd",
              "deterministic",
              "disclaimer"
            ],
            "type": "object"
          },
          "ok": {
            "const": true
          },
          "route": {
            "const": "/v1/code/url"
          },
          "version": {
            "type": "string"
          }
        },
        "required": [
          "ok",
          "route",
          "version",
          "data",
          "meta"
        ],
        "type": "object"
      },
      "type": {
        "type": "string"
      }
    },
    "required": [
      "type"
    ],
    "type": "object"
  },
  "extensions": {
    "bazaar": {
      "info": {
        "input": {
          "method": "GET",
          "queryParams": {
            "url": "https://a.b.example.co.uk:443/x/../y?q=1&q=2#f"
          },
          "type": "http"
        },
        "output": {
          "example": {
            "data": {
              "canonical": "https://a.b.example.co.uk/y?q=1&q=2#f",
              "fragment": "f",
              "host": "a.b.example.co.uk",
              "host_type": "domain",
              "path": "/y",
              "port": null,
              "public_suffix": "co.uk",
              "query": [
                {
                  "key": "q",
                  "value": "1"
                },
                {
                  "key": "q",
                  "value": "2"
                }
              ],
              "registrable_domain": "example.co.uk",
              "scheme": "https",
              "subdomain": "a.b",
              "suffix_source": "icann",
              "unicode_host": null,
              "username": null
            },
            "meta": {
              "computed_at": "2026-09-28T12:00:00.000Z",
              "deterministic": true,
              "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
              "price_usd": "0.05",
              "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D",
              "sources": [
                {
                  "id": "public-suffix-list",
                  "licence": "MPL-2.0",
                  "published": "2026-09-24",
                  "version": "a179a48c465e818cfd8d626691cb317985da87fb"
                }
              ]
            },
            "ok": true,
            "route": "/v1/code/url",
            "version": "1.0.0"
          },
          "type": "json"
        }
      },
      "schema": {
        "$schema": "https://json-schema.org/draft/2020-12/schema",
        "properties": {
          "input": {
            "additionalProperties": false,
            "properties": {
              "method": {
                "enum": [
                  "GET"
                ],
                "type": "string"
              },
              "queryParams": {
                "properties": {
                  "base": {
                    "description": "Base URL to resolve url against as a relative reference.",
                    "maxLength": 2048,
                    "type": "string"
                  },
                  "url": {
                    "description": "Absolute URL, or a bare hostname (https:// assumed).",
                    "maxLength": 2048,
                    "type": "string"
                  }
                },
                "required": [
                  "url"
                ],
                "type": "object"
              },
              "type": {
                "const": "http",
                "type": "string"
              }
            },
            "required": [
              "type",
              "method"
            ],
            "type": "object"
          },
          "output": {
            "properties": {
              "example": {
                "properties": {
                  "data": {
                    "properties": {
                      "canonical": {
                        "type": "string"
                      },
                      "fragment": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "host": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "host_type": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "path": {
                        "type": "string"
                      },
                      "port": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "public_suffix": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "query": {
                        "items": {
                          "properties": {
                            "key": {
                              "type": "string"
                            },
                            "value": {
                              "type": "string"
                            }
                          },
                          "required": [
                            "key",
                            "value"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      },
                      "registrable_domain": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "scheme": {
                        "type": "string"
                      },
                      "subdomain": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "suffix_source": {
                        "type": "string"
                      },
                      "unicode_host": {
                        "type": [
                          "string",
                          "null"
                        ]
                      },
                      "username": {
                        "type": [
                          "string",
                          "null"
                        ]
                      }
                    },
                    "required": [
                      "canonical",
                      "scheme",
                      "username",
                      "host",
                      "port",
                      "path",
                      "fragment",
                      "query",
                      "public_suffix",
                      "registrable_domain",
                      "subdomain",
                      "suffix_source",
                      "host_type",
                      "unicode_host"
                    ],
                    "type": "object"
                  },
                  "meta": {
                    "properties": {
                      "computed_at": {
                        "description": "RFC 3339 UTC with milliseconds",
                        "type": "string"
                      },
                      "deterministic": {
                        "type": "boolean"
                      },
                      "disclaimer": {
                        "type": "string"
                      },
                      "price_usd": {
                        "type": "string"
                      },
                      "request_id": {
                        "type": "string"
                      },
                      "sources": {
                        "items": {
                          "required": [
                            "id",
                            "version",
                            "published"
                          ],
                          "type": "object"
                        },
                        "type": "array"
                      }
                    },
                    "required": [
                      "request_id",
                      "computed_at",
                      "price_usd",
                      "deterministic",
                      "disclaimer"
                    ],
                    "type": "object"
                  },
                  "ok": {
                    "const": true
                  },
                  "route": {
                    "const": "/v1/code/url"
                  },
                  "version": {
                    "type": "string"
                  }
                },
                "required": [
                  "ok",
                  "route",
                  "version",
                  "data",
                  "meta"
                ],
                "type": "object"
              },
              "type": {
                "type": "string"
              }
            },
            "required": [
              "type"
            ],
            "type": "object"
          }
        },
        "required": [
          "input"
        ],
        "type": "object"
      }
    }
  },
  "tags": [
    "deterministic",
    "no-api-key",
    "code",
    "url",
    "domains",
    "bazaar"
  ],
  "sourceHost": "api.duoleads.com",
  "lastUpdated": "2026-10-01T20:51:55.633Z",
  "quality": {
    "calls30d": 2,
    "uniquePayers30d": 1,
    "lastCalledAt": "2026-10-01T20:51:55.483Z"
  },
  "metadata": {
    "serviceName": "Duo Data Utilities",
    "extensions": {
      "bazaar": {
        "info": {
          "input": {
            "method": "GET",
            "queryParams": {
              "url": "https://a.b.example.co.uk:443/x/../y?q=1&q=2#f"
            },
            "type": "http"
          },
          "output": {
            "example": {
              "data": {
                "canonical": "https://a.b.example.co.uk/y?q=1&q=2#f",
                "fragment": "f",
                "host": "a.b.example.co.uk",
                "host_type": "domain",
                "path": "/y",
                "port": null,
                "public_suffix": "co.uk",
                "query": [
                  {
                    "key": "q",
                    "value": "1"
                  },
                  {
                    "key": "q",
                    "value": "2"
                  }
                ],
                "registrable_domain": "example.co.uk",
                "scheme": "https",
                "subdomain": "a.b",
                "suffix_source": "icann",
                "unicode_host": null,
                "username": null
              },
              "meta": {
                "computed_at": "2026-09-28T12:00:00.000Z",
                "deterministic": true,
                "disclaimer": "Factual output of a deterministic computation over public data. Provided as is, with no warranty of accuracy, completeness or availability. Not investment, financial, legal, tax, medical or any other professional advice, and not a recommendation. Verify before relying on it. Terms: https://api.duoleads.com/terms",
                "price_usd": "0.05",
                "request_id": "01K6B7Q4ZC8H3F2M9WXR5TYN0D",
                "sources": [
                  {
                    "id": "public-suffix-list",
                    "licence": "MPL-2.0",
                    "published": "2026-09-24",
                    "version": "a179a48c465e818cfd8d626691cb317985da87fb"
                  }
                ]
              },
              "ok": true,
              "route": "/v1/code/url",
              "version": "1.0.0"
            },
            "type": "json"
          }
        },
        "schema": {
          "$schema": "https://json-schema.org/draft/2020-12/schema",
          "properties": {
            "input": {
              "additionalProperties": false,
              "properties": {
                "method": {
                  "enum": [
                    "GET"
                  ],
                  "type": "string"
                },
                "queryParams": {
                  "properties": {
                    "base": {
                      "description": "Base URL to resolve url against as a relative reference.",
                      "maxLength": 2048,
                      "type": "string"
                    },
                    "url": {
                      "description": "Absolute URL, or a bare hostname (https:// assumed).",
                      "maxLength": 2048,
                      "type": "string"
                    }
                  },
                  "required": [
                    "url"
                  ],
                  "type": "object"
                },
                "type": {
                  "const": "http",
                  "type": "string"
                }
              },
              "required": [
                "type",
                "method"
              ],
              "type": "object"
            },
            "output": {
              "properties": {
                "example": {
                  "properties": {
                    "data": {
                      "properties": {
                        "canonical": {
                          "type": "string"
                        },
                        "fragment": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "host": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "host_type": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "path": {
                          "type": "string"
                        },
                        "port": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "public_suffix": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "query": {
                          "items": {
                            "properties": {
                              "key": {
                                "type": "string"
                              },
                              "value": {
                                "type": "string"
                              }
                            },
                            "required": [
                              "key",
                              "value"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        },
                        "registrable_domain": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "scheme": {
                          "type": "string"
                        },
                        "subdomain": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "suffix_source": {
                          "type": "string"
                        },
                        "unicode_host": {
                          "type": [
                            "string",
                            "null"
                          ]
                        },
                        "username": {
                          "type": [
                            "string",
                            "null"
                          ]
                        }
                      },
                      "required": [
                        "canonical",
                        "scheme",
                        "username",
                        "host",
                        "port",
                        "path",
                        "fragment",
                        "query",
                        "public_suffix",
                        "registrable_domain",
                        "subdomain",
                        "suffix_source",
                        "host_type",
                        "unicode_host"
                      ],
                      "type": "object"
                    },
                    "meta": {
                      "properties": {
                        "computed_at": {
                          "description": "RFC 3339 UTC with milliseconds",
                          "type": "string"
                        },
                        "deterministic": {
                          "type": "boolean"
                        },
                        "disclaimer": {
                          "type": "string"
                        },
                        "price_usd": {
                          "type": "string"
                        },
                        "request_id": {
                          "type": "string"
                        },
                        "sources": {
                          "items": {
                            "required": [
                              "id",
                              "version",
                              "published"
                            ],
                            "type": "object"
                          },
                          "type": "array"
                        }
                      },
                      "required": [
                        "request_id",
                        "computed_at",
                        "price_usd",
                        "deterministic",
                        "disclaimer"
                      ],
                      "type": "object"
                    },
                    "ok": {
                      "const": true
                    },
                    "route": {
                      "const": "/v1/code/url"
                    },
                    "version": {
                      "type": "string"
                    }
                  },
                  "required": [
                    "ok",
                    "route",
                    "version",
                    "data",
                    "meta"
                  ],
                  "type": "object"
                },
                "type": {
                  "type": "string"
                }
              },
              "required": [
                "type"
              ],
              "type": "object"
            }
          },
          "required": [
            "input"
          ],
          "type": "object"
        }
      }
    }
  },
  "liveness": {
    "reliability": null
  },
  "verified": false,
  "featured": false,
  "provider": {
    "host": "api.duoleads.com",
    "manifest_name": "api.duoleads.com",
    "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": {
      "data": {
        "canonical": "string",
        "fragment": "string",
        "host": "string",
        "host_type": "string",
        "path": "string",
        "port": "string",
        "public_suffix": "string",
        "query": [
          {
            "key": "string",
            "value": "string"
          }
        ],
        "registrable_domain": "string",
        "scheme": "string",
        "subdomain": "string",
        "suffix_source": "string",
        "unicode_host": "string",
        "username": "string"
      },
      "meta": {
        "computed_at": "string",
        "deterministic": true,
        "disclaimer": "string",
        "price_usd": "string",
        "request_id": "string",
        "sources": [
          {}
        ]
      },
      "ok": null,
      "route": null,
      "version": "string"
    },
    "type": "string"
  }
}