Indiwtf logo

Indiwtf API

Selamat datang di Indiwtf API, sebuah API sederhana untuk mengecek apakah sebuah website diblokir di Indonesia atau tidak.

Untuk dapat menggunakan Indiwtf API, Anda akan memerlukan API Token yang dapat Anda dapatkan melalui halaman Pricing.

Endpoint

GET https://indiwtf.com/api/check?token=YOUR_API_TOKEN

Query Parameters

Parameter: domain
Type: string
Description: The domain to check.

Responses

The API returns a JSON response with the following structure:

When a domain is blocked:

GET /api/check?domain=reddit.com&token=YOUR_API_TOKEN
{
  "domain": "reddit.com",
  "status": "blocked",
  "ip": "36.86.63.185"
}

When a domain is not blocked:

GET /api/check?domain=google.com&token=YOUR_API_TOKEN
{
  "domain": "google.com",
  "status": "allowed",
  "ip": "216.239.38.120"
}

Errors

The API may return the following error responses:

Error Message: Invalid API token
HTTP Status: 401 Unauthorized
Description: The API token provided appears to be invalid or incorrect, please double-check and ensure it is accurate.
{
  "error": "Invalid API token"
}
Error Message: Invalid domain format
HTTP Status: 400 Bad Request
Description: The provided domain has an invalid format.
{
  "error": "Invalid domain format"
}
Error Message: Error resolving IP address for {domain}
HTTP Status: 500 Internal Server Error
Description: An error occurred while resolving the IP address for the domain.
{
  "error": "Error resolving IP address for {domain}"
}