Abstract API Phone Intelligence API

Phone number validation and intelligence

Documentation

Specifications

Schemas & Data

📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/email-reputation-breach-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/phone-intelligence-phone-country-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/ip-geolocation-currency-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/ip-intelligence-asn-info-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/company-enrichment-company-enrichment-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/exchange-rates-convert-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/public-holidays-holiday-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/timezones-convert-time-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/vat-validation-vat-calculate-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/iban-validation-iban-validation-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/image-processing-image-processing-response-schema.json
📊
JSONSchema
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/json-schema/web-scraping-web-scraping-response-schema.json

Other Resources

🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/email-reputation-breach-info-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/phone-intelligence-phone-country-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/ip-geolocation-currency-info-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/ip-intelligence-asn-info-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/company-enrichment-company-enrichment-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/exchange-rates-convert-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/public-holidays-holiday-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/timezones-convert-time-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/vat-validation-vat-calculate-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/iban-validation-iban-validation-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/image-processing-image-processing-response-example.json
🔗
Examples
https://raw.githubusercontent.com/api-evangelist/abstract-api/refs/heads/main/examples/web-scraping-web-scraping-response-example.json

OpenAPI Specification

abstract-api-phone-intelligence-api-openapi.yml Raw ↑
openapi: 3.0.3
info:
  title: Abstract API Avatars Phone Intelligence API
  description: Create highly customizable avatar images using a person's name or initials. Supports color, font, and size customization for user profile images.
  version: 1.0.0
  contact:
    url: https://www.abstractapi.com/
  x-generated-from: documentation
servers:
- url: https://avatars.abstractapi.com/v1
  description: Avatars API v1
security:
- apiKey: []
tags:
- name: Phone Intelligence
  description: Phone number validation and intelligence
paths:
  /:
    get:
      operationId: getPhoneIntelligence
      summary: Abstract API Get Phone Intelligence
      description: Validate a phone number and retrieve carrier, location, line type, VoIP status, and risk information.
      tags:
      - Phone Intelligence
      parameters:
      - name: api_key
        in: query
        description: Your unique API key for the Phone Intelligence API.
        required: true
        schema:
          type: string
        example: abc123def456
      - name: phone
        in: query
        description: The phone number to validate and analyze.
        required: true
        schema:
          type: string
        example: '+14155552671'
      - name: country
        in: query
        description: ISO 3166-1 alpha-2 country code to specify the phone number origin.
        required: false
        schema:
          type: string
        example: US
      responses:
        '200':
          description: Successful phone intelligence response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PhoneIntelligenceResponse'
              examples:
                getPhoneIntelligence200Example:
                  summary: Default getPhoneIntelligence 200 response
                  x-microcks-default: true
                  value:
                    phone: '+14155552671'
                    valid: true
                    country:
                      code: US
                      name: United States
                      prefix: '1'
                    location: California
                    type: mobile
                    carrier: Verizon
                    is_voip: false
                    risk_score: 12
        '400':
          description: Bad request
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Unauthorized - invalid API key
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '429':
          description: Rate limit exceeded
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
      x-microcks-operation:
        delay: 0
        dispatcher: FALLBACK
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        message:
          type: string
          example: The provided API key is invalid
        error:
          type: string
          example: invalid_api_key
    PhoneIntelligenceResponse:
      type: object
      description: Phone number intelligence response
      properties:
        phone:
          type: string
          description: The phone number in E.164 format
          example: '+14155552671'
        valid:
          type: boolean
          description: Whether the phone number is valid
          example: true
        country:
          $ref: '#/components/schemas/PhoneCountry'
        location:
          type: string
          description: Geographic location of the phone number
          example: California
        type:
          type: string
          description: Line type
          example: mobile
          enum:
          - mobile
          - landline
          - voip
          - toll_free
          - premium_rate
          - shared_cost
          - unknown
        carrier:
          type: string
          description: Carrier or service provider
          example: Verizon
        is_voip:
          type: boolean
          description: Whether the number is a VoIP number
          example: false
        risk_score:
          type: integer
          description: Risk score from 0 (low risk) to 100 (high risk)
          example: 12
    PhoneCountry:
      type: object
      properties:
        code:
          type: string
          description: ISO 3166-1 alpha-2 country code
          example: US
        name:
          type: string
          description: Country name
          example: United States
        prefix:
          type: string
          description: International dialing prefix
          example: '1'
  securitySchemes:
    apiKey:
      type: apiKey
      in: query
      name: api_key