HG Insights Credits API

The Credits API from HG Insights, for credits.

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 1

GET /data-api/v2/credits Get Credits Balance #

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-credits-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-credits-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 Credits API
  version: ''
servers:
- url: https://api.hginsights.com
  variables: {}
security:
- authorization: []
tags:
- name: Credits
paths:
  /data-api/v2/credits:
    get:
      callbacks: {}
      description: Returns credit balance, contract dates, and data entitlements for the authenticated organization.
      operationId: get_credits
      parameters: []
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditsResponse'
          description: Credits Response
        '401':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/UnauthorizedResponse'
          description: Unauthorized
        '502':
          content:
            application/json:
              schema:
                properties:
                  error:
                    example: upstream_error
                    type: string
                    x-struct: null
                    x-validate: null
                type: object
                x-struct: null
                x-validate: null
          description: Upstream Error
      summary: Get Credits Balance
      tags:
      - Credits
components:
  schemas:
    Entitlements:
      properties:
        companies:
          allOf:
          - $ref: '#/components/schemas/CompanyEntitlements'
          description: Company data entitlements, or null if not entitled
          type:
          - object
          - 'null'
          x-struct: null
          x-validate: null
      title: Entitlements
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Credits.Entitlements
      x-validate: null
    Credits:
      properties:
        consumed:
          description: Credits consumed so far
          example: 500
          type: integer
          x-struct: null
          x-validate: null
        percentage_consumed:
          description: Percentage of credits consumed
          example: 25
          format: float
          type: number
          x-struct: null
          x-validate: null
        remaining:
          description: Credits remaining
          example: 1500
          type: integer
          x-struct: null
          x-validate: null
        total:
          description: Total credits in contract
          example: 2000
          type: integer
          x-struct: null
          x-validate: null
      title: Credits
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Credits.Credits
      x-validate: null
    CreditsResponse:
      properties:
        contract_end:
          description: Contract end date
          example: '2024-12-31'
          type: string
          x-struct: null
          x-validate: null
        contract_start:
          description: Contract start date
          example: '2024-01-01'
          type: string
          x-struct: null
          x-validate: null
        credits:
          $ref: '#/components/schemas/Credits'
        entitlements:
          $ref: '#/components/schemas/Entitlements'
      title: CreditsResponse
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Credits.Response
      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
    CompanyEntitlements:
      properties:
        fai:
          description: Access level for Functional Area Intelligence data
          enum:
          - none
          - full
          - null
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        firmographics:
          description: Access level for firmographic data
          example: full
          type: string
          x-struct: null
          x-validate: null
        intent:
          description: Access level for intent data
          enum:
          - none
          - full
          - null
          type:
          - string
          - 'null'
          x-struct: null
          x-validate: null
        spend:
          description: Access level for spend data
          example: full
          type: string
          x-struct: null
          x-validate: null
        technographics:
          description: Access level for technographic data
          example: full
          type: string
          x-struct: null
          x-validate: null
      title: CompanyEntitlements
      type: object
      x-struct: Elixir.TalariaWeb.Schemas.V2.Credits.CompanyEntitlements
      x-validate: null
  securitySchemes:
    authorization:
      bearerFormat: API_KEY
      scheme: bearer
      type: http