{"api":{"id":"api_5dd3570f0c6e87d5c8795278","slug":"public-suffix-list","name":"Public Suffix List API","description":"Splits hostnames the correct way using the Public Suffix List: the public suffix (co.uk, github.io), the registrable domain, the subdomain and whether the suffix is a private-section one. Many hostnames per call.","kind":"ready_made","visibility":"public","domain":"publicsuffix.org","source_url":"https://publicsuffix.org/list/public_suffix_list.dat","category":"developer","record_type":"generic","active_version":"1.0","units_per_1k":500,"health":"unknown","auto_repair":false,"last_checked_at":null,"last_run_at":null,"fields_count":5,"created_at":"2026-12-06T04:45:48.392Z","updated_at":"2026-12-06T04:45:48.392Z","runnable":true},"version":"1.0","contract_hash":"34b0e9934fa0684986d80c0b929e50548ca06ce6c9c82eed24590eb3f41b6437","fields":[{"name":"hostname","type":"string","description":"The hostname that was split, lower case, ASCII form.","required":true,"coverage":1,"example":"foo.bar.co.uk"},{"name":"public_suffix","type":"string","description":"The public suffix, such as com, co.uk or github.io.","required":false,"coverage":1,"example":"co.uk"},{"name":"registrable_domain","type":"string","description":"The public suffix plus one label (bar.co.uk); empty when the hostname is only a suffix.","required":false,"coverage":1,"example":"bar.co.uk"},{"name":"subdomain","type":"string","description":"Labels left of the registrable domain (foo); empty when there are none.","required":false,"coverage":0.6,"example":"foo"},{"name":"is_private_suffix","type":"boolean","description":"True when the suffix comes from the list's private section (github.io), false for registry suffixes (co.uk).","required":false,"coverage":1,"example":false}],"inputs":[{"name":"hostnames","type":"array","description":"Hostnames to split, such as foo.bar.co.uk. A leading https:// or a path is ignored.","example":["foo.bar.co.uk","user.github.io"],"required":true}],"schema":{"$schema":"https://json-schema.org/draft/2020-12/schema","additionalProperties":true,"properties":{"hostname":{"description":"The hostname that was split, lower case, ASCII form.","type":"string"},"is_private_suffix":{"description":"True when the suffix comes from the list's private section (github.io), false for registry suffixes (co.uk).","type":"boolean"},"public_suffix":{"description":"The public suffix, such as com, co.uk or github.io.","type":"string"},"registrable_domain":{"description":"The public suffix plus one label (bar.co.uk); empty when the hostname is only a suffix.","type":"string"},"subdomain":{"description":"Labels left of the registrable domain (foo); empty when there are none.","type":"string"}},"required":["hostname"],"title":"Public Suffix List API","type":"object"},"samples":[{"hostname":"foo.bar.co.uk","public_suffix":"co.uk","registrable_domain":"bar.co.uk","subdomain":"foo","is_private_suffix":false},{"hostname":"user.github.io","public_suffix":"github.io","registrable_domain":"user.github.io","subdomain":null,"is_private_suffix":true},{"hostname":"www.example.com","public_suffix":"com","registrable_domain":"example.com","subdomain":"www","is_private_suffix":false}],"validation":{"checked_at":"2026-12-06T04:45:48.335Z","field_coverage":{"hostname":1,"is_private_suffix":1,"public_suffix":1,"registrable_domain":1,"subdomain":0.67},"fresh_read":false,"identity_unique":true,"issues":["Imported from a hand-built source. Field names and types come from its published schema; no live read was made for this check."],"level":"preview","pages_checked":0,"passed":true,"records_checked":3},"changelog":[{"version":"1.0","change_kind":"initial","note":"Imported from the ready-made source catalog.","created_at":"2026-12-06T04:45:48.392Z","activated_at":"2026-12-06T04:45:48.392Z","active":true,"contract_hash":"34b0e9934fa0684986d80c0b929e50548ca06ce6c9c82eed24590eb3f41b6437","fields_count":5}]}