Website Categorization
curl --request GET \
--url https://categorization.dev/api/v1/website/categorization \
--header 'x-api-key: <x-api-key>'import requests
url = "https://categorization.dev/api/v1/website/categorization"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://categorization.dev/api/v1/website/categorization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://categorization.dev/api/v1/website/categorization",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://categorization.dev/api/v1/website/categorization"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://categorization.dev/api/v1/website/categorization")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://categorization.dev/api/v1/website/categorization")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"taxonomy_v3": [
{
"value": "Business and Finance > Industries > Aviation Industry",
"confidence": 0.9
},
{
"value": "Science and Technology > Aerospace",
"confidence": 0.9
},
{
"value": "Automotive > Auto Type > Concept Cars",
"confidence": 0.8
},
{
"value": "Business and Finance > Industries > Defense Industry",
"confidence": 0.8
},
{
"value": "Business and Finance > Industries > Space Industry",
"confidence": 0.8
},
{
"value": "Automotive > Auto Technology > Auto Safety Technologies",
"confidence": 0.7
},
{
"value": "Automotive > Auto Technology > Auto Infotainment Technologies",
"confidence": 0.7
},
{
"value": "Automotive > Auto Technology > Auto Navigation Systems",
"confidence": 0.7
},
{
"value": "Automotive > Auto Type > Green Vehicles",
"confidence": 0.7
},
{
"value": "Business and Finance > Industries > Technology Industry",
"confidence": 0.7
},
{
"value": "Business and Finance > Industries > Telecommunications Industry",
"confidence": 0.7
},
{
"value": "Automotive > Auto Type > Driverless Cars",
"confidence": 0.6
},
{
"value": "Science and Technology > Robotics",
"confidence": 0.6
},
{
"value": "Science and Technology > Artificial Intelligence",
"confidence": 0.6
},
{
"value": "Science and Technology > Quantum Computing",
"confidence": 0.5
}
]
}
{
"naics": [
{
"title": "Aircraft Manufacturing",
"value": "336411",
"confidence": 0.95
}
]
}
Endpoints
Website Categorization
This endpoint allows for categorizing websites based on NAICS (North American Industry Classification System) codes or a taxonomy classification.
GET
/
api
/
v1
/
website
/
categorization
Website Categorization
curl --request GET \
--url https://categorization.dev/api/v1/website/categorization \
--header 'x-api-key: <x-api-key>'import requests
url = "https://categorization.dev/api/v1/website/categorization"
headers = {"x-api-key": "<x-api-key>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {'x-api-key': '<x-api-key>'}};
fetch('https://categorization.dev/api/v1/website/categorization', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://categorization.dev/api/v1/website/categorization",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"x-api-key: <x-api-key>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://categorization.dev/api/v1/website/categorization"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("x-api-key", "<x-api-key>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://categorization.dev/api/v1/website/categorization")
.header("x-api-key", "<x-api-key>")
.asString();require 'uri'
require 'net/http'
url = URI("https://categorization.dev/api/v1/website/categorization")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["x-api-key"] = '<x-api-key>'
response = http.request(request)
puts response.read_body{
"taxonomy_v3": [
{
"value": "Business and Finance > Industries > Aviation Industry",
"confidence": 0.9
},
{
"value": "Science and Technology > Aerospace",
"confidence": 0.9
},
{
"value": "Automotive > Auto Type > Concept Cars",
"confidence": 0.8
},
{
"value": "Business and Finance > Industries > Defense Industry",
"confidence": 0.8
},
{
"value": "Business and Finance > Industries > Space Industry",
"confidence": 0.8
},
{
"value": "Automotive > Auto Technology > Auto Safety Technologies",
"confidence": 0.7
},
{
"value": "Automotive > Auto Technology > Auto Infotainment Technologies",
"confidence": 0.7
},
{
"value": "Automotive > Auto Technology > Auto Navigation Systems",
"confidence": 0.7
},
{
"value": "Automotive > Auto Type > Green Vehicles",
"confidence": 0.7
},
{
"value": "Business and Finance > Industries > Technology Industry",
"confidence": 0.7
},
{
"value": "Business and Finance > Industries > Telecommunications Industry",
"confidence": 0.7
},
{
"value": "Automotive > Auto Type > Driverless Cars",
"confidence": 0.6
},
{
"value": "Science and Technology > Robotics",
"confidence": 0.6
},
{
"value": "Science and Technology > Artificial Intelligence",
"confidence": 0.6
},
{
"value": "Science and Technology > Quantum Computing",
"confidence": 0.5
}
]
}
{
"naics": [
{
"title": "Aircraft Manufacturing",
"value": "336411",
"confidence": 0.95
}
]
}
Header
This parameter specifies the private key you’ll need for Categorization.dev access.
Parameters
A website url with
http:// or https:// protocol.The classification parameter specifies the type of categorization to be used. It can be either
taxonomy_v3 or naics.Supported classifications
taxonomy_v3: A hierarchical taxonomy that categorizes websites into a set of categories and subcategories : with 703 categoriesnaics: A classification system used by the United States, Canada, and Mexico to classify businesses by industry sector : census.gov naics
{
"taxonomy_v3": [
{
"value": "Business and Finance > Industries > Aviation Industry",
"confidence": 0.9
},
{
"value": "Science and Technology > Aerospace",
"confidence": 0.9
},
{
"value": "Automotive > Auto Type > Concept Cars",
"confidence": 0.8
},
{
"value": "Business and Finance > Industries > Defense Industry",
"confidence": 0.8
},
{
"value": "Business and Finance > Industries > Space Industry",
"confidence": 0.8
},
{
"value": "Automotive > Auto Technology > Auto Safety Technologies",
"confidence": 0.7
},
{
"value": "Automotive > Auto Technology > Auto Infotainment Technologies",
"confidence": 0.7
},
{
"value": "Automotive > Auto Technology > Auto Navigation Systems",
"confidence": 0.7
},
{
"value": "Automotive > Auto Type > Green Vehicles",
"confidence": 0.7
},
{
"value": "Business and Finance > Industries > Technology Industry",
"confidence": 0.7
},
{
"value": "Business and Finance > Industries > Telecommunications Industry",
"confidence": 0.7
},
{
"value": "Automotive > Auto Type > Driverless Cars",
"confidence": 0.6
},
{
"value": "Science and Technology > Robotics",
"confidence": 0.6
},
{
"value": "Science and Technology > Artificial Intelligence",
"confidence": 0.6
},
{
"value": "Science and Technology > Quantum Computing",
"confidence": 0.5
}
]
}
{
"naics": [
{
"title": "Aircraft Manufacturing",
"value": "336411",
"confidence": 0.95
}
]
}
Was this page helpful?
⌘I