Search Autonomous Systems

GEThttps://api-ip-intelligence.dataandapis.com/v1/asns

Search Autonomous Systems is an endpoint of the IP Intelligence API. Country, ASN, datacenter, cloud and Tor detection with an explainable risk score for any IP.

Send your key in the X-Api-Key header. Each call costs 1 token; a free key includes 500 tokens a month.

Request

Query parameters

ParameterExample
countryDEOptional
limit20Optional
page1Optional
qhetznerOptional

Example request

curl
curl "https://api-ip-intelligence.dataandapis.com/v1/asns?country=DE&limit=20&page=1&q=hetzner" \
  -H "X-Api-Key: YOUR_API_KEY"
Node.js
const res = await fetch("https://api-ip-intelligence.dataandapis.com/v1/asns?country=DE&limit=20&page=1&q=hetzner", {
  headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();
Python
import os, requests

r = requests.get(
    "https://api-ip-intelligence.dataandapis.com/v1/asns?country=DE&limit=20&page=1&q=hetzner",
    headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()

Example response

Example response
{
  "ok": true,
  "total": 10,
  "page": 1,
  "limit": 5,
  "count": 5,
  "results": [
    {
      "asn": 13335,
      "organization": "CLOUDFLARENET",
      "registry_country": "US"
    },
    {
      "asn": 14789,
      "organization": "CLOUDFLARENET",
      "registry_country": "US"
    },
    {
      "asn": 132892,
      "organization": "CLOUDFLARE Cloudflare, Inc.",
      "registry_country": "US"
    },
    {
      "asn": 139242,
      "organization": "CSL-AS-AP Cloudflare Sydney, LLC",
      "registry_country": "US"
    },
    {
…
Show full response
{
  "ok": true,
  "total": 10,
  "page": 1,
  "limit": 5,
  "count": 5,
  "results": [
    {
      "asn": 13335,
      "organization": "CLOUDFLARENET",
      "registry_country": "US"
    },
    {
      "asn": 14789,
      "organization": "CLOUDFLARENET",
      "registry_country": "US"
    },
    {
      "asn": 132892,
      "organization": "CLOUDFLARE Cloudflare, Inc.",
      "registry_country": "US"
    },
    {
      "asn": 139242,
      "organization": "CSL-AS-AP Cloudflare Sydney, LLC",
      "registry_country": "US"
    },
    {
      "asn": 202623,
      "organization": "CLOUDFLARENET-CORE Cloudflare, Inc.",
      "registry_country": "US"
    }
  ]
}