Hosting Providers

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

Hosting Providers é um endpoint da IP Intelligence API. País, ASN, datacenter, nuvem e detecção de Tor com pontuação de risco explicável para qualquer IP.

Envie sua chave no header X-Api-Key. Cada chamada custa 1 token; uma chave gratuita inclui 500 tokens por mês.

Requisição

Este endpoint não recebe parâmetros.

Exemplo de requisição

curl
curl "https://api-ip-intelligence.dataandapis.com/v1/providers" \
  -H "X-Api-Key: YOUR_API_KEY"
JavaScript / TypeScript (pacote dataandapis)
// npm install dataandapis
import { DataAndApis } from "dataandapis";

const client = new DataAndApis(); // reads DATAANDAPIS_API_KEY

const data = await client.ipIntelligence.hostingProviders();
Node.js (fetch)
const res = await fetch("https://api-ip-intelligence.dataandapis.com/v1/providers", {
  headers: { "X-Api-Key": process.env.DATAANDAPIS_KEY },
});
const data = await res.json();
Python (pacote dataandapis)
# pip install dataandapis
from dataandapis import DataAndApis

client = DataAndApis()  # reads DATAANDAPIS_API_KEY

data = client.ip_intelligence.hosting_providers()
Python (requests)
import os, requests

r = requests.get(
    "https://api-ip-intelligence.dataandapis.com/v1/providers",
    headers={"X-Api-Key": os.environ["DATAANDAPIS_KEY"]},
)
data = r.json()

Guia do pacote npm dataandapis →Guia do pacote Python dataandapis →

Exemplo de resposta

Exemplo de resposta
{
  "ok": true,
  "count": 8,
  "providers": [
    {
      "provider": "Azure",
      "kind": "cloud",
      "ipv4_ranges": 44008,
      "ipv6_ranges": 16750,
      "total": 60758
    },
    {
      "provider": "AWS",
      "kind": "cloud",
      "ipv4_ranges": 10518,
      "ipv6_ranges": 6166,
      "total": 16684
    },
    {
      "provider": "GitHub",
      "kind": "cloud",
      "ipv4_ranges": 5981,
      "ipv6_ranges": 1642,
      "total": 7623
    },
    {
      "provider": "DigitalOcean",
      "kind": "cloud",
…
Ver resposta completa
{
  "ok": true,
  "count": 8,
  "providers": [
    {
      "provider": "Azure",
      "kind": "cloud",
      "ipv4_ranges": 44008,
      "ipv6_ranges": 16750,
      "total": 60758
    },
    {
      "provider": "AWS",
      "kind": "cloud",
      "ipv4_ranges": 10518,
      "ipv6_ranges": 6166,
      "total": 16684
    },
    {
      "provider": "GitHub",
      "kind": "cloud",
      "ipv4_ranges": 5981,
      "ipv6_ranges": 1642,
      "total": 7623
    },
    {
      "provider": "DigitalOcean",
      "kind": "cloud",
      "ipv4_ranges": 1080,
      "ipv6_ranges": 148,
      "total": 1228
    },
    {
      "provider": "Oracle",
      "kind": "cloud",
      "ipv4_ranges": 1107,
      "ipv6_ranges": 0,
      "total": 1107
    },
    {
      "provider": "GCP",
      "kind": "cloud",
      "ipv4_ranges": 997,
      "ipv6_ranges": 95,
      "total": 1092
    },
    {
      "provider": "Cloudflare",
      "kind": "cdn",
      "ipv4_ranges": 15,
      "ipv6_ranges": 7,
      "total": 22
    },
    {
      "provider": "Fastly",
      "kind": "cdn",
      "ipv4_ranges": 19,
      "ipv6_ranges": 2,
      "total": 21
    }
  ]
}