📞 Area Code Lookup

Find area codes by IP address location. Uses GeoIP data to determine the location and matches it with corresponding area code boundaries.

What to Enter:
  • IP address (or multiple, comma-separated)
  • Uses your IP if none provided
What You'll Get:
  • Location details (city, state)
  • Primary area code(s)
  • Overlay codes if present
  • Coordinates for verification
IP: 216.73.216.7
Location Information

City: Columbus

State/Region: OH

Country: US

Coordinates:
Latitude: 39.9625
Longitude: -83.0061

Area Codes
614 380

Programmatic Access

The area code lookup service is available programmatically via a JSON API endpoint. This allows you to integrate area code lookups into your applications.

Endpoint
https://blacksector.org/utils/area_code.php
Parameters
Parameter Type Required Description
ip string No IP address to look up. If not provided, the client's IP will be used.
debug boolean No Set to true to include additional debug information in the response.
Example Request
https://blacksector.org/utils/area_code.php?ip=216.73.216.7
Example Response
{
    "areaCodes": ["212"],
    "location": {
        "city": "New York",
        "state": "NY",
        "country": "US"
    }
}
Error Responses
Status Code Response Description
400 {"error": "Invalid IP address"} The provided IP address is invalid.
404 {"error": "Could not determine area code for this location"} No area codes found for the location (e.g., non-US/Canadian IP).
500 {"error": "Could not determine location"} Failed to determine location from the IP address.
Note: Area codes are only available for US and Canadian locations. Even within these regions, some IP addresses may not map to a specific area code due to various factors such as mobile networks, VPNs, or corporate networks.