HG Insights Contacts API

The Contacts API from HG Insights, for contacts.

GitHub OpenAPI
Pull this API's OpenAPI, operations, scores and pricing into your own code or AI agent with a free APIs.io key — sign in with GitHub, Google or LinkedIn. No form to fill in; signing in shares your email address with us (Privacy).

Operations 3

POST /data-api/v2/contacts/enrich Enrich Contacts #
POST /data-api/v2/contacts/enrich/estimate Estimate credit cost for contact enrichment #
POST /data-api/v2/contacts/search Search Contacts #

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/hg-insights:hg-insights-contacts-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

hg-insights-contacts-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  license:
    name: HG Insights terms of service
    url: https://hginsights.com/contact-hg/terms-of-service
  title: HG Insights Contacts API
  version: ''
servers:
- url: https://api.hginsights.com
  variables: {}
security:
- authorization: []
tags:
- name: Contacts
paths:
  /data-api/v2/contacts/enrich:
    post:
      callbacks: {}
      description: Enrich contacts with PII fields (email, phone) by ID. A maximum of 20 IDs may be enriched per request.
      operationId: enrich_contacts_v2
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactsEnrichRequest'
        description: Enrich Request
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactsEnrichResponse'
          description: Enrich Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
          description: Unauthorized
        '402':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PaymentRequiredResponse'
          description: Payment Required
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonErrorResponse'
          description: Unprocessable Entity
      summary: Enrich Contacts
      tags:
      - Contacts
  /data-api/v2/contacts/enrich/estimate:
    post:
      callbacks: {}
      description: 'Returns the estimated credit cost for a contact enrichment request without consuming any credits

        or returning data. Use the same parameters as the enrich endpoint.'
      operationId: estimate_contacts_enrich
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactsEnrichRequest'
        description: Enrich estimate request
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactsEnrichEstimateResponse'
          description: Estimate response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
          description: Unauthorized
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonErrorResponse'
          description: Unprocessable Entity
        '503':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ServiceUnavailableResponse'
          description: Service Unavailable
      summary: Estimate credit cost for contact enrichment
      tags:
      - Contacts
  /data-api/v2/contacts/search:
    post:
      callbacks: {}
      description: Search and filter contacts. Returns a flat list of matching contacts.
      operationId: search_contacts_v2
      parameters: []
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ContactsSearchRequest'
        description: Search Request
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ContactsSearchResponse'
          description: Search Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
          description: Unauthorized
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/JsonErrorResponse'
          description: Unprocessable Entity
      summary: Search Contacts
      tags:
      - Contacts
components:
  schemas:
    ContactSearchV2Filters:
      additionalProperties: false
      description: Filters object for contact search. All filters are inclusion-only.
      example:
        companies:
          ids:
          - 1698C53EBC888758570396E0334965C1
        contact_location:
          countries:
          - US
        job_functions:
        - Engineering
        job_seniority:
        - Director
        time_in_current_role:
        - company_veteran
      properties:
        companies:
          $ref: '#/components/schemas/ContactSearchV2CompaniesFilter'
        contact_location:
          $ref: '#/components/schemas/ContactSearchV2ContactLocationFilter'
        job_functions:
          description: Filter by job function. Inclusion only.
          items:
            type: string
            x-struct: null
            x-validate: null
          minItems: 1
          type: array
          x-struct: null
          x-validate: null
        job_seniority:
          description: Filter by job seniority. Inclusion only.
          items:
            type: string
            x-struct: null
            x-validate: null
          minItems: 1
          type: array
          x-struct: null
          x-validate: null
        time_in_current_role:
          description: 'Filter by time in current role. Inclusion only.


            Enum values:

            - `new_change_maker`: New Change-Maker (< 6 months)

            - `rising_contributor`: Rising Contributor (6 months - 1 year)

            - `established_performer`: Established Performer (1-2 years)

            - `stable_operator`: Stable Operator (3-5 years)

            - `company_veteran`: Company Veteran (5+ years)

            '
          items:
            enum:
            - company_veteran
            - stable_operator
            - established_performer
            - new_change_maker
            - rising_contributor
            type: string
            x-struct: null
            x-validate: null
          minItems: 1
          type: array
          x-struct: null
          x-validate: null
      title: ContactSearchV2Filters
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Contacts.Search.Filters
      x-validate: null
    ContactsSearchResponse:
      description: Flat list of contacts matching the search criteria.
      example:
        contacts:
        - company_domain: acme.com
          company_id: 1488903ED478F8C51D09F2EC5F2DCDA2
          company_name: Acme
          contact_location_city: Vancouver
          contact_location_country: Canada
          contact_location_region: British Columbia
          first_name: John
          full_name: John Doe
          id: 7a932d2ae5dab0ca88348198c9129c9167ff34f92c4abd47f291f5d1c35d237a
          job_functions:
          - Operations
          job_seniority: Founder
          job_title: Co-Founder
          last_name: Doe
          linkedin_url: https://www.linkedin.com/in/john-dow
        count: 1
      properties:
        contacts:
          items:
            $ref: '#/components/schemas/ContactSearchV2ContactResult'
          type: array
          x-struct: null
          x-validate: null
        count:
          description: Total number of contacts matching the filters (before pagination)
          type: integer
          x-struct: null
          x-validate: null
      required:
      - contacts
      title: ContactsSearchResponse
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Contacts.Search.Response
      x-validate: null
    HexId:
      description: Hexadecimal identifier (unsigned 128-bit base 16 integer)
      example: 1698C53EBC888758570396E0334965C1
      title: HexId
      type: string
      x-struct: Elixir.TalariaWeb.Schemas.V2.Id
      x-validate: Elixir.TalariaWeb.Schemas.V2.Id
    ServiceUnavailableResponse:
      properties:
        errors:
          items:
            properties:
              detail:
                example: Unable to verify credit availability. Please try again later. If the error persists, contact customersupport@hginsights.com.
                type: string
                x-struct: null
                x-validate: null
              source:
                type:
                - string
                - 'null'
                x-struct: null
                x-validate: null
              title:
                example: Service unavailable
                type: string
                x-struct: null
                x-validate: null
            required:
            - title
            - detail
            type: object
            x-struct: null
            x-validate: null
          type: array
          x-struct: null
          x-validate: null
      title: ServiceUnavailableResponse
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Error.ServiceUnavailableResponse
      x-validate: null
    ContactsEnrichResponse:
      example:
        contacts:
        - company_id: 02F00022696877390B077DE05D7918CA
          company_name: AppNexus
          email: jane.doe@example.com
          email_status: Unverified
          first_name: Jane
          full_name: Jane Doe
          id: 820b11e9bff6183dbefdf3d29c16202f85fe366f7569d0ca0ddfc7e10d372451
          last_name: Doe
          linkedin_url: https://www.linkedin.com/in/jane-doe-820b11e9
          phone: '+15550000000'
          status: enriched
        - company_id: 02F00022696877390B077DE05D7918CA
          company_name: AppNexus
          id: 5f09a1f4b151848e12aa9fbfa1884ea0e5b6a35a6bb280ca88049529c6ecfbd4
          status: not_found
        - company_id: 02F00022696877390B077DE05D7918CA
          company_name: AppNexus
          id: 37ba3e25df4e4904df7d9794e327012ce66fc6d21ba57d33ebc614719a76edc9
          status: missing_pii
      properties:
        contacts:
          items:
            $ref: '#/components/schemas/ContactsEnrichResult'
          type: array
          x-struct: null
          x-validate: null
      required:
      - contacts
      title: ContactsEnrichResponse
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Contacts.Enrich.Response
      x-validate: null
    ContactSearchV2ContactResult:
      description: A contact returned from search
      properties:
        company_domain:
          description: Company domain
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        company_id:
          description: Company identifier
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        company_name:
          description: Company name
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        contact_location_city:
          description: Contact location city
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        contact_location_country:
          description: Contact location country
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        contact_location_region:
          description: Contact location region
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        first_name:
          description: Contact first name
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        full_name:
          description: Contact full name
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        id:
          description: Contact identifier
          type: string
          x-struct: null
          x-validate: null
        job_functions:
          description: Contact job functions
          items:
            type: string
            x-struct: null
            x-validate: null
          type:
          - array
          - 'null'
          x-struct: null
          x-validate: null
        job_seniority:
          description: Contact job seniority
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        job_title:
          description: Contact job title
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        last_name:
          description: Contact last name
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        linkedin_url:
          description: Contact LinkedIn URL
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
      title: ContactSearchV2ContactResult
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Contacts.Search.ContactResult
      x-validate: null
    ContactsEnrichResult:
      example:
        company_id: 02F00022696877390B077DE05D7918CA
        company_name: AppNexus
        email: jane.doe@example.com
        email_status: Unverified
        first_name: Jane
        full_name: Jane Doe
        id: 820b11e9bff6183dbefdf3d29c16202f85fe366f7569d0ca0ddfc7e10d372451
        last_name: Doe
        linkedin_url: https://www.linkedin.com/in/jane-doe-820b11e9
        phone: '+15550000000'
        status: enriched
      properties:
        company_id:
          description: The ID of the contact's company.
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        company_name:
          description: The name of the contact's company.
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        email:
          description: The enriched email address.
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        email_status:
          description: The deliverability status of the email.
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        first_name:
          description: The contact's first name.
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        full_name:
          description: The contact's full name.
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        id:
          description: The contact ID.
          type: string
          x-struct: null
          x-validate: null
        last_name:
          description: The contact's last name.
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        linkedin_url:
          description: The contact's LinkedIn profile URL.
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        phone:
          description: The enriched phone number.
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        status:
          description: The enrichment status for the contact.
          enum:
          - enriched
          - not_found
          - missing_pii
          type: string
          x-struct: null
          x-validate: null
      required:
      - id
      - status
      title: ContactsEnrichResult
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Contacts.Enrich.ContactResult
      x-validate: null
    ContactsSearchRequest:
      additionalProperties: false
      description: Search and filter contacts. Returns a flat list of matching contacts.
      example:
        filters:
          companies:
            ids:
            - 1698C53EBC888758570396E0334965C1
          contact_location:
            countries:
            - US
          job_functions:
          - Engineering
          job_seniority:
          - Director
          time_in_current_role:
          - company_veteran
        limit: 10
        offset: 0
      properties:
        filters:
          $ref: '#/components/schemas/ContactSearchV2Filters'
        limit:
          default: 10
          description: Maximum number of contacts to return
          maximum: 20
          minimum: 1
          type: integer
          x-struct: null
          x-validate: null
        offset:
          default: 0
          description: Number of contacts to skip (max 99)
          maximum: 99
          minimum: 0
          type: integer
          x-struct: null
          x-validate: null
      required:
      - filters
      title: ContactsSearchRequest
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Contacts.Search.Request
      x-validate: Elixir.TalariaWeb.Schemas.V2.Contacts.Search.Request
    JsonErrorResponse:
      properties:
        errors:
          items:
            properties:
              detail:
                example: null value where string expected
                type: string
                x-struct: null
                x-validate: null
              source:
                properties:
                  pointer:
                    example: /data/attributes/petName
                    type: string
                    x-struct: null
                    x-validate: null
                required:
                - pointer
                type: object
                x-struct: null
                x-validate: null
              title:
                example: Invalid value
                type: string
                x-struct: null
                x-validate: null
            required:
            - title
            - source
            - detail
            type: object
            x-struct: null
            x-validate: null
          type: array
          x-struct: null
          x-validate: null
      required:
      - errors
      title: JsonErrorResponse
      type: object
      x-struct: Elixir.OpenApiSpex.JsonErrorResponse
      x-validate: null
    ContactsEnrichEstimateResponse:
      properties:
        available_credits:
          description: Remaining credits in cycle
          type: integer
          x-struct: null
          x-validate: null
        credits_estimate:
          description: Max credits that will be consumed
          format: double
          type: number
          x-struct: null
          x-validate: null
        details:
          description: Per-data-type breakdown (only includes requested fields)
          properties:
            contact_email:
              $ref: '#/components/schemas/DataTypeEstimateDetail'
            contact_phone:
              $ref: '#/components/schemas/DataTypeEstimateDetail'
          type: object
          x-struct: null
          x-validate: null
        sufficient_credits:
          description: Whether org has enough credits
          type: boolean
          x-struct: null
          x-validate: null
      required:
      - credits_estimate
      - available_credits
      - sufficient_credits
      - details
      title: ContactsEnrichEstimateResponse
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Contacts.Enrich.EstimateResponse
      x-validate: null
    PaymentRequiredResponse:
      properties:
        errors:
          items:
            properties:
              detail:
                example: Your organization has exhausted its available credits. Contact customersupport@hginsights.com.
                type: string
                x-struct: null
                x-validate: null
              source:
                type:
                - string
                - 'null'
                x-struct: null
                x-validate: null
              title:
                example: Credits exhausted
                type: string
                x-struct: null
                x-validate: null
            required:
            - title
            - detail
            type: object
            x-struct: null
            x-validate: null
          type: array
          x-struct: null
          x-validate: null
      title: PaymentRequiredResponse
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Error.PaymentRequiredResponse
      x-validate: null
    UnauthorizedResponse:
      properties:
        errors:
          items:
            properties:
              detail:
                example: The api key provided is not valid
                type: string
                x-struct: null
                x-validate: null
              source:
                type:
                - string
                - 'null'
                x-struct: null
                x-validate: null
              title:
                example: Unauthorized
                type: string
                x-struct: null
                x-validate: null
            required:
            - title
            - detail
            type: object
            x-struct: null
            x-validate: null
          type: array
          x-struct: null
          x-validate: null
      title: UnauthorizedResponse
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Error.UnauthorizedResponse
      x-validate: null
    DataTypeEstimateDetail:
      properties:
        credits:
          description: Credits for this data type
          format: double
          type: number
          x-struct: null
          x-validate: null
      title: DataTypeEstimateDetail
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Companies.Enrich.DataTypeDetail
      x-validate: null
    ContactSearchV2ContactLocationFilter:
      additionalProperties: false
      description: Filter contacts by location.
      example:
        countries:
        - US
        - CA
      properties:
        countries:
          description: List of ISO 3166-1 alpha-2 country codes.
          items:
            type: string
            x-struct: null
            x-validate: null
          minItems: 1
          type: array
          x-struct: null
          x-validate: null
      title: ContactSearchV2ContactLocationFilter
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Contacts.Search.ContactLocationFilter
      x-validate: null
    ContactSearchV2CompaniesFilter:
      additionalProperties: false
      description: Filter contacts by company. Provide either `ids` or `domains`, but not both.
      example:
        ids:
        - 1698C53EBC888758570396E0334965C1
      properties:
        domains:
          description: List of company domains.
          items:
            type: string
            x-struct: null
            x-validate: null
          minItems: 1
          type: array
          x-struct: null
          x-validate: null
        ids:
          description: List of hex-encoded HG company IDs.
          items:
            $ref: '#/components/schemas/HexId'
          minItems: 1
          type: array
          x-struct: null
          x-validate: null
      title: ContactSearchV2CompaniesFilter
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Contacts.Search.CompaniesFilter
      x-validate: Elixir.TalariaWeb.Schemas.V2.Contacts.Search.CompaniesFilter
    ContactsEnrichRequest:
      additionalProperties: false
      example:
        fields:
        - email
        - phone
        ids:
        - 820b11e9bff6183dbefdf3d29c16202f85fe366f7569d0ca0ddfc7e10d372451
        - 5f09a1f4b151848e12aa9fbfa1884ea0e5b6a35a6bb280ca88049529c6ecfbd4
        - 37ba3e25df4e4904df7d9794e327012ce66fc6d21ba57d33ebc614719a76edc9
      properties:
        fields:
          description: Fields to enrich for each contact.
          items:
            enum:
            - email
            - phone
            type: string
            x-struct: null
            x-validate: null
          minItems: 1
          type: array
          x-struct: null
          x-validate: null
        ids:
          description: List of contact IDs to enrich. A maximum of 20 IDs may be enriched per request.
          items:
            description: A contact ID (hexadecimal hash key).
            example: 820b11e9bff6183dbefdf3d29c16202f85fe366f7569d0ca0ddfc7e10d372451
            type: string
            x-struct: null
            x-validate: null
          maxItems: 20
          minItems: 1
          type: array
          x-struct: null
          x-validate: null
      required:
      - ids
      - fields
      title: ContactsEnrichRequest
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Contacts.Enrich.Request
      x-validate: null
  securitySchemes:
    authorization:
      bearerFormat: API_KEY
      scheme: bearer
      type: http