API docs

Making requests

GEThttps://website-categorization-api.whoisxmlapi.com/api/v1?apiKey=YOUR_API_KEY&domainName=bbc.com

It takes up to 2 minutes to activate your account after Sign Up.

Input parameters: required

apiKey
Get your personal API KEY on My products page.
domainName
The website's domain name.

Input parameters: optional

outputFormat
Response output format.

Acceptable values: JSON | XML

Default: JSON
hardRefresh
0 is used for getting the cached category if there is one.
1 is used for demanding the website categorization from scratch.

Acceptable values: 0 | 1

Default: 0

Free access

After Sign Up you automatically get a free subscription plan limited to 100 queries per month.

Sample output

JSON
XML
                            {
    "categories": [
       "Internet and Telecom",
       "People and Society",
       "Arts and Entertainment"
    ],
    "domainName": "instagram.com",
    "websiteResponded": true
}
                        
                            <xml>
    <categories>
      <category>Internet and Telecom</category>
      <category>People and Society</category>
      <category>Arts and Entertainment</category>
    </categories>
    <domainName>instagram.com</domainName>
    <websiteResponded>1</websiteResponded>
</xml>
                        
domainName
Website's URL
websiteResponded
Determines if the website was active during the crawling. The website is considered to be active if it:
  • Responds within 20 seconds timeout (Connection timeout - 10s, Response read timeout - 10s)
  • Responds with 200 HTTP code
  • Sends Content-Type header which is either text/html or text/plain
categories
The list of possible website's categories. Every website may belong to up to 3 categories.

Categories available:
  • Arts and Entertainment
  • Autos and Vehicles
  • Beauty and Fitness
  • Books and Literature
  • Business and Industry
  • Career and Education
  • Computer and electronics
  • Finance
  • Food and Drink
  • Gambling
  • Games
  • Health
  • Home and Garden
  • Internet and Telecom
  • Law and Government
  • News and Media
  • People and Society
  • Pets and Animals
  • Recreation and Hobbies
  • Reference
  • Science
  • Shopping
  • Sports
  • Travel
  • Adult

Account balance information

GEThttps://user.whoisxmlapi.com/service/account-balance?apiKey=YOUR_API_KEY
apiKey
Required. Get your personal API KEY on My products page.
productId
Optional. A list of the products' IDs can be found in the response.

- You can always check your account balance on the My products page. - Note that the following products use the same WHOIS credits: WHOIS API, Bulk WHOIS API, Domain Availability API. - Note that the following products use the same Domain Research Suite credits: Brand Alert API, Registrant Alert API, Reverse WHOIS API, WHOIS History API, Reverse IP/DNS API, Reverse MX API, Reverse NS API.

List of possible errors

403 Forbidden
Access restricted. Check credits balance or enter the correct API key.
422 Unprocessable Entity
Input correct domain name.
429 Too Many Requests
Too Many Requests. Try your call again later.
5XX
Internal server error. Try your call again or contact us.
Try our Website Categorization API for free
Get started
Have questions?

We work hard to improve our services for you. As part of that, we welcome your feedback, questions and suggestions. Please let us know your thoughts and feelings, and any way in which you think we can improve our product.

For a quick response, please select the request type that best suits your needs. For more info regarding the request types, see the Contact us page.

Or shoot us an email to