How do I authenticate with this API?
Create an API key in your Datpaq dashboard and send it with each request as a bearer token in the Authorization header.
Validate IPv4, IPv6, and CIDR addresses with full classification — private, reserved, loopback, multicast, link-local, bogon. Sub-millisecond per IP, batches up to 100.
Why Validate IP API
/api/v1/validate-ip
One validation route does the work, plus standard ops endpoints. Single IP or batch — same endpoint.
| Parameter | Type | Required | Description |
|---|---|---|---|
| ip | string | array | yes | IPv4, IPv6, or CIDR. GET: comma-separated for batch. POST: array for batch. Max 100. |
| api_key | string | yes | API key via query string. Alternatively pass as x-api-key header. |
Identical response shape for single and batch — easier to handle downstream.
GET https://datpaq.com/api/v1/validate-ip/validate?api_key=YOUR_API_KEY&ip=192.168.1.1
POST https://datpaq.com/api/v1/validate-ip/validate
Content-Type: application/json
{
"ip": [
"8.8.8.8",
"127.0.0.1",
"192.168.1.0/24",
"2001:db8::1",
"invalid.ip.address"
]
}Error reference
Individual invalid IPs inside a batch return per-item error rows rather than failing the whole call.
{
"error": "Missing ip input (string or comma-separated list)",
"correlationId": "validate-error123"
}FAQ
Create an API key in your Datpaq dashboard and send it with each request as a bearer token in the Authorization header.
Yes. Datpaq APIs include a free tier for building, testing, and small production workloads before you move to a paid plan.
Datpaq APIs use REST over HTTPS and return JSON by default. Endpoint docs show the supported methods, query parameters, request bodies, and response fields.
Each API documents rate limits, validation rules, and error responses in the landing page and API docs so integrations can retry and fail cleanly.
A pre-processing step that strips bogons and reserved ranges before they reach your expensive geo/intel pipelines.