Smarter Data Size API

Free counts and the schema.

GitHub OpenAPI

Operations 2

GET /v1/count Count businesses or contacts (free) #
GET /v1/schema Filters, values, prices and routes (free) #

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/smarterdata:smarterdata-size-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

smarterdata-size-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Smarter Data Size API
  version: '1'
  summary: 'U.S. local business data: companies, named contacts, live web search, email verification and crawling.'
  description: 'Find local businesses by industry and place, with the address, the phone and the people who run them. Pay per record in credits: counts and estimates are free, no match costs nothing, and the same record is never sold to you twice inside a year. Every operation states its price in x-credit-cost. Full reference with examples: https://smarterdata.ai/docs/. The machine-readable contract of the running build is GET /v1/schema.'
  contact:
    name: Smarter Data support
    email: support@smarterdata.ai
    url: https://smarterdata.ai/contact/
  termsOfService: https://smarterdata.ai/legal/terms.html
servers:
- url: https://api.smarterdata.ai
security:
- apiKey: []
tags:
- name: Size
  description: Free counts and the schema.
paths:
  /v1/count:
    get:
      operationId: count
      summary: Count businesses or contacts (free)
      description: Size any segment before spending. Always 0 credits.
      tags:
      - Size
      x-credit-cost:
        credits: 0
        per: call
      parameters:
      - name: state
        in: query
        required: false
        schema:
          type: string
          description: Two-letter U.S. state code, e.g. TX. Comma-separated for several values.
        example: TX
      - name: city
        in: query
        required: false
        schema:
          type: string
          description: City name. Comma-separated for several values.
      - name: zip
        in: query
        required: false
        schema:
          type: string
          description: Five-digit ZIP code. Comma-separated for several values.
      - name: niche
        in: query
        required: false
        schema:
          type: string
          description: Industry word from GET /v1/schema → values.niche (103 words, e.g. agriculture, apartment, appliance_repair, asbestos_hazmat). A company is found by either industry word its record carries. Comma-separated for several values.
        example: janitorial
      - name: sector
        in: query
        required: false
        schema:
          type: string
          description: 'Sector, case-insensitive: Accommodation/Food · Admin/Support/Waste · Agriculture · Arts/Recreation · Construction · Education · Finance/Insurance · Health Care · Information · Management · Manufacturing · Mining/Oil&Gas · Other Services · Other/Unclassified · Professional Services · Public Admin · RealEstate/Rental · Retail · Transportation · Transportation/Warehousing · Utilities · Wholesale. Comma-separated for several values.'
      - name: naics
        in: query
        required: false
        schema:
          type: string
          description: NAICS code; a prefix matches every code under it. Comma-separated for several values.
      - name: name
        in: query
        required: false
        schema:
          type: string
          description: Company name contains this text. At most 20 calls a minute carry name=.
      - name: service_line
        in: query
        required: false
        schema:
          type: string
          description: 'What the company does (465 words in GET /v1/schema → values.service_line). Multi-service aware: a general contractor that also roofs matches roofing. Comma-separated for several values.'
      - name: employees_min
        in: query
        required: false
        schema:
          type: number
          description: Minimum head-count. Head-count is known for a minority of companies; filtering drops the rest.
      - name: employees_max
        in: query
        required: false
        schema:
          type: number
          description: Maximum head-count.
      - name: employees_band
        in: query
        required: false
        schema:
          type: string
          description: 'Head-count band: 1-4 · 5-9 · 10-49 · 50-249 · 250+ · unknown. Comma-separated for several values.'
      - name: revenue_min
        in: query
        required: false
        schema:
          type: number
          description: Minimum modeled annual revenue in USD (an estimate, never reported financials).
      - name: revenue_max
        in: query
        required: false
        schema:
          type: number
          description: Maximum modeled annual revenue in USD.
      - name: revenue_band
        in: query
        required: false
        schema:
          type: string
          description: 'Modeled revenue band: <1M · 1-10M · 10-50M · 50M+ · unknown. Comma-separated for several values.'
      - name: has_company_phone
        in: query
        required: false
        schema:
          type: boolean
          description: true = companies with a phone on file.
      - name: has_website
        in: query
        required: false
        schema:
          type: boolean
          description: true = companies with a website on file.
      - name: is_public
        in: query
        required: false
        schema:
          type: boolean
          description: true = flagged publicly traded; false = everything else (unknown for most companies).
      - name: quality_min
        in: query
        required: false
        schema:
          type: number
          description: Minimum completeness score, 0 to 100 (quality_score on every record).
          minimum: 0
          maximum: 100
      - name: limit
        in: query
        required: false
        schema:
          type: integer
          description: Records per call, 1 to 1000.
          minimum: 1
          maximum: 1000
      - name: estimate
        in: query
        required: false
        schema:
          type: boolean
          description: true = return the exact credit cost without running the call. Free.
      - name: exclude_delivered
        in: query
        required: false
        schema:
          type: boolean
          description: 'Default true: a record your account bought in the last 12 months is skipped, so repeating a call returns the next batch. false re-sends it, and charges it again.'
      - name: redeliver_after_days
        in: query
        required: false
        schema:
          type: integer
          description: Records bought more than this many days ago become deliverable again (list recycling), 1 to 3650.
          minimum: 1
          maximum: 3650
      - name: entity
        in: query
        required: false
        schema:
          type: string
          enum:
          - companies
          - contacts
          - companies_with_named_dm
          description: What to count. Default companies.
      - name: dm_only
        in: query
        required: false
        schema:
          type: boolean
          description: 'Default true: named contacts only (a named contact seniority, a person''s name, and an email or a cell). false = any reachable contact.'
      - name: channels
        in: query
        required: false
        schema:
          type: string
          description: 'Contact channels: email, cell, office (the default three) and linkedin. A contact counts and is charged only when it carries at least one of them. On GET /v1/count it applies with entity=contacts. Comma-separated for several values.'
      - name: exclude_dissolved
        in: query
        required: false
        schema:
          type: boolean
          description: true drops companies recorded as dissolved.
      responses:
        '200':
          description: Success envelope.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Envelope'
              examples:
                companies:
                  summary: state=TX, niche=janitorial
                  value:
                    ok: true
                    entity: companies
                    count: 18185
                    credits_used: 0
                    credits_remaining: 100
                contacts:
                  summary: state=TX, niche=general_contractor, entity=contacts
                  value:
                    ok: true
                    entity: contacts
                    definition: named_dm_strict
                    count: 29734
                    credits_used: 0
                    credits_remaining: 1900
                segment_too_small:
                  summary: 'A segment of fewer than 25 companies: the contact coverage is withheld'
                  value:
                    ok: true
                    entity: companies_with_named_dm
                    count: null
                    note: 'segment_too_small: coverage is reported for segments of 25+ companies'
                    credits_used: 0
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '431':
          $ref: '#/components/responses/HeaderTooLarge'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/Unavailable'
  /v1/schema:
    get:
      operationId: getSchema
      summary: Filters, values, prices and routes (free)
      description: 'The contract of the running build: accepted parameters per route, the value lists, the credit table for your plan.'
      tags:
      - Size
      x-credit-cost:
        credits: 0
        per: call
      responses:
        '200':
          description: The contract.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Schema'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '403':
          $ref: '#/components/responses/Forbidden'
        '429':
          $ref: '#/components/responses/RateLimited'
        '431':
          $ref: '#/components/responses/HeaderTooLarge'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  responses:
    RateLimited:
      description: 'Codes: rate_limited (requests per key; calls that carry name=; estimates running at once), live_rate_limited (live pages per account per minute), daily_cap_reached (the daily credit cap of the key), auth_rate_limited (unknown keys from one address), list_download_running (a second CSV download of your list). Retry after the Retry-After header when present. Nothing charged.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unauthorized:
      description: 'invalid_api_key: the key is missing, unknown or revoked.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Unavailable:
      description: 'Codes: busy (the data service is at capacity: retry in a few seconds), upstream_unavailable, upstream_paused or upstream_busy (a live, verification or crawl source cannot answer now), job_interrupted (a job was closed before its hold was taken: submit it again), auth_unavailable (a console sign-in could not be checked). Nothing charged.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    HeaderTooLarge:
      description: 'request_header_too_large: the request line and headers are over 16 KB, usually a very long query string. This answer carries no request_id. Nothing charged.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    ServerError:
      description: 'internal_error: a fault on our side. A charge of that request is refunded. Retry with the same idempotency-key and quote the request_id if it happens again.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Forbidden:
      description: 'Codes: scope_required (the result holds a cell number or a personal email and the key has no personal_data scope), api_key_required (a paid call from a console session: records leave only through an API key), account_suspended, login_not_accepted (a console sign-in that cannot open an account). Nothing charged.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    BadRequest:
      description: 'A malformed request. Codes: unknown_filter (a parameter name the route does not take), empty_filter, bad_boolean, bad_limit, bad_number, bad_channels, bad_entity, bad_redeliver_after_days, offset_not_supported, segment_too_small, page_range, q_required, email_required, bad_request. Nothing charged.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  schemas:
    Error:
      type: object
      required:
      - ok
      - error
      properties:
        ok:
          const: false
        error:
          type: object
          required:
          - code
          - message
          properties:
            code:
              type: string
              description: Machine-stable; see https://smarterdata.ai/docs/#errors.
            message:
              type: string
            request_id:
              type: string
        credits_used:
          type: integer
        credits_remaining:
          type: integer
          description: 'On a 402: your balance.'
        credits_needed:
          type: integer
          description: 'On a 402: what the call needs.'
    Envelope:
      type: object
      required:
      - ok
      properties:
        ok:
          type: boolean
        entity:
          type: string
        count:
          type:
          - integer
          - 'null'
          description: Records in this answer. null on a contact count or estimate of a segment under 25 companies.
        credits_used:
          type: integer
        credits_remaining:
          type: integer
        estimate:
          type: boolean
          description: true on an answer to estimate=true.
        credit_cost:
          type:
          - integer
          - 'null'
          description: On estimate=true.
        credits_per_record:
          type: integer
          description: On a contact estimate.
        has_more:
          type: boolean
        total_matching:
          type: integer
        pagination_mode:
          type: string
        definition:
          type: string
          description: 'On contact answers: named_dm_strict or any_reachable_person.'
        already_delivered:
          type:
          - boolean
          - integer
          description: true on a record you bought in the last 12 months; on a reveal, how many contacts were withheld for that reason.
        replayed:
          type: boolean
          description: true on a retry with the same idempotency-key.
        original_credits_used:
          type: integer
          description: 'On a replay: what the first call paid.'
        next_cursor:
          type:
          - string
          - 'null'
          description: On GET /v1/me/list.
        window_days:
          type: integer
          description: On GET /v1/me/list.
        note:
          type: string
        notes:
          type: array
          items:
            type: string
        records:
          type: array
          items: {}
    Schema:
      type: object
      required:
      - ok
      description: The contract of the running build. See https://smarterdata.ai/docs/#v1-schema.
      properties:
        ok:
          type: boolean
        company_filters:
          type: array
          items:
            type: string
        contact_filters:
          type: array
          items:
            type: string
        channels:
          type: array
          items:
            type: string
        values:
          type: object
          description: The words each value filter accepts.
        routes:
          type: object
          description: The query parameters each route accepts.
          additionalProperties:
            type: array
            items:
              type: string
        count_entities:
          type: array
          items:
            type: string
        credits:
          type: object
          description: The price table your account pays, in credits.
        coverage_min_segment:
          type: integer
        list_window_days:
          type: integer
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: x-api-key
      description: sk_live_… key from the console (https://smarterdata.ai/app/).
externalDocs:
  description: API reference
  url: https://smarterdata.ai/docs/