Share via


Phone Numbers - Operator Information Search

Searches for number format and operator information for a given list of phone numbers.

POST {endpoint}/operatorInformation/:search?api-version=2025-04-01

URI Parameters

Name In Required Type Description
endpoint
path True

string (url)

The communication resource, for example https://resourcename.communication.azure.com

api-version
query True

string

Version of API to invoke

Request Body

Name Required Type Description
phoneNumbers True

string[]

Phone number(s) whose operator information is being requested

options

OperatorInformationOptions

Represents options to modify a search request for operator information

Responses

Name Type Description
200 OK

OperatorInformationResult

Success

Other Status Codes

CommunicationErrorResponse

Failure

Examples

Search for number format and operator information on phone numbers

Sample request

POST https://resourcename.communication.azure.com//operatorInformation/:search?api-version=2025-04-01

{
  "phoneNumbers": [
    "+11234567899"
  ],
  "options": {
    "includeAdditionalOperatorDetails": true
  }
}

Sample response

{
  "values": [
    {
      "phoneNumber": "+11234567899",
      "nationalFormat": "+1 (123) 456-7899",
      "internationalFormat": "+1 123 456 7899",
      "numberType": "mobile",
      "isoCountryCode": "US",
      "operatorDetails": {
        "name": "T-Mobile",
        "mobileNetworkCode": "260",
        "mobileCountryCode": "310"
      }
    }
  ]
}

Definitions

Name Description
CommunicationError

The Communication Services error.

CommunicationErrorResponse

The Communication Services error.

OperatorDetails

Represents metadata describing the operator of a phone number

OperatorInformation

Represents metadata about a phone number that is controlled/provided by that phone number's operator.

OperatorInformationOptions

Represents options to modify a search request for operator information

OperatorInformationRequest

Represents a search request for operator information for the given phone numbers.

OperatorInformationResult

Represents a search result containing format and operator information associated with the requested phone numbers

OperatorNumberType

Type of service associated with the phone number

CommunicationError

The Communication Services error.

Name Type Description
code

string

The error code.

details

CommunicationError[]

Further details about specific errors that led to this error.

innererror

CommunicationError

The inner error if any.

message

string

The error message.

target

string

The error target.

CommunicationErrorResponse

The Communication Services error.

Name Type Description
error

CommunicationError

The Communication Services error.

OperatorDetails

Represents metadata describing the operator of a phone number

Name Type Description
mobileCountryCode

string

Mobile Country Code, 3 decimal digits that identify a country/region

mobileNetworkCode

string

Mobile Network Code, 2 or 3 decimal digits that identify mobile networks within a country/region

name

string

Name of the phone operator

OperatorInformation

Represents metadata about a phone number that is controlled/provided by that phone number's operator.

Name Type Description
internationalFormat

string

International format of the phone number

isoCountryCode

string

ISO 3166-1 two character ('alpha-2') code associated with the phone number.

nationalFormat

string

National format of the phone number

numberType

OperatorNumberType

Type of service associated with the phone number

operatorDetails

OperatorDetails

Represents metadata describing the operator of a phone number

phoneNumber

string

E.164 formatted string representation of the phone number

OperatorInformationOptions

Represents options to modify a search request for operator information

Name Type Description
includeAdditionalOperatorDetails

boolean

Includes the fields operatorDetails, numberType, and isoCountryCode in the response. Please note: use of this option will result in additional costs

OperatorInformationRequest

Represents a search request for operator information for the given phone numbers.

Name Type Description
options

OperatorInformationOptions

Represents options to modify a search request for operator information

phoneNumbers

string[]

Phone number(s) whose operator information is being requested

OperatorInformationResult

Represents a search result containing format and operator information associated with the requested phone numbers

Name Type Description
values

OperatorInformation[]

Results of a search. This array will have one entry per requested phone number which will contain the relevant operator information.

OperatorNumberType

Type of service associated with the phone number

Value Description
unknown
other
geographic
mobile