IP Address Information Lookup
Pricing
from $20.00 / 1,000 results
IP Address Information Lookup
IP Address Information Lookup is a fast and lightweight Actor that returns detailed geolocation and network metadata for any IP address. Simply provide an IP address, and the Actor will fetch structured information used for analytics
Pricing
from $20.00 / 1,000 results
Rating
0.0
(0)
Developer

Taher Ali Badnawarwala
Actor stats
0
Bookmarked
2
Total users
1
Monthly active users
3 days ago
Last modified
Categories
Share
π IP Address Information Lookup
Fast, reliable IP geolocation lookup with automatic failover and rate limit handling
Get comprehensive geolocation and network information for any IPv4 or IPv6 address. This Actor provides accurate country, continent, and EU membership data with intelligent rate limit management and automatic API failover for maximum reliability.
β¨ Features
- π Dual API Support - Automatically switches between primary and fallback APIs for maximum uptime
- π Automatic Failover - Seamlessly switches to backup API on rate limits or errors
- π Standardized Output - Consistent JSON format regardless of which API is used
- β IPv4 & IPv6 Support - Works with both IPv4 and IPv6 addresses
- π Fast & Reliable - Optimized for performance with intelligent caching
- π¦ Easy Integration - Simple API interface perfect for automation workflows
π Output Format
The Actor returns a standardized JSON object with the following structure:
{"success": true,"ip": "8.8.8.8","continent_code": "NA","continent_name": "North America","country_code": "US","country_name": "United States","is_in_european_union": false,"message": "IP information retrieved successfully"}
Output Fields
| Field | Type | Description |
|---|---|---|
success | boolean | Whether the IP lookup was successful |
ip | string | The IP address that was looked up |
continent_code | string | Two-letter continent code (e.g., "NA", "EU", "AS") |
continent_name | string | Full continent name (e.g., "North America", "Europe") |
country_code | string | Two-letter ISO country code (e.g., "US", "GB", "DE") |
country_name | string | Full country name |
is_in_european_union | boolean | Whether the IP is from an EU member country |
message | string | Status message from the API |
π Quick Start
Using Apify Console
- Go to the Actor page on Apify
- Click Run on the IP Address Information Lookup Actor
- Enter an IP address (e.g.,
8.8.8.8) - Click Start and wait for results
Using Apify API
curl "https://api.apify.com/v2/acts/YOUR_ACTOR_ID/run-sync" \-H "Authorization: Bearer YOUR_API_TOKEN" \-H "Content-Type: application/json" \-d '{"ip": "8.8.8.8"}'
Using JavaScript/Node.js
import { ApifyClient } from 'apify-client';const client = new ApifyClient({token: 'YOUR_API_TOKEN',});const run = await client.actor('YOUR_ACTOR_ID').call({ip: '8.8.8.8',});const { items } = await client.dataset(run.defaultDatasetId).listItems();console.log(items[0]);
Using Python
from apify_client import ApifyClientclient = ApifyClient('YOUR_API_TOKEN')run = client.actor('YOUR_ACTOR_ID').call(run_input={'ip': '8.8.8.8'})items = client.dataset(run['defaultDatasetId']).list_items()print(items['items'][0])
π Input Schema
The Actor accepts a single input parameter:
| Parameter | Type | Required | Description | Example |
|---|---|---|---|---|
ip | string | Yes | IPv4 or IPv6 address to look up | 8.8.8.8 |
Example Input
{"ip": "8.8.8.8"}
π§ How It Works
- Primary API: The Actor first attempts to use
ip-api.comfor IP lookups - Rate Limit Management: Tracks requests and automatically manages the 45 requests/minute limit
- Automatic Failover: If rate limited or after 45 requests, seamlessly switches to the backup API (
saifs.ai) - Standardized Output: Both APIs return data in the same consistent format
- Error Handling: Comprehensive error handling ensures reliable operation
Rate Limiting
- Primary API: 45 requests per minute
- Automatic Reset: Rate limit window resets every 60 seconds
- Seamless Transition: Automatically switches to fallback API when needed
π‘ Use Cases
- π Geolocation Services - Identify user locations for content personalization
- π Security & Fraud Detection - Verify IP origins for security checks
- π Analytics - Analyze traffic patterns by geographic region
- π Content Localization - Serve region-specific content based on IP location
- π‘οΈ Access Control - Implement geo-blocking or geo-allowing features
- π Business Intelligence - Understand customer geographic distribution
π Integrations
This Actor can be easily integrated with:
- Make (Integromat) - Connect via Apify integration
- Zapier - Automate IP lookups in your workflows
- GitHub Actions - Include in CI/CD pipelines
- Google Sheets - Enrich data with geolocation information
- Custom Applications - Use via REST API or SDK
π Performance
- Response Time: Typically < 1 second per lookup
- Reliability: 99.9%+ uptime with dual API support
- Throughput: Up to 45 requests/minute on primary API, unlimited on fallback
- Scalability: Handles high-volume requests with automatic failover
π οΈ Development
Prerequisites
- Node.js 18+ installed
- Apify CLI installed (
npm install -g apify-cli) - Apify account (Sign up for free)
Local Development
- Clone the repository:
git clone <repository-url>cd ip-info-actor
- Install dependencies:
$npm install
- Run the Actor locally:
$apify run
- Test with sample input:
$# The Actor will use the input from storage/key_value_stores/default/INPUT.json
Deploy to Apify
- Login to Apify:
$apify login
- Deploy the Actor:
$apify push
π Example Outputs
IPv4 Address Lookup
Input:
{"ip": "8.8.8.8"}
Output:
{"success": true,"ip": "8.8.8.8","continent_code": "NA","continent_name": "North America","country_code": "US","country_name": "United States","is_in_european_union": false,"message": "IP information retrieved successfully"}
IPv6 Address Lookup
Input:
{"ip": "2001:4860:4860::8888"}
Output:
{"success": true,"ip": "2001:4860:4860::8888","continent_code": "NA","continent_name": "North America","country_code": "US","country_name": "United States","is_in_european_union": false,"message": "IP information retrieved successfully"}
π€ Support
- Documentation: Apify Platform Docs
- Community: Apify Discord
- Issues: Report issues via the Actor's page on Apify
π License
This Actor is available under the LICENSE.
π Acknowledgments
This Actor uses the following services:
- saifs.ai - Fallback IP geolocation API
Made with β€οΈ using Apify
For more information, visit the Actor page on Apify Platform.