Every API here is available over the APIs.io API and to AI agents over MCP.
MCP server
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
Tools for apis
7 MCP tools reach this
find_apisBrowse and filter every API in the catalog.
get_api_artifactsOne API's artifacts, grouped by type.
get_openapiThe primary OpenAPI for this API.
find_similar_apisAPIs that look like this one.
apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
resolveTurn a domain, URL or GitHub org into the provider it belongs to.
find_cohortsEvery scored population of providers in the catalog.
All 92 tools →
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/ip-api-io:ip-api-io-risk-score-api-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
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.
A second provider on the same verified email joins the account you already have.
openapi: 3.2.0
info:
title: IP-API.io - IP Geolocation & Security Risk Score 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: Risk Score API
description: 'Advanced fraud detection API that calculates risk scores for IP addresses and email addresses.
**Risk Score Range**: 0.0-1.0 (higher = more risky)
- 0.8-1.0: Very High Risk (immediate review recommended)
- 0.6-0.8: High Risk (enhanced verification required)
- 0.4-0.6: Medium Risk (standard verification)
- 0.2-0.4: Low Risk (minimal verification)
- 0.0-0.2: Very Low Risk (trusted)
**Analysis Factors**:
- IP: VPN/Proxy detection, Tor nodes, datacenter hosting, spam history, threat intelligence
- Email: Disposable providers, syntax validation, domain reputation, MX record verification
**Rate Limiting**: API calls are rate-limited per client IP or API key to ensure fair usage.'
paths:
/api/v1/risk-score:
get:
tags:
- Risk Score API
summary: Calculate risk score from client IP
description: 'Automatically detects and analyzes the client''s IP address from the HTTP request.
**IP Detection Order**:
1. X-Real-IP header (preferred for load balancers/proxies)
2. RemoteAddr from servlet request
**Use Cases**:
- Real-time fraud detection during user sessions
- Account creation risk assessment
- Transaction monitoring without explicit IP parameter
**Returns**: Complete risk score analysis with risk factors breakdown'
operationId: getRiskScoreFromRequest
responses:
'200':
description: Risk score calculated successfully
content:
application/json:
schema:
$ref: '#/components/schemas/RiskScoreV1Dto'
'400':
description: Bad Request - Unable to extract valid IP address from request headers
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 - Risk score calculation failed
content:
'*/*':
schema:
$ref: '#/components/schemas/RiskScoreV1Dto'
/api/v1/risk-score/{ip}:
get:
tags:
- Risk Score API
summary: Calculate risk score for specific IP address
description: 'Analyzes a specific IP address with optional email correlation for enhanced fraud detection.
**IP Analysis Includes**:
- Network type classification (residential, datacenter, mobile)
- Anonymization service detection (VPN, proxy, Tor)
- Threat intelligence feeds (spam, malware, botnet)
- Geographic anomaly detection
- Historical behavior patterns
**Combined Analysis** (when email provided):
- Cross-reference IP and email reputation
- Account takeover risk assessment
- Multi-factor fraud indicators
**Response Time**: Typically < 200ms for cached results, < 1s for new lookups'
operationId: getRiskScoreWithIp
parameters:
- name: ip
in: path
description: Target IP address for risk score analysis. Supports both IPv4 (e.g., 203.0.113.1) and IPv6 (e.g., 2001:db8::1) formats. Private IP ranges (10.x.x.x, 192.168.x.x, 172.16-31.x.x) will return limited analysis.
required: true
schema:
type: string
example: 203.0.113.195
- name: email
in: query
description: Optional email address for combined IP+email risk analysis. When provided, enables cross-correlation between IP and email reputation, account takeover detection, and enhanced fraud scoring. Must be a valid email format.
required: false
schema:
type: string
example: suspicious.user@tempmail.com
responses:
'200':
description: Risk score calculated successfully with detailed factor breakdown
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 address format valid but not analyzable (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 - Risk score calculation failed
content:
'*/*':
schema:
$ref: '#/components/schemas/RiskScoreV1Dto'
/api/v1/risk-score/email/{email}:
get:
tags:
- Risk Score API
summary: Calculate risk score for email address
description: 'Performs comprehensive email-based fraud analysis without IP correlation.
**Email Analysis Includes**:
- Syntax validation (RFC 5322 compliance)
- Domain verification (MX record validation)
- Disposable email service detection (10k+ providers)
- Free email provider identification
- Domain reputation scoring
- Typosquatting detection
- Recently created domain analysis
**Use Cases**:
- Account registration validation
- Email-based fraud prevention
- Marketing list cleaning
- Customer verification workflows
**Data Sources**: Real-time lookups against multiple threat intelligence feeds'
operationId: getRiskScoreWithEmail
parameters:
- name: email
in: path
description: Email address for comprehensive trust analysis. Must be a valid email format (user@domain.tld). The system will validate syntax, check domain reputation, detect disposable email services, and assess overall risk. International domains and IDN (Internationalized Domain Names) are supported.
required: true
schema:
type: string
example: john.doe@legitbusiness.com
responses:
'200':
description: Email risk score calculated successfully with validation details
content:
application/json:
schema:
$ref: '#/components/schemas/RiskScoreV1Dto'
'400':
description: Bad Request - Invalid email address format or missing email parameter
content:
'*/*':
schema:
$ref: '#/components/schemas/RiskScoreV1Dto'
'422':
description: Unprocessable Entity - Email format valid but domain unresolvable
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 - Email analysis 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)