ex2-com Domains API

The Domains API from ex2-com — 2 operation(s) for domains.

Operations 2

GET /api/v1/domains/pricing Get domain prices #
GET /api/v1/domains/availability Check a domain name #

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/ex2-com:ex2-com-domains-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

ex2-com-domains-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Ex2 catalogue Domains API
  version: '1'
  summary: Plans, prices and domain names of Ex2, web hosting from Québec.
  description: Read-only, public, no authentication. Prices come from the Ex2 billing system (cached for up to 10 minutes), in the currency asked for, excluding taxes. Fields are added, never renamed or removed. A breaking change comes as a new version (/api/v2); the old one then keeps answering for at least 12 months, with Deprecation and Sunset headers (RFC 9745, RFC 8594) and a notice on the developers page. Errors are RFC 9457 problem details. The same data is available to AI assistants through the MCP server at https://www.ex2.com/mcp.
  termsOfService: https://www.ex2.com/en/terms-and-conditions
  contact:
    name: Ex2 support
    url: https://www.ex2.com/en/support
servers:
- url: https://www.ex2.com
tags:
- name: Domains
paths:
  /api/v1/domains/pricing:
    get:
      operationId: getDomainPricing
      summary: Get domain prices
      description: One-year register, transfer and renewal prices per domain extension.
      parameters:
      - $ref: '#/components/parameters/tld'
      - $ref: '#/components/parameters/currency'
      responses:
        '200':
          description: The prices.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainPricing'
        '400':
          description: A parameter is not valid.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: WHMCS (or, for availability, the registry) is unreachable and nothing is cached. Try again in a few minutes.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Domains
  /api/v1/domains/availability:
    get:
      operationId: checkDomainAvailability
      summary: Check a domain name
      description: Whether a domain name can be registered at Ex2 now (live WHOIS, results kept 5 minutes), with its extension's one-year prices and the link to order it, or to transfer it when taken. Limited to 30 checks per 10 minutes per address.
      parameters:
      - $ref: '#/components/parameters/domain'
      - $ref: '#/components/parameters/currency'
      - $ref: '#/components/parameters/lang'
      responses:
        '200':
          description: Free or taken.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/DomainAvailability'
        '400':
          description: Not a registrable domain name, or an extension Ex2 does not sell (code unsupported_tld).
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
        '429':
          description: The limit is reached; the Retry-After header says when to try again.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
        '503':
          description: WHMCS (or, for availability, the registry) is unreachable and nothing is cached. Try again in a few minutes.
          content:
            application/problem+json:
              schema:
                $ref: '#/components/schemas/Error'
      tags:
      - Domains
components:
  schemas:
    Error:
      type: object
      required:
      - type
      - title
      - status
      - detail
      - code
      - error
      description: RFC 9457 problem details, sent as application/problem+json; error repeats code and detail as the API first gave them.
      properties:
        type:
          type: string
          description: urn:ex2:problem:<code>
        title:
          type: string
        status:
          type: integer
        detail:
          type: string
          description: What to change, in English.
        code:
          type: string
          description: The same code as error.code.
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              description: Stable, e.g. invalid_currency, unknown_plan, invalid_domain, unsupported_tld, rate_limited, unavailable, whois_unavailable.
            message:
              type: string
              description: What to change, in English.
    DomainAvailability:
      type: object
      required:
      - domain
      - available
      - currency
      - tld
      - period_years
      - register
      - transfer
      - renew
      - order_url
      - transfer_url
      properties:
        domain:
          type: string
          description: The name checked, lower case, in its ASCII (xn--) form.
        available:
          type: boolean
          description: Free to register now (WHOIS); a premium or reserved name can still fail at checkout.
        currency:
          type: string
        tld:
          type: string
        period_years:
          type: integer
          const: 1
        register:
          oneOf:
          - type: number
            minimum: 0
            description: In the answer's currency, excluding taxes.
          - type: 'null'
        transfer:
          oneOf:
          - type: number
            minimum: 0
            description: In the answer's currency, excluding taxes.
          - type: 'null'
        renew:
          oneOf:
          - type: number
            minimum: 0
            description: In the answer's currency, excluding taxes.
          - type: 'null'
        order_url:
          oneOf:
          - type: string
            format: uri
          - type: 'null'
          description: The cart, to register it (free names).
        transfer_url:
          oneOf:
          - type: string
            format: uri
          - type: 'null'
          description: The cart, to transfer it to Ex2 (taken names).
    DomainPricing:
      type: object
      required:
      - currency
      - period_years
      - order_url
      - domains
      properties:
        currency:
          type: string
        period_years:
          type: integer
          const: 1
        order_url:
          type: string
          format: uri
          description: The domain search of the cart.
        domains:
          type: array
          items:
            type: object
            required:
            - tld
            - register
            - transfer
            - renew
            properties:
              tld:
                type: string
                description: 'With its dot: .com'
              register:
                oneOf:
                - type: number
                  minimum: 0
                  description: In the answer's currency, excluding taxes.
                - type: 'null'
              transfer:
                oneOf:
                - type: number
                  minimum: 0
                  description: In the answer's currency, excluding taxes.
                - type: 'null'
              renew:
                oneOf:
                - type: number
                  minimum: 0
                  description: In the answer's currency, excluding taxes.
                - type: 'null'
  parameters:
    domain:
      name: domain
      in: query
      required: true
      description: The name to check, e.g. mybakery.ca (a URL, capitals or a www. prefix are fine; Unicode names too).
      schema:
        type: string
        minLength: 3
        maxLength: 253
    currency:
      name: currency
      in: query
      required: false
      description: 'Currency of the prices: EUR for France and Europe, CAD for Canada, USD elsewhere.'
      schema:
        type: string
        enum:
        - CAD
        - EUR
        - USD
        default: USD
    lang:
      name: lang
      in: query
      required: false
      description: Language of names, features, specifications and links.
      schema:
        type: string
        enum:
        - en
        - fr
        default: en
    tld:
      name: tld
      in: query
      required: false
      description: 'Keep some extensions, comma-separated, without dots: com,ca. All when absent.'
      schema:
        type: string
externalDocs:
  description: Developers page
  url: https://www.ex2.com/en/developers