Hunter · Arazzo Workflow

Hunter Count Gated Domain Search

Version 1.0.0

Use the free Email Count to confirm coverage before spending a credit on Domain Search.

1 workflow 2 source APIs 1 provider
View Spec View on GitHub Email FinderEmail VerifierLead GenerationOutreachProspectingEnrichmentSalesMarketingArazzoWorkflows

Provider

hunter-io

Workflows

count-gated-domain-search
Confirm email coverage for free, then run a paid Domain Search only if any exist.
Counts indexed emails for a domain with the free endpoint and runs Domain Search only when the total is greater than zero.
2 steps inputs: apiKey, domain outputs: emails, pattern, total
1
countEmails
Use the free Email Count endpoint to confirm how many emails Hunter has indexed for the domain before spending a credit.
2
searchDomain
Run the paid Domain Search now that the free count has confirmed coverage exists for the domain.

Source API Descriptions

Arazzo Workflow Specification

Raw ↑
arazzo: 1.0.1
info:
  title: Hunter Count Gated Domain Search
  summary: Use the free Email Count to confirm coverage before spending a credit on Domain Search.
  description: >-
    A cost-aware discovery flow. The Email Count endpoint is free and consumes no
    credits, so it is used first to confirm Hunter actually has emails indexed for
    the domain. The flow branches on the returned total: when emails exist it runs
    a paid Domain Search to pull the actual addresses and pattern, and when the
    count is zero it ends the workflow without spending a credit on a domain that
    would return nothing. The free Email Count call carries no api_key, while the
    Domain Search inlines the api_key query parameter.
  version: 1.0.0
sourceDescriptions:
- name: domainSearchApi
  url: ../openapi/hunter-io-domain-search-api-openapi.yml
  type: openapi
- name: emailCountApi
  url: ../openapi/hunter-io-email-count-api-openapi.yml
  type: openapi
workflows:
- workflowId: count-gated-domain-search
  summary: Confirm email coverage for free, then run a paid Domain Search only if any exist.
  description: >-
    Counts indexed emails for a domain with the free endpoint and runs Domain
    Search only when the total is greater than zero.
  inputs:
    type: object
    required:
    - apiKey
    - domain
    properties:
      apiKey:
        type: string
        description: Your Hunter API key, used only on the paid Domain Search step.
      domain:
        type: string
        description: The domain to count and then search emails for.
  steps:
  - stepId: countEmails
    description: >-
      Use the free Email Count endpoint to confirm how many emails Hunter has
      indexed for the domain before spending a credit.
    operationId: emailCount
    parameters:
    - name: domain
      in: query
      value: $inputs.domain
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      total: $response.body#/data/total
      personal: $response.body#/data/personal_emails
      generic: $response.body#/data/generic_emails
    onSuccess:
    - name: hasEmails
      type: goto
      stepId: searchDomain
      criteria:
      - context: $response.body
        condition: $.data.total > 0
        type: jsonpath
    - name: noEmails
      type: end
      criteria:
      - context: $response.body
        condition: $.data.total == 0
        type: jsonpath
  - stepId: searchDomain
    description: >-
      Run the paid Domain Search now that the free count has confirmed coverage
      exists for the domain.
    operationId: domainSearch
    parameters:
    - name: domain
      in: query
      value: $inputs.domain
    - name: limit
      in: query
      value: 25
    - name: api_key
      in: query
      value: $inputs.apiKey
    successCriteria:
    - condition: $statusCode == 200
    outputs:
      pattern: $response.body#/data/pattern
      organization: $response.body#/data/organization
      emails: $response.body#/data/emails
  outputs:
    total: $steps.countEmails.outputs.total
    pattern: $steps.searchDomain.outputs.pattern
    emails: $steps.searchDomain.outputs.emails

Work with this as data

Every workflow 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 arazzo workflows

4 MCP tools reach this
  • find_arazzoBrowse and filter every workflow in the catalog.
  • 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 workflow
curl "https://apis.io/api/v1/arazzo/hunter-io-count-gated-domain-search-workflow"
All arazzo workflows
curl "https://apis.io/api/v1/arazzo?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.