ASN API

API reference

ASN HTTP endpoints on api.syndaq.com.

All ASN endpoints are served from https://api.syndaq.com/v1/asn/.

Authenticated requests require a valid ASN key. Lookup routes require your as_sec_ secret key.

Endpoints overview

MethodPathAuthPurpose
GET/v1/asn/lookupSecret keyLookup by ?ip= query parameter
GET/v1/asn/lookup/{ip}Secret keyLookup by IP in the URL path
GET/v1/asn/statusPublic or secret keyPlan limits and quota snapshot

Response headers

Successful and error responses may include:

HeaderDescription
X-Request-IdUnique ID for support and log correlation
X-RateLimit-LimitPlan requests per minute for this key
X-RateLimit-RemainingRequests left in the current minute window
X-RateLimit-ResetUnix timestamp when the minute window resets
X-Quota-LimitMonthly quota for the subscription
X-Quota-RemainingLookups left this calendar month (UTC)
X-Quota-PeriodCurrent quota month (YYYY-MM)
Retry-AfterSeconds to wait after HTTP 429

GET /v1/asn/lookup

Returns ASN and network classification for a single public IP address.

Request

Pass the target IP using one of these forms:

GET /v1/asn/lookup/8.8.8.8
GET /v1/asn/lookup?ip=8.8.8.8

Both IPv4 and IPv6 are supported. IPv6 addresses in the path should be URL-encoded.

Headers:

Authorization: Bearer as_sec_YOUR_SECRET_KEY

Success response (200)

{
  "success": true,
  "ip": "8.8.8.8",
  "cached": true,
  "fetched_at": "2026-07-15 12:00:00.000",
  "asn": 15169,
  "as_org": "GOOGLE, US",
  "network": "8.8.8.0/24",
  "country_code": "US",
  "registry": "arin",
  "allocated": "1992-12-01",
  "network_type": "hosting",
  "request_id": "e6d04020be9b57b1e1069d6e483c0443"
}

Network type values

network_type is a lightweight heuristic based on organization name keywords:

ValueTypical signals
hostinghosting, cloud, vps, datacenter, colocation
educationuniversity, edu
governmentgovernment, gov
isptelecom-style orgs that are not classified above
unknownNo clear match

Treat network_type as a coarse hint for fraud and access control, not a definitive industry classification.

Response fields

FieldTypeDescription
ipstringNormalized IP that was looked up
cachedbooleantrue when Syndaq already holds a recent result for this lookup
fetched_atstringWhen this result was last retrieved
asninteger \nullAutonomous system number
as_orgstring \nullAS organization name
networkstring \nullAnnounced prefix / CIDR covering the IP
country_codestring \nullISO country code when available
registrystring \nullRIR label when available (for example arin)
allocatedstring \nullAllocation date string when available
network_typestringhosting, isp, education, government, or unknown

GET /v1/asn/status

Returns key status, plan limits, and quota usage without performing a lookup.

Request

GET /v1/asn/status
Authorization: Bearer as_sec_YOUR_SECRET_KEY

The public key (as_pub_) is accepted on this route.

Success response (200)

{
  "success": true,
  "status": "active",
  "product": "asn",
  "plan": "starter",
  "rate_limit_per_minute": 120,
  "monthly_quota": 10000,
  "quota_unlimited": false,
  "quota_remaining": 9842,
  "quota_period": "2026-07",
  "database_records": 210000
}

Errors

Failed requests return JSON with success: false, error, error_code, and usually request_id.

HTTPerror_codeTypical cause
400invalid_ipMissing or malformed IP address
401missing_credentialsNo API key provided
401invalid_api_keyUnknown, inactive, or revoked key
401wrong_key_typePublic key used on a lookup endpoint
403ip_not_allowedCaller IP not on the key allowlist
422ip_not_routablePrivate, reserved, or non-routable IP
429rate_limit_exceededPer-minute limit exceeded
429quota_exceededMonthly quota exhausted
502lookup_failedTemporary lookup failure
500internal_errorUnexpected server error

Handle non-200 responses in your application and retry transient errors with exponential backoff.