Skip to main content

MNP Lookup

Overview

Query mobile number portability (MNP) information to identify the current operator and network details for any phone number. The MNP Lookup API returns real-time network information including Mobile Country Codes (MCC), Mobile Network Codes (MNC), current operator, and porting status.

Use cases:

  • Verify routing before sending SMS to ensure delivery to the correct operator
  • Detect number porting to optimize routing and prevent delivery delays
  • Confirm network information for regulatory compliance
  • Identify operators for intelligent rate optimization
  • Validate numbers before bulk SMS campaigns

Making a Request

Endpoint

GET https://mnp.agiletelecom.com/services/mnp/number-lookup?msisdn=+39333123123

Authentication

Choose one of three supported methods:

  • Basic Auth: Provide your username and password encoded in the Authorization header
  • API Key: Include your API key in the X-Api-Key header
  • OAuth 1.1: Use OAuth 1.1 authentication in the Authorization header

Query Parameters

ParameterTypeDescription
msisdnstringThe telephone number to query. The leading "+" may be omitted, but you must include the country code. Examples: +39333123123 or 39333123123

Code Examples

# Using API Key authentication
curl -X GET "https://mnp.agiletelecom.com/services/mnp/number-lookup?msisdn=%2B39333123123" \
-H "X-Api-Key: YOUR_API_KEY"

# Using Basic Auth authentication
curl -X GET "https://mnp.agiletelecom.com/services/mnp/number-lookup?msisdn=%2B39333123123" \
-H "Authorization: Basic $(echo -n 'username:password' | base64)"

Success Response (2XX)

When the lookup succeeds, the API returns network and operator information:

{
"number": "+39333123123",
"mcc": "222",
"mnc": "10",
"numbertype": "mobile",
"ported": false,
"operator": "Vodafone",
"country": "Italia"
}
FieldTypeDescription
numberstringThe queried telephone number in international format
mccstringMobile Country Code currently associated with the number
mncstringMobile Network Code currently associated with the number
numbertypestringFixed value "mobile". Indicates the type of number
portedbooleantrue if the subscriber has transferred their number to a different operator; false otherwise
operatorstringCurrent operator name of the queried number
countrystringCountry name currently associated with the number

Client Error Response (4XX)

When the request is invalid or missing required parameters:

{
"error_code": 400,
"error_description": "Specify a msisdn number"
}
FieldTypeDescription
error_codeintegerHTTP error code returned
error_descriptionstringDescription related to the error code

Common 4XX Errors

  • 400: Missing or invalid msisdn parameter
  • 400: Invalid number format

Server Error Response (5XX)

When a server-side error occurs:

{
"error_code": 500,
"error_description": "Server error"
}
FieldTypeDescription
error_codeintegerHTTP error code returned
error_descriptionstringDescription related to the error code
Ported Numbers & Routing

The ported field indicates whether the subscriber has transferred their number to a different operator. Use this information for intelligent routing decisions, load balancing across operators, and delivery optimization. Ported numbers may route through different gateways depending on the current operator.

What's next?