Skip to main content

HTTP API

Make your first API request.

Configure your project key, choose a published API, and send a request from your backend.

1. Configure your project key

Create a project API key in Console and store it in your server environment as ANTAPI_KEY.

Create an API key
Gateway
https://api.antapi.dev
Authentication
Authorization: Bearer $ANTAPI_KEY

Keep the key on your server or in a secret manager. The examples read ANTAPI_KEY from your environment.

2. Choose an API and operation

Registration status, registrar, expiry dates and nameservers in one JSON response. Look up one domain or process a list asynchronously.

$0.001 / domain · Product and pricing

3. Send your first request

Copy the cURL request and run it in your terminal after configuring your key. Requests use your organization’s balance and your project’s limits.

WHOIS · Look up domain registration
curl --request GET 'https://api.antapi.dev/whois/v1/domains/example.com' \
  --header "Authorization: Bearer $ANTAPI_KEY" \
  --header 'Idempotency-Key: <YOUR_SAVED_OPERATION_KEY>'

Replace sample inputs before sending. For paid work, save a unique operation key and replace <YOUR_SAVED_OPERATION_KEY>. Review the product guide for limits and recovery rules.