Domain Availability Check Code Examples

Domain Intelligence and Analysis
POST /api/v1/domain/check Bearer

Ready-to-run Domain Availability Check calls. Replace YOUR_API_KEY with the key from your dashboard.

Domain Availability Check — Code Samples

cURL
PHP
Fetch
jQuery
Axios
Python
curl -X POST https://app.way2api.com/api/v1/domain/check \
  -H "Authorization: Bearer YOUR_API_KEY" \
  -H "Content-Type: application/json" \
  -d '{"domain":"example.com"}'

Expected Response — 200

{
    "status": "SUCCESS",
    "status_code": 200,
    "charged": true,
    "success": true,
    "message": "",
    "message_code": "OK",
    "order_id": "W2A1739512345abcdef01",
    "data": {
        "order_id": "W2A1739512345abcdef01",
        "result": {
            "domain": "example.com",
            "available": false,
            "registrar": "Example Registrar",
            "expires": "2027-01-01"
        }
    }
}