messagebird Lookup API

Operations for looking up and validating phone numbers.

Operations 1

GET /lookup/{phoneNumber} Look up a phone number #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/messagebird-lookup-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Discovery needs no key. Ratings and market analysis are Pro.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

messagebird-lookup-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: MessageBird Lookup API
  description: The MessageBird Lookup API enables developers to validate and look up mobile phone numbers. It performs HLR lookups on the mobile network to identify number format, country, operator, and availability in real-time. The API is useful for cleaning contact lists, validating user-provided phone numbers, and determining the correct format before sending messages.
  version: '1.0'
  contact:
    name: MessageBird Support
    url: https://support.messagebird.com
  termsOfService: https://www.messagebird.com/en/terms
servers:
- url: https://rest.messagebird.com
  description: Production Server
security:
- accessKey: []
tags:
- name: Lookup
  description: Operations for looking up and validating phone numbers.
paths:
  /lookup/{phoneNumber}:
    get:
      operationId: lookupPhoneNumber
      summary: Look up a phone number
      description: Performs a phone number validation and returns formatting information, country details, and operator data for the specified number.
      tags:
      - Lookup
      parameters:
      - $ref: '#/components/parameters/phoneNumberParam'
      - name: countryCode
        in: query
        required: false
        description: The country code to use for parsing the phone number if it is provided in a local format.
        schema:
          type: string
          minLength: 2
          maxLength: 2
      responses:
        '200':
          description: Lookup result
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Lookup'
        '400':
          description: Bad request
        '401':
          description: Unauthorized
        '404':
          description: Phone number not found
components:
  schemas:
    Lookup:
      type: object
      properties:
        href:
          type: string
          format: uri
          description: The URL of the lookup resource.
        countryCode:
          type: string
          description: The two-letter ISO 3166-1 country code.
        countryPrefix:
          type: integer
          description: The international dialing prefix for the country.
        phoneNumber:
          type: integer
          format: int64
          description: The phone number in E.164 format.
        type:
          type: string
          description: The type of phone number.
          enum:
          - fixed line
          - mobile
          - fixed line or mobile
          - toll free
          - premium rate
          - shared cost
          - voip
          - personal number
          - pager
          - universal access number
          - unknown
        formats:
          type: object
          description: Alternative formats for the phone number.
          properties:
            e164:
              type: string
              description: The phone number in E.164 format.
            international:
              type: string
              description: The phone number in international format.
            national:
              type: string
              description: The phone number in national format.
            rfc3966:
              type: string
              description: The phone number in RFC 3966 format.
        hlr:
          $ref: '#/components/schemas/HlrLookup'
    HlrLookup:
      type: object
      properties:
        id:
          type: string
          description: The unique identifier of the HLR lookup.
        network:
          type: integer
          description: The MCC-MNC code of the mobile network operator.
        reference:
          type: string
          description: The client reference.
        status:
          type: string
          description: The status of the HLR lookup.
          enum:
          - sent
          - absent
          - active
          - unknown
          - failed
        createdDatetime:
          type: string
          format: date-time
          description: The date and time when the HLR lookup was created.
        statusDatetime:
          type: string
          format: date-time
          description: The date and time of the last status update.
  parameters:
    phoneNumberParam:
      name: phoneNumber
      in: path
      required: true
      description: The phone number to look up in international format.
      schema:
        type: string
  securitySchemes:
    accessKey:
      type: apiKey
      in: header
      name: Authorization
      description: Access key authentication in the form of 'AccessKey {accessKey}'.
externalDocs:
  description: Lookup API Documentation
  url: https://developers.messagebird.com/api/lookup/