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.
Call it yourself
curl for this page
This API
curl "https://apis.io/api/v1/apis/tlaloc-sh:tlaloc-sh-phone-numbers-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"
Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.
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. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.
A second provider on the same verified email joins the account you already have.
OpenAPI Specification
openapi: 3.2.0
info:
title: Mexico Phone Numbers API
description: 'Mexican data services — ZIP codes, phone numbers, CURP/RFC validation, Banxico CEP payment proofs, CFDI (status/query/issue/cancel), and search over the Diario Oficial de la Federación (DOF).
Authenticate every `/v1` call with `Authorization: Bearer `. Usage is billed per operation, only on success — see the pricing page for rates.'
version: 1.0.0
servers:
- url: /mx
tags:
- name: Phone Numbers
description: IFT PNN phone-number metadata.
paths:
/v1/phone:
get:
tags:
- Phone Numbers
summary: Get phone number information
description: Retrieve carrier and location information for a Mexican phone number using PNN (Plan Nacional de Numeración) data.
operationId: get_phone_number_v1_phone_get
security:
- HTTPBearer: []
parameters:
- name: number
in: query
required: true
schema:
type: string
description: 10-digit phone number
title: Number
description: 10-digit phone number
example: '5551234567'
responses:
'200':
description: Successful Response
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/PhoneNumberResponse'
title: Response Get Phone Number V1 Phone Get
'400':
content:
application/json:
schema:
$ref: '#/components/schemas/ValidationErrorResponse'
description: Bad Request
'404':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Not Found
'500':
content:
application/json:
schema:
$ref: '#/components/schemas/ErrorResponse'
description: Internal Server Error
'422':
description: Validation Error
content:
application/json:
schema:
$ref: '#/components/schemas/HTTPValidationError'
components:
schemas:
HTTPValidationError:
properties:
detail:
items:
$ref: '#/components/schemas/ValidationError'
type: array
title: Detail
type: object
title: HTTPValidationError
PhoneNumberResponse:
properties:
clave_censal:
type: string
title: Clave Censal
description: Clave censal
poblacion:
type: string
title: Poblacion
description: Población
municipio:
type: string
title: Municipio
description: Municipio
estado:
type: string
title: Estado
description: Estado
region:
type: integer
title: Region
description: Región
nir:
type: integer
title: Nir
description: NIR (Número de Identificación de Red)
serie:
type: integer
title: Serie
description: Serie
asl:
type: integer
title: Asl
description: ASL
tipo_red:
type: string
title: Tipo Red
description: Tipo de red (MOVIL/FIJO)
modalidad:
type: string
title: Modalidad
description: Modalidad (MPP/CPP/FIJO)
razon_social:
type: string
title: Razon Social
description: Razón social (carrier)
numeracion_inicial:
type: string
title: Numeracion Inicial
description: Numeración inicial
numeracion_final:
type: string
title: Numeracion Final
description: Numeración final
ocupacion:
type: integer
title: Ocupacion
description: Ocupación (capacidad del rango)
fecha_asignacion:
type: string
title: Fecha Asignacion
description: Fecha de asignación
fecha_consolidacion:
anyOf:
- type: string
- type: 'null'
title: Fecha Consolidacion
description: Fecha de consolidación
fecha_migracion:
anyOf:
- type: string
- type: 'null'
title: Fecha Migracion
description: Fecha de migración
presuscripcion:
anyOf:
- type: string
- type: 'null'
title: Presuscripcion
description: Presuscripción
nir_anterior:
anyOf:
- type: integer
- type: 'null'
title: Nir Anterior
description: NIR anterior
type: object
required:
- clave_censal
- poblacion
- municipio
- estado
- region
- nir
- serie
- asl
- tipo_red
- modalidad
- razon_social
- numeracion_inicial
- numeracion_final
- ocupacion
- fecha_asignacion
title: PhoneNumberResponse
description: Phone number response schema with PNN data.
ErrorResponse:
properties:
error:
type: string
title: Error
description: Error type
message:
type: string
title: Message
description: Error message
details:
anyOf:
- type: string
- type: 'null'
title: Details
description: Additional error details
type: object
required:
- error
- message
title: ErrorResponse
description: Error response schema.
ValidationErrorResponse:
properties:
error:
type: string
title: Error
description: Error type
default: validation_error
message:
type: string
title: Message
description: Validation error message
field:
anyOf:
- type: string
- type: 'null'
title: Field
description: Field that failed validation
type: object
required:
- message
title: ValidationErrorResponse
description: Validation error response schema.
ValidationError:
properties:
loc:
items:
anyOf:
- type: string
- type: integer
type: array
title: Location
msg:
type: string
title: Message
type:
type: string
title: Error Type
type: object
required:
- loc
- msg
- type
title: ValidationError
securitySchemes:
HTTPBearer:
type: http
scheme: bearer