Smarter Data Companies API

Search and read company records.

GitHub OpenAPI

Operations 2

GET /v1/companies Search companies (1 credit per record) #
GET /v1/companies/{business_id} Read one company (1 credit; free if you bought it in the last 12 months) #

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-companies-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-companies-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Smarter Data Companies 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: Companies
  description: Search and read company records.
paths:
  /v1/companies:
    get:
      operationId: searchCompanies
      summary: Search companies (1 credit per record)
      description: 'Stable order (data quality, name, id). Records you bought in the last 12 months are skipped, so the same call returns the next batch; has_more says whether any are left. estimate=true is free and also states the whole segment: total_matching, credit_cost_all and balance_covers.'
      tags:
      - Companies
      x-credit-cost:
        credits: 1
        per: company record delivered
        price_key: company_search
      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
        example: 5
      - 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: exclude_dissolved
        in: query
        required: false
        schema:
          type: boolean
          description: true drops companies recorded as dissolved.
      - name: idempotency-key
        in: header
        required: false
        schema:
          type: string
        description: 'Optional. A retry with the same key replays the original answer for 24 hours and charges nothing: replayed is true and credits_used is 0. The same key with a different request is 409 idempotency_conflict.'
      responses:
        '200':
          description: Companies.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyList'
              examples:
                estimate:
                  summary: 'With estimate=true: the cost, free'
                  value:
                    ok: true
                    estimate: true
                    entity: companies
                    count: 5
                    credit_cost: 5
                    credits_used: 0
                pull:
                  summary: The pull of 5 (one record shown, shortened)
                  value:
                    ok: true
                    entity: companies
                    count: 5
                    total_matching: 18185
                    has_more: true
                    pagination_mode: auto_advance
                    credits_used: 5
                    credits_remaining: 95
                    records:
                    - business_id: co:d:examplejanitorial.com
                      name: Example Janitorial
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/Forbidden'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '431':
          $ref: '#/components/responses/HeaderTooLarge'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/Unavailable'
  /v1/companies/{business_id}:
    get:
      operationId: getCompany
      summary: Read one company (1 credit; free if you bought it in the last 12 months)
      description: 'One company, the same record a search returns; it counts as a delivery, and for a company your account bought in the last 12 months it costs 0 and the answer says already_delivered: true.'
      tags:
      - Companies
      x-credit-cost:
        credits: 1
        per: company record
        price_key: company_detail
        note: 0 for a company your account bought in the last 12 months.
      parameters:
      - name: business_id
        in: path
        required: true
        schema:
          type: string
        description: Opaque company id as received (URL-encode it).
      - name: estimate
        in: query
        required: false
        schema:
          type: boolean
          description: true = return the exact credit cost without running the call. Free.
      - name: idempotency-key
        in: header
        required: false
        schema:
          type: string
        description: 'Optional. A retry with the same key replays the original answer for 24 hours and charges nothing: replayed is true and credits_used is 0. The same key with a different request is 409 idempotency_conflict.'
      responses:
        '200':
          description: One company.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyList'
        '400':
          $ref: '#/components/responses/BadRequest'
        '401':
          $ref: '#/components/responses/Unauthorized'
        '402':
          $ref: '#/components/responses/InsufficientCredits'
        '403':
          $ref: '#/components/responses/Forbidden'
        '404':
          $ref: '#/components/responses/NotFound'
        '409':
          $ref: '#/components/responses/Conflict'
        '429':
          $ref: '#/components/responses/RateLimited'
        '431':
          $ref: '#/components/responses/HeaderTooLarge'
        '500':
          $ref: '#/components/responses/ServerError'
        '503':
          $ref: '#/components/responses/Unavailable'
components:
  responses:
    InsufficientCredits:
      description: 'insufficient_credits: the balance cannot cover the call (for a job: the most it can cost). The answer adds credits_remaining and credits_needed.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
          examples:
            example:
              value:
                ok: false
                error:
                  code: insufficient_credits
                  message: this call needs 5 credits; your balance is 2 — top up in the console; nothing was charged
                  request_id: 7d2f9c1e-5b0a-4c8e-9f31-2a6b4e8d0c57
                credits_used: 0
                credits_remaining: 2
                credits_needed: 5
    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'
    Conflict:
      description: 'Codes: company_required (a reveal for a company your account does not hold yet: get the company first), idempotency_conflict (the same idempotency-key with a different request), idempotency_in_progress (the first call with this key was interrupted on our side: retry in a few minutes). Nothing charged.'
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    NotFound:
      description: 'not_found: no company with that business_id, or no such job on your account. A path the API does not have answers the same code.'
      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:
    Company:
      type: object
      description: Every column is always present; unknown = null.
      examples:
      - business_id: co:d:examplepaving.com
        name: Example Paving Co.
        niche: concrete_paving
        niche_refined: concrete_paving
        sector: Construction
        naics: '238110'
        street: 1402 Oak St
        city: Dallas
        state: TX
        zip: '75204'
        lat: 32.8007
        lon: -96.7899
        phone: '2145550142'
        domain: examplepaving.com
        domain_status: null
        employees: 12
        employees_band: 10-49
        revenue_est: 3200000
        revenue_band: 1-10M
        is_public: null
        quality_score: 85
        service_lines:
        - concrete_paving
        - general_contractor
        is_multi_location: false
        origins:
        - map_listing
        - web_presence
        size_source: measured
        is_dissolved: false
        is_listing_name: false
      properties:
        business_id:
          type: string
          description: Opaque; store as received.
        name:
          type: string
        niche:
          type:
          - string
          - 'null'
        niche_refined:
          type:
          - string
          - 'null'
        sector:
          type:
          - string
          - 'null'
        naics:
          type:
          - string
          - 'null'
        street:
          type:
          - string
          - 'null'
        city:
          type:
          - string
          - 'null'
        state:
          type:
          - string
          - 'null'
        zip:
          type:
          - string
          - 'null'
        lat:
          type:
          - number
          - 'null'
        lon:
          type:
          - number
          - 'null'
        phone:
          type:
          - string
          - 'null'
          description: 10 digits.
        domain:
          type:
          - string
          - 'null'
        domain_status:
          type:
          - string
          - 'null'
          enum:
          - null
          - mismatch
          - social_link
          - directory_listing
          - unverified
        employees:
          type:
          - integer
          - 'null'
        employees_band:
          type: string
        revenue_est:
          type:
          - number
          - 'null'
          description: Modeled estimate, never reported financials.
        revenue_band:
          type: string
        is_public:
          type:
          - boolean
          - 'null'
        quality_score:
          type: integer
          minimum: 0
          maximum: 100
        service_lines:
          type: array
          items:
            type: string
        is_multi_location:
          type:
          - boolean
          - 'null'
        origins:
          type: array
          items:
            type: string
        size_source:
          type:
          - string
          - 'null'
        is_dissolved:
          type:
          - boolean
          - 'null'
        is_listing_name:
          type:
          - boolean
          - 'null'
        bought_at:
          type: string
          format: date-time
          description: Only on GET /v1/me/list.
    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: {}
    CompanyList:
      allOf:
      - $ref: '#/components/schemas/Envelope'
      - type: object
        properties:
          records:
            type: array
            items:
              $ref: '#/components/schemas/Company'
  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/