Indiwtf sekarang tersedia dalam bentuk CLI dan Telegram Bot

Indiwtf API

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

Endpoint

GET https://indiwtf.upset.dev/api/check

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
{
  "domain": "reddit.com",
  "status": "blocked",
  "ip": "36.86.63.185"
}

When a domain is not blocked:

GET /api/check?domain=upset.dev
{
  "domain": "upset.dev",
  "status": "allowed",
  "ip": "76.76.21.21"
}

Errors

The API may return the following error responses:

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}: {error}
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}: {error}"
}