216.73.216.93
City: Columbus
State/Region: OH
Country: US
Coordinates:
Latitude: 39.9625
Longitude: -83.0061
The area code lookup service is available programmatically via a JSON API endpoint. This allows you to integrate area code lookups into your applications.
https://blacksector.org/utils/area_code.php
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. |
https://blacksector.org/utils/area_code.php?ip=74.63.151.160
{
"areaCodes": ["212"],
"location": {
"city": "New York",
"state": "NY",
"country": "US"
}
}
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. |