Complete API reference with SDKs, code examples, and integration guides. Build powerful domain classification into your applications.
Get started quickly with our official SDK libraries. Available for popular programming languages with full documentation and examples.
pip install websitecat
npm i websitecat
composer require websitecat/sdk
gem install websitecat
Categorize any domain with just a few lines of code:
from websitecat import Client
# Initialize the client
client = Client("YOUR_API_KEY")
# Categorize a domain
result = client.categorize("airbnb.com")
# Access categories
for category in result.categories:
print(f"{category.name}: {category.confidence}")
# Output:
# Travel: 0.95
# Real Estate: 0.82
All API responses are returned in JSON format with consistent structure:
{
"success": true,
"data": {
"domain": "shopify.com",
"categories": [
{
"id": "IAB3",
"name": "Business",
"tier": 1,
"confidence": 0.93
},
{
"id": "IAB3-4",
"name": "eCommerce",
"tier": 2,
"confidence": 0.91
}
],
"company": {
"name": "Shopify Inc.",
"industry": "Technology",
"employees": "10001+"
}
},
"meta": {
"request_id": "req_def456",
"credits_used": 1,
"latency_ms": 38
}
}