api-ninjas-com Phone Lookup API

The Phone Lookup API returns line intelligence for a phone number: carrier, line type, VOIP status, and MCC/MNC, worldwide.

Operations 1

GET /v1/phonelookup Look up carrier, line type, and network metadata for 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/api-ninjas-com:api-ninjas-com-phone-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

api-ninjas-com-phone-lookup-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ninjas Phone Lookup API
  description: 'Combined OpenAPI specification for every API Ninjas endpoint. Requests go to https://api.api-ninjas.com with an `X-Api-Key` header; get a free key at https://api-ninjas.com/register. Human-readable docs: https://api-ninjas.com/api. Index for LLMs: https://api-ninjas.com/llms.txt.'
  version: 1.0.0
  contact:
    name: API Ninjas
    url: https://api-ninjas.com
  license:
    name: Proprietary
servers:
- url: https://api.api-ninjas.com
  description: API Ninjas Production
security:
- ApiKeyAuth: []
tags:
- name: Phone Lookup
  description: 'The Phone Lookup API returns line intelligence for a phone number: carrier, line type, VOIP status, and MCC/MNC, worldwide.'
paths:
  /v1/phonelookup:
    get:
      tags:
      - Phone Lookup
      summary: Look up carrier, line type, and network metadata for a phone number
      description: Returns carrier, line type, VOIP status and MCC/MNC for a phone `number`, with optional `country`. For format and validity checks only use /validatephone.
      operationId: phoneLookup
      parameters:
      - $ref: '#/components/parameters/number'
      - $ref: '#/components/parameters/PhoneLookupOpenapi_country'
      responses:
        '200':
          description: Successful response with phone number line intelligence
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneLookupResponse'
        '400':
          description: Bad Request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneLookupOpenapi_ErrorResponse'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneLookupOpenapi_ErrorResponse'
        '500':
          description: Internal Server Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneLookupOpenapi_ErrorResponse'
      security:
      - ApiKeyAuth: []
components:
  parameters:
    PhoneLookupOpenapi_country:
      name: country
      in: query
      description: 2-letter ISO-3166 country code the phone number belongs to.
      required: false
      schema:
        type: string
    number:
      name: number
      in: query
      description: Phone number to look up. The leading '+' is optional. If country is not set, include the country code (e.g. 12065550100 or +12065550100).
      required: true
      schema:
        type: string
  schemas:
    PhoneLookupResponse:
      type: object
      properties:
        is_valid:
          type: boolean
          description: Whether the phone number is valid.
        number:
          type: string
          description: The phone number in E.164 format.
        country:
          type: string
          description: Full country name the number is registered to.
        country_code:
          type: integer
          description: The international (calling) country code, e.g. 1 for the US.
        region_code:
          type: string
          description: 2-letter ISO-3166 region code, e.g. US.
        location:
          type: string
          description: Sub-national geographic description.
        line_type:
          type: string
          description: 'Line type: mobile, landline, voip, toll_free, fixed_line_or_mobile, premium_rate, shared_cost, personal_number, pager, uan, voicemail, or unknown. Premium (Business+) field.'
        carrier:
          type: string
          description: Carrier / operator name. Premium (Business+) field.
        is_voip:
          type: boolean
          description: Whether the number belongs to a VOIP provider. Premium (Business+) field.
        mcc:
          type: string
          description: Mobile Country Code of the operator. Premium (Business+) field.
        mnc:
          type: string
          description: Mobile Network Code of the operator. Premium (Business+) field.
        is_disposable:
          type: boolean
          description: Whether the number is a known disposable / receive-SMS number. Premium (Business+) field.
    PhoneLookupOpenapi_ErrorResponse:
      type: object
      properties:
        message:
          type: string
          description: Error message describing the failure.
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-Api-Key
externalDocs:
  description: API Ninjas documentation
  url: https://api-ninjas.com/api