API Documentation

Integrate CMS detection into your applications

Getting Started

The WhatCMS.org API allows you to programmatically detect the CMS of any website. Our RESTful API is easy to integrate and returns JSON responses.

Base URL

https://whatcms.org/api/v1

Authentication

Currently, our API is free to use without authentication. However, we recommend registering for an API key to get higher rate limits and priority support.

Detect CMS Endpoint

POST /api/detect

Detects the CMS used by a given website URL.

Request Parameters

Parameter Type Required Description
url string Required The website URL to analyze
api_key string Optional Your API key for higher rate limits

Example Request

POST /api/detect Content-Type: application/json { "url": "https://example.com" }

Example Response (Success)

{ "success": true, "cms": { "name": "WordPress", "icon": "wordpress.svg", "confidence": "High" }, "url": "https://example.com", "message": "CMS detected successfully!" }

Example Response (No CMS)

{ "success": true, "cms": null, "url": "https://example.com", "message": "No known CMS detected." }

Example Response (Error)

{ "success": false, "message": "Failed to fetch website. Status code: 404" }

Code Examples

JavaScript (Fetch API)

const response = await fetch('https://whatcms.org/api/detect', { method: 'POST', headers: { 'Content-Type': 'application/json' }, body: JSON.stringify({ url: 'https://example.com' }) }); const data = await response.json(); console.log(data);

PHP (cURL)

$ch = curl_init('https://whatcms.org/api/detect'); curl_setopt($ch, CURLOPT_RETURNTRANSFER, true); curl_setopt($ch, CURLOPT_POST, true); curl_setopt($ch, CURLOPT_POSTFIELDS, json_encode([ 'url' => 'https://example.com' ])); curl_setopt($ch, CURLOPT_HTTPHEADER, [ 'Content-Type: application/json' ]); $response = curl_exec($ch); $data = json_decode($response, true);

Python (Requests)

import requests response = requests.post( 'https://whatcms.org/api/detect', json={'url': 'https://example.com'} ) data = response.json() print(data)

Rate Limits

Without API Key: 60 requests per hour
With API Key: 1000 requests per hour

Support

Need help with the API? Contact us at api@whatcms.org or visit our documentation portal.