Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent
with a free APIs.io key —
sign in with
GitHub,
Google or
LinkedIn.
No form to fill in; signing in shares your email address with us (Privacy).
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. By signing up you are subscribing to the APIs.io and API Evangelist
newsletters — you can unsubscribe from any issue. See our
Privacy Policy and Terms.
openapi: 3.2.0
info:
title: IP-API.io - IP Geolocation & Security IP Reputation API
description: 'Comprehensive IP address intelligence API providing geolocation, security analysis, and network information.
Features:
- Real-time IP geolocation with city-level accuracy
- Advanced threat detection and security scoring
- VPN, proxy, and Tor node detection
- Email validation and reputation analysis
- Email / ip risk scoring for fraud prevention
Perfect for fraud prevention, security applications, content personalization, and compliance requirements.'
contact:
name: IP-API.io Support
url: https://ip-api.io
email: support@ip-api.io
license:
name: Commercial License
url: https://ip-api.io
version: 1.0.0
servers:
- url: https://ip-api.io
description: Production server
security:
- ApiKeyAuth: []
tags:
- name: IP Reputation API
description: 'Real-time IP reputation scoring that combines VPN, proxy, Tor, datacenter, and threat intelligence signals into a single composite score.
**Reputation Score Range**: 0.0–1.0 (displayed as 0–100; higher = worse reputation)
- 0.8–1.0: VERY_HIGH risk — block recommended
- 0.6–0.8: HIGH risk — challenge or enhanced verification
- 0.4–0.6: MEDIUM risk — standard verification
- 0.2–0.4: LOW risk — allow with monitoring
- 0.0–0.2: VERY_LOW risk — trusted
**Signals analysed**: VPN/proxy detection, Tor exit node membership, datacenter hosting, spam/abuse history, suspicious activity patterns.'
paths:
/api/v1/ip-reputation/{ip}:
get:
tags:
- IP Reputation API
summary: Check IP address reputation
description: 'Returns a composite reputation score and per-signal breakdown for any IPv4 or IPv6 address.
**Signals included in the score**:
- Proxy detection (HTTP/HTTPS/SOCKS proxies)
- VPN detection (commercial and self-hosted endpoints)
- Tor node membership (live Tor consensus data)
- Datacenter classification (AWS, GCP, Azure, and other hosting providers)
- Spam/abuse history (threat intelligence feeds)
- Suspicious activity patterns (behavioural anomalies)
**Response time**: Typically < 200 ms for cached results, < 1 s for new lookups.'
operationId: getIpReputation
parameters:
- name: ip
in: path
description: Target IP address. Supports IPv4 (e.g. 203.0.113.1) and IPv6 (e.g. 2001:db8::1). Private ranges return limited analysis.
required: true
schema:
type: string
example: 203.0.113.195
responses:
'200':
description: Reputation score calculated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/RiskScoreV1Dto'
'400':
description: Bad Request — invalid IP address format (must be valid IPv4 or IPv6)
content:
'*/*':
schema:
$ref: '#/components/schemas/RiskScoreV1Dto'
'422':
description: Unprocessable Entity — IP format valid but not analysable (e.g. private ranges)
content:
'*/*':
schema:
$ref: '#/components/schemas/RiskScoreV1Dto'
'429':
description: Too Many Requests — rate limit exceeded (check X-RateLimit-* headers)
content:
'*/*':
schema:
$ref: '#/components/schemas/RiskScoreV1Dto'
'500':
description: Internal Server Error — reputation calculation failed
content:
'*/*':
schema:
$ref: '#/components/schemas/RiskScoreV1Dto'
components:
schemas:
RiskScoreFactorsDto:
type: object
description: 'Comprehensive breakdown of factors contributing to the risk score calculation.
This object separates analysis results into IP-specific and email-specific factors,
allowing for granular understanding of what influenced the final risk score.
**Null Handling**:
- ip_factors: null when no IP was analyzed
- email_factors: null when no email was analyzed
**Score Calculation**: The final risk score is calculated by averaging the individual IP and email risk scores.'
example:
ip_factors:
is_proxy: false
is_tor_node: false
is_spam: true
is_vpn: false
is_datacenter: true
risk_contribution: 0.15
email_factors:
is_disposable: false
is_valid_syntax: true
risk_contribution: 0.0
properties:
ip_factors:
type: 'null'
$ref: '#/components/schemas/IpFactorsDto'
description: 'IP-specific risk factors and analysis results.
**Null when**: No IP address was provided for analysis
**Present when**: IP analysis was performed (from headers, path parameter, or query parameter)
Contains boolean flags for various IP characteristics and a numerical risk score.'
email_factors:
type: 'null'
$ref: '#/components/schemas/EmailFactorsDto'
description: 'Email-specific risk factors and validation results.
**Null when**: No email address was provided for analysis
**Present when**: Email analysis was performed (from path parameter or query parameter)
Contains validation results, reputation checks, and numerical risk score.'
IpFactorsDto:
type: object
description: 'Detailed IP address analysis results and risk factor indicators.
Each boolean field represents a specific characteristic or threat classification
of the IP address. The risk_contribution field shows the calculated risk score
for this IP address based on the detected factors.
**Detection Methods**: Advanced fingerprinting, BGP analysis, threat intelligence feeds,
behavioral pattern recognition, and real-time data lookups.'
example:
is_proxy: false
is_tor_node: false
is_spam: true
is_vpn: false
is_datacenter: true
risk_contribution: 0.15
properties:
is_proxy:
type: boolean
description: 'Indicates if the IP address is operating as a proxy server.
**Detection includes**:
- HTTP/HTTPS proxies
- SOCKS proxies (versions 4/5)
- Transparent proxies
- Elite/anonymous proxies
**Risk Level**: Medium - Often used to hide real identity'
example: false
is_tor_node:
type: boolean
description: 'Indicates if the IP address is part of the Tor anonymity network.
**Detection covers**:
- Tor exit nodes
- Tor relay nodes
- Tor bridge nodes
**Risk Level**: High - Strong anonymization, often blocked by services
**Data Source**: Real-time Tor consensus data'
example: false
is_spam:
type: boolean
description: 'Indicates if the IP address has been associated with spam or malicious email activity.
**Detection based on**:
- Email spam campaigns
- Malware command & control
- Phishing attacks
- Botnet activity
**Risk Level**: High - Strong indicator of malicious intent
**Update Frequency**: Real-time threat intelligence feeds'
example: true
is_vpn:
type: boolean
description: 'Indicates if the IP address belongs to a VPN (Virtual Private Network) service.
**Detection includes**:
- Commercial VPN providers
- Corporate VPN endpoints
- Self-hosted VPN servers
- VPN detection via traffic patterns
**Risk Level**: Medium - Legitimate privacy tool, but can hide true location
**Database Size**: 50M+ known VPN IP ranges'
example: false
is_datacenter:
type: boolean
description: 'Indicates if the IP address originates from a datacenter or cloud hosting provider.
**Provider types detected**:
- Cloud providers (AWS, GCP, Azure, etc.)
- Dedicated server hosts
- VPS providers
- Colocation facilities
**Risk Level**: Medium - Less likely to be residential users
**Use Cases**: Bot detection, residential verification'
example: true
risk_contribution:
type: number
format: double
description: "Risk score calculated for this IP address based on detected factors.\n\n**Value Range**: 0.0 to 1.0\n- **0.0**: No risk detected\n- **0.05-0.25**: Low to medium risk factors present \n- **0.25-0.6**: High risk factors detected\n- **0.6-1.0**: Multiple high-risk factors present\n\n**Calculation**: Weighted sum of detected risk factors:\n- Tor node: +0.25, Proxy: +0.25, Threat: +0.25\n- VPN: +0.2, Suspicious activity: +0.15 \n- Datacenter: +0.1, Spam source: +0.05"
example: 0.15
maximum: 1.0
minimum: 0.0
required:
- is_datacenter
- is_proxy
- is_spam
- is_tor_node
- is_vpn
- risk_contribution
RiskScoreV1Dto:
type: object
description: 'Comprehensive risk score response with detailed fraud analysis results.
This response provides a complete assessment of the trustworthiness of the provided IP address and/or email,
including a numerical score, risk classification, and detailed breakdown of all contributing factors.'
example:
score: 0.675
risk_level: HIGH
ip: 203.0.113.195
email: user@example.com
factors:
ip_factors:
is_proxy: false
is_tor_node: false
is_spam: true
is_vpn: false
is_datacenter: true
risk_contribution: 0.15
email_factors:
is_disposable: false
is_valid_syntax: true
risk_contribution: 0.0
properties:
score:
type: number
format: double
description: 'Risk score on a scale of 0.0-1.0, where higher values indicate greater risk.
**Score Ranges**:
- 0.8-1.0: Very High Risk (immediate manual review recommended)
- 0.6-0.8: High Risk (enhanced verification required)
- 0.4-0.6: Medium Risk (standard verification procedures)
- 0.2-0.4: Low Risk (low fraud probability)
- 0.0-0.2: Very Low Risk (trusted, minimal verification needed)
The score is calculated by averaging individual risk factor scores from IP and email analysis.
Risk factors are weighted based on their threat level and combined into a normalized score.'
example: 0.675
maximum: 1.0
minimum: 0.0
risk_level:
type: string
description: 'Human-readable risk classification derived from the numerical risk score.
**Risk Levels**:
- **VERY_HIGH** (0.8-1.0): Immediate attention required, high probability of fraud
- **HIGH** (0.6-0.8): Enhanced verification recommended, elevated fraud risk
- **MEDIUM** (0.4-0.6): Standard verification sufficient, moderate risk
- **LOW** (0.2-0.4): Minimal verification needed, low fraud probability
- **VERY_LOW** (0.0-0.2): Trusted, very low risk
This classification helps in automated decision-making and risk-based workflows.'
enum:
- VERY_LOW
- LOW
- MEDIUM
- HIGH
- VERY_HIGH
example: MEDIUM
ip:
type:
- string
- 'null'
description: 'The IP address that was analyzed for this risk score calculation.
**Null when**: Only email analysis was requested (using /email/{email} endpoint)
**Present when**: IP analysis was performed (either from request headers or explicit IP parameter)
Format can be IPv4 (e.g., 203.0.113.195) or IPv6 (e.g., 2001:db8::1)'
example: 203.0.113.195
email:
type:
- string
- 'null'
description: 'The email address that was analyzed for this risk score calculation.
**Null when**: Only IP analysis was requested (using root endpoint or /{ip} without email param)
**Present when**: Email analysis was performed (either via /email/{email} or as query parameter)
Always returned in lowercase, normalized format regardless of input casing.'
example: user@example.com
factors:
$ref: '#/components/schemas/RiskScoreFactorsDto'
description: 'Comprehensive breakdown of all factors that contributed to the final risk score.
This object contains detailed analysis results for both IP and email factors (when applicable),
including boolean flags for specific risk indicators and numerical risk scores.
Use these factors for:
- Detailed fraud investigation
- Custom risk rule implementation
- Audit trails and compliance reporting
- Understanding individual risk components'
required:
- factors
- risk_level
- score
EmailFactorsDto:
type: object
description: 'Email address analysis results and validation factors.
Provides comprehensive validation and reputation analysis for the email address,
including syntax verification, domain reputation, and disposable email detection.
**Validation Standards**: RFC 5322 compliance, domain verification, reputation scoring'
example:
is_disposable: false
is_valid_syntax: true
risk_contribution: 0.0
properties:
is_disposable:
type: boolean
description: 'Indicates if the email address uses a disposable or temporary email service.
**Disposable Email Services Detected**:
- Temporary email providers (10MinuteMail, TempMail, etc.)
- One-time use email generators
- Throwaway email services
- Self-destructing email addresses
**Risk Level**: High - Often used to bypass verification systems
**Database Coverage**: 10,000+ known disposable email domains
**Update Frequency**: Daily updates from multiple threat intelligence sources'
example: false
is_valid_syntax:
type: boolean
description: 'Indicates if the email address has valid syntax according to RFC 5322 standards.
**Validation Checks**:
- Proper @ symbol placement
- Valid local part (before @)
- Valid domain part (after @)
- Correct character usage
- Length limitations compliance
- Special character handling
**Standards Compliance**: RFC 5322, RFC 6532 (internationalized email)
**Note**: Syntax validation does not guarantee deliverability'
example: true
risk_contribution:
type: number
format: double
description: "Risk score calculated for this email address based on validation results.\n\n**Value Range**: 0.0 to 1.0\n- **0.0**: No risk detected (valid email with good reputation)\n- **0.4**: Disposable email service detected\n- **0.6**: Invalid email syntax detected \n- **1.0**: Multiple risk factors present (invalid + disposable)\n\n**Risk Factors**:\n- Invalid syntax: +0.6 risk score\n- Disposable email service: +0.4 risk score\n- Scores are capped at 1.0 maximum"
example: 0.4
maximum: 1.0
minimum: 0.0
required:
- is_disposable
- is_valid_syntax
- risk_contribution
securitySchemes:
ApiKeyAuth:
type: apiKey
in: query
name: api_key
description: API key (free key generated on signup at https://ip-api.io)