{"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,"egress":null,"repairs":[],"repairs_total":0,"how":"Runs on a reader we built and maintain by hand for this site.","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},"links":{"run":"https://pullrow.dev/v1/apis/api_5dd3570f0c6e87d5c8795278/run","openapi":"https://pullrow.dev/v1/apis/api_5dd3570f0c6e87d5c8795278/openapi.json","contract":"https://pullrow.dev/v1/apis/api_5dd3570f0c6e87d5c8795278/contract.json","page":"https://pullrow.dev/catalog/public-suffix-list"},"runs_30d":0,"success_rate_30d":null,"price_per_1k_usd":0.5,"featured":false,"reliability":{"window_days":30,"runs":0,"completed":0,"succeeded":0,"failed":0,"success_rate":null,"last_run_at":null},"demo":{"available":false,"max_records":0,"reason":"Every run of this API costs us money, so it has no free live demo. The sample records on its page show what it returns.","code":"demo_not_available"},"meta":{"limitations":["Uses the list as published on publicsuffix.org when the run starts; new suffixes appear there within days of being added.","Hostnames are lower-cased and returned in their ASCII (punycode) form. IP addresses and single-label names have no registrable domain.","A hostname that matches no listed rule gets the standard default: its last label is the suffix, and is_private_suffix is empty.","The list is licensed under MPL 2.0; credit publicsuffix.org if you republish the list itself. Up to 5,000 hostnames per run."]},"plain":{"summary":null,"source":"rules","fields":[{"name":"hostname","label":"Hostname","description":"The hostname that was split, lower case, ASCII form.","group":"Basics","shown":true,"written":false},{"name":"public_suffix","label":"Public suffix","description":"The public suffix, such as com, co.uk or github.io.","group":"Basics","shown":true,"written":false},{"name":"registrable_domain","label":"Registrable domain","description":"The public suffix plus one label (bar.co.uk); empty when the hostname is only a suffix.","group":"Basics","shown":true,"written":false},{"name":"subdomain","label":"Subdomain","description":"Labels left of the registrable domain (foo); empty when there are none.","group":"Basics","shown":true,"written":false},{"name":"is_private_suffix","label":"Private suffix","description":"Yes when the suffix comes from the list's private section (github.io), false for registry suffixes (co.uk).","group":"Basics","shown":true,"written":false}],"inputs":[{"name":"hostnames","label":"Hostnames","help":"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","written":false}]}},"incidents":[]}