Alles, was Sie für die Integration von OpenIPApi in Ihre Anwendung benötigen. Basis-URL: https://api.openipapi.com (versioniert als /v1).
threat_score und VPN/Proxy/Tor-Flags sind Eingaben für Ihre Entscheidungslogik. Kombinieren Sie sie mit Konto-, Zahlungs-, Geräte- und Verhaltenssignalen — verwenden Sie sie niemals als alleinige Grundlage für Sperrungen. Details siehe Datenmethodik.
Alle API-Anfragen müssen Ihren API-Schlüssel im X-API-Key Anfrage-Header enthalten. Ihren API-Schlüssel finden Sie in der Konsole.
X-API-Key: oip_your_api_key_here
Alle API-Anfragen werden an folgende Basis-URL über HTTPS gesendet:
https://api.openipapi.com
Maschinenlesbare Spezifikation (OpenAPI 3.1): /openapi.yaml.
Alle Antworten sind JSON. Erfolgreiche Antworten geben HTTP 200.
Fehlerantworten geben einen passenden 4xx- oder 5xx-Statuscode mit einem error Feld zurück.
{
"error": "invalid_api_key",
"message": "The provided API key is invalid or has been revoked.",
"status": 401
}
Geolokalisierung, Netzwerk- und Threat-Daten für eine einzelne IP-Adresse abfragen.
https://api.openipapi.com/v1/lookup/{ip}
| Parameter | Typ | Beschreibung |
|---|---|---|
| ip | path | IPv4- oder IPv6-Adresse zum Nachschlagen. |
| fields | query (optional) | Kommagetrennte Liste der zurückzugebenden Top-Level-Felder: geo,network,threat,abuse. |
| date | query (optional) | Historische Abfrage — den Snapshot für diese IP am angegebenen Datum zurückgeben (YYYY-MM-DD). Bis zu 365 Tage zurück. Erfordert Pro+. Gibt einen no_snapshot Fehler zurück, wenn für dieses Datum keine Daten verfügbar sind. |
| Feld | Beschreibung | Plan |
|---|---|---|
| ip | The queried IP address. | All |
| type | IPv4 or IPv6. | All |
| geo.country_code | 2-letter ISO 3166-1 country code. | All |
| geo.country | Full country name. | All |
| geo.region | Region / state name. | All |
| geo.region_code | Region / state code. | All |
| geo.city | City name. | All |
| geo.postal_code | Postal / ZIP code. | All |
| geo.latitude | Latitude (decimal degrees). | All |
| geo.longitude | Longitude (decimal degrees). | All |
| geo.timezone | IANA timezone identifier (e.g. Europe/Berlin). | All |
| geo.is_sanctioned | True if the country is on OFAC, EU, or UN sanction lists. | All |
| geo.sanction_lists | Array of applicable sanction programs, e.g. ["OFAC","EU"]. | All |
| network.asn | Autonomous System Number. | Starter+ |
| network.as_name | AS organisation name. | Starter+ |
| network.as_domain | AS organisation domain. | Starter+ |
| network.isp | Internet Service Provider name. | All |
| network.organization | Network organisation name. | All |
| network.connection_type | residential, datacenter, mobile, education, or government. | All |
| threat.is_vpn | True if the IP is a known VPN endpoint. | Pro+ |
| threat.is_proxy | True if the IP is a known open proxy. | Pro+ |
| threat.is_tor | True if the IP is a Tor exit node. | Pro+ |
| threat.is_relay | True if the IP is an anonymous relay. | Pro+ |
| threat.is_hosting | True if the IP belongs to a hosting provider. | Pro+ |
| threat.threat_score | Composite risk score 0–100. A signal, not a final verdict — combine with account, payment, device and behavior data. | Pro+ |
| threat.threat_categories | Array of threat category strings. | Pro+ |
| threat.bot_type | Verified bot identifier (e.g. "googlebot", "bingbot") or null. Verified via reverse-DNS + forward confirmation. | All |
| abuse.contact_email | Abuse contact email from WHOIS data. | Pro+ |
$ curl https://api.openipapi.com/v1/lookup/185.220.101.45 \
-H "X-API-Key: oip_your_api_key_here"
{
"ip": "185.220.101.45",
"type": "IPv4",
"geo": {
"country_code": "DE",
"country": "Germany",
"region": "Hessen",
"region_code": "HE",
"city": "Frankfurt am Main",
"postal_code": "60313",
"latitude": 50.1109,
"longitude": 8.6821,
"timezone": "Europe/Berlin",
"is_sanctioned": false,
"sanction_lists": []
},
"network": {
"asn": 205100,
"as_name": "F3 Netze e.V.",
"as_domain": "f3netze.de",
"isp": "F3 Netze",
"organization": "F3 Netze e.V.",
"connection_type": "datacenter"
},
"threat": {
"is_vpn": true,
"is_proxy": false,
"is_tor": true,
"is_relay": false,
"is_hosting": true,
"threat_score": 85,
"threat_categories": ["tor_exit_node", "known_abuser"],
"bot_type": null
},
"abuse": {
"contact_email": "abuse@f3netze.de"
}
}
Mehrere IP-Adressen in einer einzigen Anfrage nachschlagen. Die Batch-Größenlimits hängen von Ihrem Plan ab.
https://api.openipapi.com/v1/lookup/batch
plan_required Fehler. | Plan | Maximale IPs pro Anfrage |
|---|---|
| Starter | 100 |
| Pro | 500 |
| Business | 1,000 |
| Enterprise | 5,000 |
{
"ips": [
"185.220.101.45",
"8.8.8.8",
"1.1.1.1"
]
}
Gibt ein umschlossenes Array vollständiger Lookup-Objekte zurück, in derselben Reihenfolge wie die Anfrage.
{
"results": [
{ "ip": "185.220.101.45", /* full lookup object */ },
{ "ip": "8.8.8.8", /* full lookup object */ },
{ "ip": "1.1.1.1", /* full lookup object */ }
],
"count": 3
}
Gibt Geolokalisierung und Threat-Daten für die IP-Adresse der Anfrage zurück. Nützlich für „Was ist meine IP?"-Features.
https://api.openipapi.com/v1/me
Die Antwort ist identisch mit GET /v1/lookup/{ip} mit der vorausgefüllten IP des Aufrufers.
$ curl https://api.openipapi.com/v1/me \
-H "X-API-Key: oip_your_api_key_here"
Detaillierte Informationen zu einer Autonomous-System-Nummer abrufen. Erfordert Starter-Plan oder höher.
https://api.openipapi.com/v1/asn/{asn}
Der asn Parameter akzeptiert sowohl 13335 als auch AS13335 Formate.
$ curl https://api.openipapi.com/v1/asn/13335 \
-H "X-API-Key: oip_your_api_key_here"
{
"asn": 13335,
"as_name": "Cloudflare, Inc.",
"as_domain": "cloudflare.com",
"organization": "Cloudflare, Inc.",
"country_code": "US",
"ip_ranges_count": 1284,
"total_ips": 2359296
}
Eine IP-Adresse validieren und ihren Typ bestimmen. Verbraucht kein Abfragekontingent.
https://api.openipapi.com/v1/validate/{ip}
{
"ip": "185.220.101.45",
"valid": true,
"type": "IPv4",
"private": false,
"bogon": false
}
Zusammengesetzter Fraud Score (0–100) mit Risikolevel und Handlungsempfehlung. Kombiniert VPN-, Proxy-, Tor-, Rechenzentrum- und historische Missbrauchs-Signale. Starter-Plan oder höher
https://api.openipapi.com/v1/fraud/{ip}
{
"ip": "185.220.101.45",
"fraud_score": 92,
"risk_level": "critical",
"signals": {
"is_vpn": true,
"is_proxy": false,
"is_tor": true,
"is_datacenter": true,
"is_known_attacker": true,
"high_risk_country": false
},
"recommendation": "block"
}
| Score | Risikolevel | Empfehlung | Typische Aktion |
|---|---|---|---|
| 0–30 | low | allow | Anfrage durchlassen |
| 31–60 | medium | review | Für manuelle Prüfung protokollieren |
| 61–85 | high | challenge | CAPTCHA / 2FA / Step-up-Auth verlangen |
| 86–100 | critical | block | Ablehnen und benachrichtigen |
Echtzeit-Netzwerkprobe-Daten von unseren über 60 aktiven Probing-Nodes: offene TCP-Ports, Service-Banner, Reverse DNS, vollständige TLS-Zertifikatsdetails (Subject, Issuer, SANs, Gültigkeit) und erkannte Service-Kategorien. Pro-Plan oder höher
https://api.openipapi.com/v1/probe/{ip}
"stale": true.{
"ip": "185.220.101.45",
"reachable": true,
"last_probed": "2026-04-18T14:23:11+00:00",
"age_hours": 2.3,
"stale": false,
"refresh_queued": false,
"probe_count_24h": 14,
"probed_from_nodes": 8,
"open_ports": [
{ "port": 22, "service": "ssh", "banner": "SSH-2.0-OpenSSH_8.9p1" },
{ "port": 80, "service": "http", "banner": "nginx/1.24.0" },
{ "port": 443, "service": "https", "banner": null },
{ "port": 9001, "service": "tor-relay", "banner": null }
],
"reverse_dns": "tor-exit.f3netze.de",
"tls": {
"subject_cn": "*.f3netze.de",
"issuer": "Let's Encrypt",
"valid_from": "2026-02-10T00:00:00Z",
"valid_to": "2026-05-10T00:00:00Z",
"sans": ["f3netze.de", "*.f3netze.de"],
"fingerprint": "7e:4f:...:b2:e1"
},
"banners": {
"22": "SSH-2.0-OpenSSH_8.9p1",
"80": "nginx/1.24.0"
},
"detected_services": {
"is_tor_relay": true,
"is_ssh_open": true,
"is_web_server": true,
"is_vpn": false,
"is_proxy": false
}
}
22 (ssh), 80 / 8080 (http), 443 / 8443 (https), 1080 (socks5), 3128 / 8888 (http-proxy), 9001 / 9030 (tor-relay / tor-dir), 9050 / 9150 (tor-socks), 1194 (openvpn), 4500 (ipsec-nat-t), 51820 (wireguard).
Identifiziert, ob eine IP zu einem bekannten Wohngebiet-Proxy-Pool, kommerziellen VPN oder Rechenzentrum-Range gehört. Im Gegensatz zu generischen is_proxy Flags ordnet dieser Endpunkt die IP dem spezifischen Provider zu (Bright Data, Oxylabs, NordVPN usw.) — entscheidend für Fraud-Teams, die bestimmte Provider erlauben und andere blockieren müssen. Proxy-Intel-Add-on
https://api.openipapi.com/v1/proxy-attribution/{ip}
{
"ip": "2.56.16.42",
"detected": true,
"primary_provider": {
"provider": "unknown_vpn",
"display_name": "Unknown VPN",
"network_type": "vpn",
"confidence": 0.75
},
"networks": [
{
"provider": "unknown_vpn",
"network_type": "vpn",
"confidence": 0.75,
"source": "x4bnet-vpn",
"cidr": "2.56.16.0/22"
},
{
"provider": "unknown_datacenter",
"network_type": "datacenter",
"confidence": 0.75,
"source": "x4bnet-datacenter"
}
],
"recommendation": "treat_as_vpn"
}
residential — Wohngebiet-Proxy-Pools (Bright Data, Oxylabs, Smartproxy, IPRoyal, Hola, Honeygain, EarnApp, Peer2Profit, SOAX)vpn — Kommerzielle VPN-Provider (NordVPN, ExpressVPN, Surfshark, Mullvad, ProtonVPN, PIA, IPVanish, CyberGhost)datacenter — Hosting-Provider, die häufig für kommerzielle Proxy-Exits genutzt werden (AWS, DigitalOcean, OVH, Hetzner usw.)tor — Tor-Exit-/Relay-Nodesmobile — Mobile-Carrier-Proxy-Pools| Empfehlung | Bedeutung |
|---|---|
| no_proxy_detected | IP keinem bekannten Pool zugeordnet — als normalen Traffic behandeln. |
| treat_as_commercial_proxy | IP in einem Wohngebiet-Proxy-Pool — wahrscheinlich bösartig auf Nicht-Scraping-Sites. |
| treat_as_vpn | IP in einem kommerziellen VPN-Range — VPN-Richtlinie anwenden. |
| treat_as_datacenter | IP aus einem Rechenzentrum-Range — kein echter Wohngebiet-Nutzer. |
| block_or_challenge | Tor-Exit — blockieren oder starke Authentifizierung verlangen. |
Gibt Nutzungsstatistiken des aktuellen Abrechnungszeitraums für Ihr Konto zurück.
https://api.openipapi.com/v1/account/usage
{
"plan": "Pro",
"period_start": "2026-03-01",
"period_end": "2026-03-31",
"lookups_used": 184320,
"lookups_limit": 500000,
"lookups_remaining": 315680,
"reset_at": "2026-04-01T00:00:00Z"
}
Listet MMDB-Datenbanken auf, die für Ihren Plan verfügbar sind. Drop-in-MaxMind .mmdb Ersatz für Offline-/Edge-Nutzung — funktioniert mit jedem MaxMind-DB-Reader (PHP, Go, Python, Node.js, Rust, Java).
https://api.openipapi.com/v1/database/list
{
"plan": "Business",
"sources": [
{
"source": "country",
"filename": "geo-whois-asn-country.mmdb",
"size_bytes": 8225621,
"updated_at": "2026-04-18T02:00:00+00:00",
"etag": "\"fa2b851f9155838b\"",
"download_url": "https://api.openipapi.com/v1/database/download/country"
}
]
}
Streamt die rohe MMDB-Datei. Unterstützt ETag +
If-None-Match für bedingte GETs (304 Not Modified, wenn die Datei unverändert ist). Rate-Limit: 10 Downloads pro Quelle pro Tag.
https://api.openipapi.com/v1/database/download/{source}
| Quelle | Inhalt | Lizenz | Erforderlicher Plan |
|---|---|---|---|
| country | Ländercode + ASN | CC0 | Pro |
| asn | ASN + Organisation | CC0 | Business |
| city-geolite2 | Stadt, Region, Lat/Lon, Zeitzone (GeoLite2) | MaxMind GeoLite2 EULA | Business |
| city-dbip | Stadt (Alternative zu GeoLite2) | DB-IP Lite | Enterprise |
# Download latest MMDB
$ curl -H "X-API-Key: YOUR_KEY" \
-o asn.mmdb \
https://api.openipapi.com/v1/database/download/asn
# Use with maxmind-db/reader
$ composer require maxmind-db/reader
<?php
use MaxMind\Db\Reader;
$reader = new Reader('asn.mmdb');
$record = $reader->get('8.8.8.8');
// ['autonomous_system_number' => 15169,
// 'autonomous_system_organization' => 'Google LLC']
Jede /v1/lookup Antwort enthält zwei Felder im geo Block, die angeben, ob das Land der IP internationalen Sanktionen unterliegt.
| Feld | Beschreibung |
|---|---|
| geo.is_sanctioned | true wenn das Land auf einer der überwachten Sanktionslisten erscheint; false andernfalls. |
| geo.sanction_lists | Array von Sanktionsprogramm-Kennungen, die gelten: OFAC, EU, UN, UK. Leeres Array [] wenn nicht sanktioniert. |
Erfasste Sanktionslisten: OFAC (USA), EU, UN-Sicherheitsrat, UK OFSI. Derzeit gekennzeichnete Länder umfassen Iran, Nordkorea, Russland, Belarus, Syrien, Kuba, Venezuela, Sudan und andere. Die Liste wird bei Programmänderungen gepflegt und aktualisiert.
"geo": {
"country_code": "IR",
"country": "Iran",
...
"is_sanctioned": true,
"sanction_lists": ["OFAC", "EU", "UN"]
}
OpenIPApi führt doppelte Reverse-DNS-Verifizierung durch, um legitime Crawler zu identifizieren. Das Ergebnis ist in threat.bot_type bei jeder Abfrage verfügbar.
| Feld | Werte |
|---|---|
| threat.bot_type |
null (kein verifizierter Bot) oder eines von: googlebot,
google_special_crawl,
bingbot,
applebot,
yandexbot,
duckduckbot,
facebookbot,
semrushbot,
ahrefsbot,
mj12bot
|
Verifizierungsmethode: (1) PTR-Lookup der IP → Hostname. (2) Hostname muss dem Bot-Domainmuster entsprechen (z. B. *.googlebot.com). (3) Forward-DNS auf dem Hostname muss zur ursprünglichen IP auflösen. Ergebnisse werden 24 Stunden gecacht.
"threat": {
"is_vpn": false,
"is_proxy": false,
"is_tor": false,
"threat_score": 0,
"bot_type": "googlebot"
}
Fügen Sie einen ?date=YYYY-MM-DD Parameter zu einer einzelnen IP-Abfrage hinzu, um den Snapshot von diesem Datum abzurufen.
https://api.openipapi.com/v1/lookup/{ip}?date=2026-01-15
$ curl "https://api.openipapi.com/v1/lookup/185.220.101.45?date=2026-01-15" \
-H "X-API-Key: oip_your_api_key_here"
{
"ip": "185.220.101.45",
"snapshot_date": "2026-01-15",
"is_historical": true,
"data": {
/* standard lookup response */
}
}
{
"error": "No historical snapshot available for this IP on 2026-01-15",
"code": "no_snapshot"
}
| Code | HTTP-Status | Beschreibung |
|---|---|---|
| invalid_api_key | 401 | Der API-Schlüssel fehlt, ist fehlerhaft oder wurde widerrufen. |
| limit_exceeded | 429 | Sie haben alle Abfragen im aktuellen Abrechnungszeitraum aufgebraucht. |
| plan_required | 403 | Das angeforderte Feature ist in Ihrem aktuellen Plan nicht verfügbar. |
| invalid_ip | 400 | Die angegebene IP-Adresse ist keine gültige IPv4- oder IPv6-Adresse. |
| not_found | 404 | Keine Daten für die angeforderte Ressource gefunden (z. B. unbekannte ASN). |
| no_snapshot | 404 | Für diese IP am angeforderten Datum existiert kein historischer Snapshot. |
| date_out_of_range | 400 | Das Datum der historischen Abfrage liegt mehr als 365 Tage in der Vergangenheit. |
| invalid_date | 400 | Der Datumsparameter fehlt, ist fehlerhaft oder liegt in der Zukunft. |
| plan_upgrade_required | 403 | Das angeforderte Feature erfordert einen höheren Plan. |
| rate_limited | 429 | Zu viele Anfragen in kurzer Zeit. Bitte warten und erneut versuchen. |
| internal_error | 500 | Ein unerwarteter Serverfehler ist aufgetreten. Kontaktieren Sie den Support, wenn das Problem bestehen bleibt. |
Zusätzlich zu den monatlichen Abfragekontingenten werden Anfragen pro API-Schlüssel mit einem gleitenden Fenster begrenzt. Bei Überschreitung gibt die API HTTP 429 mit einem Retry-After Header zurück.
| Plan | Anfragen / Minute | Abfragen / Monat |
|---|---|---|
| Free | 30 | 10,000 |
| Starter | 120 | 100,000 |
| Pro | 300 | 500,000 |
| Business | 600 | 2,000,000 |
| Enterprise | Custom | Unlimited |
Weitere Limits: /v1/validate (nicht authentifiziert) ist auf 60 Req/Min pro Aufrufer-IP begrenzt; /v1/me auf 30 Req/Min. MMDB-Downloads sind auf 10/Tag pro Quelle pro Konto begrenzt. Rate-Limit-Antworten enthalten Retry-After.
Webhooks ermöglichen Ihnen, Echtzeit-HTTP-POST-Benachrichtigungen zu empfangen, wenn sich der Status einer beobachteten IP ändert. Konfigurieren Sie sie in der Konsole → Webhooks, oder über die Dashboard-UI — kein API-Aufruf erforderlich.
| Ereignis | Auslösung wenn |
|---|---|
| vpn_detected | Eine beobachtete IP wird neu als VPN-Endpunkt erkannt. |
| tor_detected | Eine beobachtete IP erscheint auf einer Tor-Exit-Node-Liste oder wird als Tor-Relay geprobt. |
| proxy_detected | Eine beobachtete IP wird als offener oder SOCKS-Proxy erkannt. |
| high_threat | Threat Score überschreitet Ihren konfigurierten Schwellenwert (50–95). |
POST https://your-endpoint.example.com/webhook
Content-Type: application/json
User-Agent: OpenIPApi-Webhook/1.0
X-OpenIPApi-Event: high_threat
X-OpenIPApi-Signature: sha256=8c7f1a...b2e
{
"event": "high_threat",
"delivered_at": "2026-04-18T12:34:56Z",
"webhook_id": 142,
"data": {
"ip": "185.220.101.45",
"threat_score": 92,
"previous_score": 45,
"is_tor": true,
"is_vpn": true
}
}
Jeder Webhook wird mit HMAC-SHA256 des rohen JSON-Bodys mit Ihrem Webhook-Secret signiert. Die Signatur wird im X-OpenIPApi-Signature Header als sha256=<hex>.
gesendet. Immer vor dem Handeln auf Basis des Payloads verifizieren:
PHP
$body = file_get_contents('php://input');
$hdr = $_SERVER['HTTP_X_OPENIPAPI_SIGNATURE'] ?? '';
$expected = 'sha256=' . hash_hmac(
'sha256', $body, $webhookSecret
);
if (!hash_equals($expected, $hdr)) {
http_response_code(401);
exit;
}
// Safe to process $body now
Node.js (Express)
const crypto = require('crypto');
app.post('/webhook',
express.raw({ type: 'application/json' }),
(req, res) => {
const hdr = req.headers['x-openipapi-signature'];
const expected = 'sha256=' + crypto
.createHmac('sha256', process.env.WEBHOOK_SECRET)
.update(req.body).digest('hex');
if (expected !== hdr) return res.status(401).end();
// Process JSON.parse(req.body)
});
Ihr Endpunkt muss innerhalb von 10 Sekunden mit HTTP 2xx antworten, um den Empfang zu bestätigen. Jeder andere Status (oder Timeout) löst exponentielle Backoff-Wiederholungen aus: 1 Min., 5 Min., 30 Min., 2 Std., 12 Std. Nach dem letzten Versuch wird der Webhook als fehlgeschlagen markiert und ein Dashboard-Alert ausgelöst.
Die Konsole → Webhooks speichert die letzten 100 Lieferversuche pro Konto mit Ereignistyp, HTTP-Statuscode und der von Ihrem Endpunkt zurückgegebenen Antwort. Sie können wiederholen jede frühere Lieferung, um den originalen signierten Payload erneut zu senden, und den eingebauten Signatur-Debugger verwenden, um HMAC-SHA256-Signaturen clientseitig zu verifizieren, ohne Ihr Secret mit einem Server zu teilen.
Wiederholte Lieferungen enthalten einen zusätzlichen X-OpenIPApi-Replay: 1 Header, damit Ihr Endpunkt sie von Live-Ereignissen unterscheiden kann.
$ curl https://api.openipapi.com/v1/lookup/8.8.8.8 \
-H "X-API-Key: oip_your_api_key_here"
$ curl -X POST https://api.openipapi.com/v1/lookup/batch \
-H "X-API-Key: oip_your_api_key_here" \
-H "Content-Type: application/json" \
-d '{"ips": ["8.8.8.8", "1.1.1.1", "185.220.101.45"]}'
$ curl https://api.openipapi.com/v1/me \
-H "X-API-Key: oip_your_api_key_here"
const response = await fetch('https://api.openipapi.com/v1/lookup/8.8.8.8', {
headers: {
'X-API-Key': 'oip_your_api_key_here'
}
});
const data = await response.json();
console.log(data.geo.country); // "United States"
console.log(data.threat.is_vpn); // false
console.log(data.threat.threat_score); // 0
const response = await fetch('https://api.openipapi.com/v1/lookup/batch', {
method: 'POST',
headers: {
'X-API-Key': 'oip_your_api_key_here',
'Content-Type': 'application/json'
},
body: JSON.stringify({
ips: ['8.8.8.8', '1.1.1.1', '185.220.101.45']
})
});
const { results } = await response.json();
for (const info of results) {
console.log(info.ip, info.geo.city, info.threat.threat_score);
}
import requests
API_KEY = "oip_your_api_key_here"
headers = {"X-API-Key": API_KEY}
r = requests.get(
"https://api.openipapi.com/v1/lookup/8.8.8.8",
headers=headers
)
r.raise_for_status()
data = r.json()
print(data["geo"]["country"]) # United States
print(data["threat"]["is_vpn"]) # False
print(data["threat"]["threat_score"]) # 0
import requests
API_KEY = "oip_your_api_key_here"
headers = {
"X-API-Key": API_KEY,
"Content-Type": "application/json"
}
payload = {
"ips": ["8.8.8.8", "1.1.1.1", "185.220.101.45"]
}
r = requests.post(
"https://api.openipapi.com/v1/lookup/batch",
json=payload,
headers=headers
)
r.raise_for_status()
for info in r.json()["results"]:
print(info["ip"], info["geo"]["city"], info["threat"]["threat_score"])
10.000 kostenlose Abfragen pro Monat. Keine Kreditkarte erforderlich.
Kostenlosen API-Schlüssel holen