Documentation Index
Fetch the complete documentation index at: https://docs.ip2geo.dev/llms.txt
Use this file to discover all available pages before exploring further.
This function allows you to list your conversions with pagination, filtering, and field selection, see an example below:
You should authenticate/initialize Ip2Geo before using this method.
import { ListConversions } from '@ip2geo/sdk'
const { data, success, message } = await ListConversions()
You can paginate through conversions using offset and limit:
import { ListConversions } from '@ip2geo/sdk'
const { data, success, message } = await ListConversions({
offset: 0,
limit: 20
})
// Access pagination info
console.log(data.conversions) // Array of conversions
console.log(data.hasMore) // true if there are more conversions
console.log(data.totalCount) // Total number of conversions
With IP Search
Filter conversions by IP address:
import { ListConversions } from '@ip2geo/sdk'
const { data, success, message } = await ListConversions({
ipSearch: '8.8.8.8'
})
With Select Fields
Select specific fields from the conversion data object:
import { ListConversions, SELECT } from '@ip2geo/sdk'
const { data, success, message } = await ListConversions({
select: [
SELECT.COUNTRY_NAME,
SELECT.COUNTRY_CODE,
SELECT.ASN_NAME
]
})
TypeScript
Ruby
Python
PHP
Parameters
The number of conversions to skip for pagination.
The maximum number of conversions to return. Maximum value is 50.
Select specific data fields to return. If not specified, all data fields are returned. See SELECT Constants for all available fields. Filter conversions by IP address.
Response
Whether the request was successful.
Response message describing the result.
The response data containing:
conversions: Array of conversion objects (or partial objects if select was used)
hasMore: Boolean indicating if there are more conversions to fetch
totalCount: Total number of conversions matching the query
Request metadata containing:
reqId: Unique request identifier.
resTime: Response time in milliseconds.
Parameters
The number of conversions to skip for pagination.
The maximum number of conversions to return. Maximum value is 50.
Select specific data fields to return. If not specified, all data fields are returned. See SELECT Constants for all available fields. Filter conversions by IP address.
Response
Whether the request was successful.
Response message describing the result.
The response data containing:
‘conversions’: Array of conversion hashes (or partial hashes if select was used)
‘hasMore’: Boolean indicating if there are more conversions to fetch
‘totalCount’: Total number of conversions matching the query
Request metadata containing:
‘reqId’: Unique request identifier.
‘resTime’: Response time in milliseconds.
Parameters
The number of conversions to skip for pagination.
The maximum number of conversions to return. Maximum value is 50.
Select specific data fields to return. If not specified, all data fields are returned. See SELECT Constants for all available fields. Filter conversions by IP address.
Response
Whether the request was successful.
Response message describing the result.
The response data containing:
‘conversions’: List of conversion dicts (or partial dicts if select was used)
‘hasMore’: Boolean indicating if there are more conversions to fetch
‘totalCount’: Total number of conversions matching the query
Request metadata containing:
‘reqId’: Unique request identifier.
‘resTime’: Response time in milliseconds.
Parameters
The number of conversions to skip for pagination.
The maximum number of conversions to return. Maximum value is 50.
Select specific data fields to return. If not specified, all data fields are returned. See SELECT Constants for all available fields. Filter conversions by IP address.
Response
Whether the request was successful.
Response message describing the result.
The response data containing:
‘conversions’: Array of conversion arrays (or partial arrays if select was used)
‘hasMore’: Boolean indicating if there are more conversions to fetch
‘totalCount’: Total number of conversions matching the query
Request metadata containing:
‘reqId’: Unique request identifier.
‘resTime’: Response time in milliseconds.
For all available SELECT constants and their values, see the SELECT Constants reference.