IP-API.io Usage Statistics API
API usage statistics and consumption history
API usage statistics and consumption history
Every API here is available over the APIs.io API and to AI agents over MCP.
One button, every client — Claude, Cursor, VS Code and the rest.
https://apis.io/mcp
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.curl "https://apis.io/api/v1/apis/ip-api-io:ip-api-io-usage-statistics-api"
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.
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 Usage Statistics 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: Usage Statistics
description: API usage statistics and consumption history
paths:
/api/v1/usage/summary:
get:
tags:
- Usage Statistics
summary: Get usage summary
description: 'Retrieves aggregated summary statistics for your API key within a specified date range.
Returns totals and averages without hourly breakdown, useful for dashboard overview.
**Authorization:** Requires valid API key.
**Example usage:**
```
GET /api/v1/usage/summary?api_key=YOUR_KEY&start_date=2025-11-01T00:00:00Z&end_date=2025-11-04T00:00:00Z
```'
operationId: getUsageSummary
parameters:
- name: api_key
in: query
description: Your API key
required: true
schema:
type: string
example: your-api-key-here
- name: start_date
in: query
description: Start date in ISO 8601 format (inclusive)
required: true
schema:
type: string
format: date-time
example: '2025-11-01T00:00:00Z'
- name: end_date
in: query
description: End date in ISO 8601 format (exclusive)
required: true
schema:
type: string
format: date-time
example: '2025-11-04T00:00:00Z'
- name: api_type
in: query
description: Filter by API type (optional)
required: false
schema:
type: string
enum:
- IP
- ADVANCED_EMAIL_VALIDATION
example: IP
responses:
'200':
description: Successfully retrieved usage summary
content:
application/json:
schema:
$ref: '#/components/schemas/ApiUsageSummary'
'401':
description: Invalid or missing API key
content:
'*/*':
schema:
type: object
'404':
description: No usage data found for this period
content:
'*/*':
schema:
type: object
/api/v1/usage/stats:
get:
tags:
- Usage Statistics
summary: Get detailed usage statistics
description: 'Retrieves hourly aggregated usage statistics for your API key within a specified date range.
Returns detailed breakdown of requests, quota consumption, and performance metrics.
**Authorization:** Requires valid API key.
**Example usage:**
```
GET /api/v1/usage/stats?api_key=YOUR_KEY&start_date=2025-11-01T00:00:00Z&end_date=2025-11-04T00:00:00Z&api_type=IP
```'
operationId: getUsageStats
parameters:
- name: api_key
in: query
description: Your API key
required: true
schema:
type: string
example: your-api-key-here
- name: start_date
in: query
description: Start date in ISO 8601 format (inclusive)
required: true
schema:
type: string
format: date-time
example: '2025-11-01T00:00:00Z'
- name: end_date
in: query
description: End date in ISO 8601 format (exclusive)
required: true
schema:
type: string
format: date-time
example: '2025-11-04T00:00:00Z'
- name: api_type
in: query
description: Filter by API type (optional)
required: false
schema:
type: string
enum:
- IP
- ADVANCED_EMAIL_VALIDATION
example: IP
responses:
'200':
description: Successfully retrieved usage statistics
content:
application/json:
schema:
$ref: '#/components/schemas/ApiUsageStatsModel'
'401':
description: Invalid or missing API key
content:
'*/*':
schema:
type: object
'400':
description: Invalid date range or parameters
content:
'*/*':
schema:
type: object
/api/v1/usage/recent:
get:
tags:
- Usage Statistics
summary: Get recent usage (last 24 hours)
description: 'Convenience endpoint to retrieve usage statistics for the last 24 hours.
Equivalent to calling /stats with start_date = now-24h and end_date = now.
**Authorization:** Requires valid API key.'
operationId: getRecentUsage
parameters:
- name: api_key
in: query
description: Your API key
required: true
schema:
type: string
- name: api_type
in: query
description: Filter by API type (optional)
required: false
schema:
type: string
enum:
- IP
- ADVANCED_EMAIL_VALIDATION
responses:
'200':
description: OK
content:
'*/*':
schema:
type: object
/api/v1/usage/current-month:
get:
tags:
- Usage Statistics
summary: Get current month usage summary
description: 'Convenience endpoint to retrieve aggregated usage for the current calendar month.
Useful for displaying monthly usage on dashboards.
**Authorization:** Requires valid API key.'
operationId: getCurrentMonthSummary
parameters:
- name: api_key
in: query
description: Your API key
required: true
schema:
type: string
- name: api_type
in: query
description: Filter by API type (optional)
required: false
schema:
type: string
enum:
- IP
- ADVANCED_EMAIL_VALIDATION
responses:
'200':
description: OK
content:
'*/*':
schema:
type: object
components:
schemas:
ApiUsageStatsModel:
type: object
properties:
id:
type:
- integer
- 'null'
format: int64
apiKey:
type: string
planId:
type: string
apiType:
type: string
authType:
type: string
hourBucket:
type: string
format: date-time
totalRequests:
type: integer
format: int32
successfulRequests:
type: integer
format: int32
rateLimitedRequests:
type: integer
format: int32
quotaConsumed:
type: integer
format: int32
peakRemainingQuota:
type:
- integer
- 'null'
format: int32
minRemainingQuota:
type:
- integer
- 'null'
format: int32
batchOperations:
type: integer
format: int32
batchTokensConsumed:
type: integer
format: int32
avgRequestDurationNanos:
type:
- integer
- 'null'
format: int64
createdAt:
type:
- string
- 'null'
format: date-time
updatedAt:
type:
- string
- 'null'
format: date-time
required:
- apiKey
- apiType
- authType
- batchOperations
- batchTokensConsumed
- hourBucket
- planId
- quotaConsumed
- rateLimitedRequests
- successfulRequests
- totalRequests
ApiUsageSummary:
type: object
properties:
apiKey:
type: string
apiType:
type: string
periodStart:
type: string
format: date-time
periodEnd:
type: string
format: date-time
totalRequests:
type: integer
format: int64
successfulRequests:
type: integer
format: int64
rateLimitedRequests:
type: integer
format: int64
quotaConsumed:
type: integer
format: int64
batchOperations:
type: integer
format: int64
avgRequestDurationMs:
type:
- number
- 'null'
format: double
required:
- apiKey
- apiType
- batchOperations
- periodEnd
- periodStart
- quotaConsumed
- rateLimitedRequests
- successfulRequests
- totalRequests
securitySchemes:
ApiKeyAuth:
type: apiKey
in: query
name: api_key
description: API key (free key generated on signup at https://ip-api.io)