Pipecorn Miscellaneous API

Pipecorn Miscellaneous API

GitHub OpenAPI

Operations 4

POST /locations Get the location id of a specific location #
GET /credits Retrieve credit balances #
GET /credits_consumption Retrieve credit consumption for a date range #
GET /account Retrieve account information #

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/pipecorn-com:pipecorn-com-miscellaneous-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

pipecorn-com-miscellaneous-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Pipecorn Miscellaneous API
  version: 2.0.0
  description: 'Search companies and people, enrich them with a verified work email and mobile number, and read buying signals.


    Authenticate with your API key in the X-API-KEY header. Enrichment spends credits (an email costs 3, a mobile 30); extraction spends plan quotas.

    A 402 with code insufficient_credits means the credit balance is empty, a 403 with code workspace_limit_exceeded means a workspace admin capped this member, a 422 "Plan limit reached." means an extraction quota ran out, a 429 means slow down.

    Responses from endpoints under the plan rate limit carry RateLimit-Limit, RateLimit-Remaining and RateLimit-Reset; a 429 adds Retry-After. Send an Idempotency-Key header on a POST to retry it without running or paying twice. Async enrichment returns a Location status URL; list endpoints page with cursor.


    Docs: https://docs.pipecorn.com/api-reference/overview. Agent guide: https://docs.pipecorn.com/agents.md.

    The same data is available over MCP at https://mcp.pipecorn.com/mcp.

    Synchronous enrichment, on another host, has its own spec: https://pipecorn.com/openapi/sync-enrichment.json.'
  contact:
    name: Pipecorn
    url: https://pipecorn.com/contact
  termsOfService: https://pipecorn.com/terms-of-service
  x-logo:
    url: https://pipecorn.com/assets/logo-pipecorn-square.svg
servers:
- url: https://app.pipecorn.com/api/v2
security:
- apiKey: []
tags:
- name: Miscellaneous
  description: Pipecorn Miscellaneous API
paths:
  /locations:
    post:
      operationId: search_locations
      tags:
      - Miscellaneous
      summary: Get the location id of a specific location
      description: 'Resolve location names to IDs used by search endpoints. The `source` parameter selects which catalog to resolve against:


        - `live` (default): LinkedIn Sales Navigator. Requires valid LinkedIn credentials on the account.

        - `database`: the internal geo database used by the company/lead database search endpoints. No LinkedIn credentials required.

        - `hiring`: the hiring-signal location catalog. No LinkedIn credentials required.


        The shape of each returned item depends on the `source` (see the response examples below).'
      requestBody:
        required: true
        content:
          application/json:
            schema:
              type: object
              required:
              - name
              properties:
                name:
                  type: string
                  example: San Francisco
                  description: The name of the location to get the id of
                source:
                  type: string
                  enum:
                  - live
                  - database
                  - hiring
                  default: live
                  example: live
                  description: Which location catalog to resolve against. `live` uses LinkedIn Sales Navigator (requires LinkedIn credentials); `database` uses the internal geo database; `hiring` uses the hiring-signal catalog. Defaults to `live` when omitted.
              example:
                name: San Francisco
                source: live
      responses:
        '200':
          description: Locations retrieved successfully. Each item always includes `id` and `name`; additional fields depend on the `source`.
          content:
            application/json:
              schema:
                type: array
                items:
                  type: object
                  properties:
                    id:
                      type: string
                      description: The ID of the location, to be passed to search endpoints.
                    name:
                      type: string
                      description: 'The name of the location. For `source: live` this is the full display name.'
                    display_name:
                      type: string
                      description: 'Full human-readable location name. Returned for `source: hiring` only.'
                    country_code:
                      type: string
                      description: 'ISO 3166-1 alpha-2 country code. Returned for `source: hiring` only.'
                    type:
                      type: string
                      description: 'Geo-zone kind (e.g. country, region, city). Returned for `source: database` only.'
                    subtitle:
                      type: string
                      description: 'Human-readable context such as parent regions and kind. Returned for `source: database` only.'
              examples:
                live:
                  summary: 'source: live (LinkedIn Sales Navigator)'
                  value:
                  - name: San Francisco Bay Area
                    id: '90000084'
                  - name: San Francisco, California, United States
                    id: '102277331'
                database:
                  summary: 'source: database (internal geo database)'
                  value:
                  - id: country:fr
                    name: France
                    type: country
                    subtitle: country
                hiring:
                  summary: 'source: hiring (hiring-signal catalog)'
                  value:
                  - id: '1'
                    display_name: Paris, France
                    name: Paris
                    country_code: FR
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
            Idempotent-Replayed:
              $ref: '#/components/headers/Idempotent-Replayed'
        '409':
          $ref: '#/components/responses/IdempotencyConflict'
      parameters:
      - $ref: '#/components/parameters/IdempotencyKey'
  /credits:
    get:
      operationId: get_credits
      tags:
      - Miscellaneous
      summary: Retrieve credit balances
      description: Returns the current credit balances and limits for various services
      responses:
        '200':
          description: A JSON array of list objects
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/Credit'
  /credits_consumption:
    get:
      operationId: get_credits_consumption
      tags:
      - Miscellaneous
      summary: Retrieve credit consumption for a date range
      description: Returns your current credit balance and the total enrichment credits consumed between a start and end date (inclusive). Dates are provided as `YYYY-MM-DD` query parameters and are interpreted in UTC, from the start of `start_date` to the end of `end_date`.
      parameters:
      - name: start_date
        in: query
        required: true
        description: Start of the range (inclusive), formatted as YYYY-MM-DD.
        schema:
          type: string
          format: date
          example: '2026-01-01'
      - name: end_date
        in: query
        required: true
        description: End of the range (inclusive), formatted as YYYY-MM-DD. Must be on or after start_date.
        schema:
          type: string
          format: date
          example: '2026-01-31'
      responses:
        '200':
          description: Current balance and credits consumed over the requested range
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CreditConsumption'
          headers:
            RateLimit-Limit:
              $ref: '#/components/headers/RateLimit-Limit'
            RateLimit-Remaining:
              $ref: '#/components/headers/RateLimit-Remaining'
            RateLimit-Reset:
              $ref: '#/components/headers/RateLimit-Reset'
        '422':
          description: Missing or invalid date parameters (missing date, malformed date, or start_date after end_date)
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
  /account:
    get:
      operationId: get_account
      tags:
      - Miscellaneous
      summary: Retrieve account information
      description: 'Returns the current account information: subscription plan, the email address of the user the API key belongs to, and the integration session status'
      responses:
        '200':
          description: Account information
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Account'
components:
  schemas:
    CreditConsumption:
      type: object
      properties:
        current_credit_balance:
          type: integer
          description: Your current enrichment credit balance.
          example: 3000
        consumption:
          type: object
          properties:
            start_date:
              type: string
              format: date
              description: Start of the range (inclusive), echoed back.
              example: '2026-01-01'
            end_date:
              type: string
              format: date
              description: End of the range (inclusive), echoed back.
              example: '2026-01-31'
            credits_consumed:
              type: integer
              description: Total enrichment credits consumed within the range.
              example: 1250
    Account:
      type: object
      properties:
        account:
          type: object
          properties:
            plan:
              type: string
              description: The current subscription plan
              example: scale
            email:
              type: string
              format: email
              description: Email address of the user the API key belongs to
              example: jane@acme.com
        integrations:
          type: object
          properties:
            linkedin_session_valid:
              type: boolean
              description: Whether the LinkedIn session is still valid
              example: true
            sales_navigator_session_valid:
              type: boolean
              description: Whether the Sales Navigator session is still valid
              example: true
    Error:
      required:
      - error
      type: object
      properties:
        error:
          description: Human-readable error message. A few validation errors return a list of messages, or an object with more detail, instead of a single string.
          oneOf:
          - type: string
          - type: array
            items:
              type: string
          - type: object
    Credit:
      type: object
      properties:
        credits:
          type: object
          properties:
            enrichment:
              type: integer
              description: Number of enrichment credits remaining
              example: 3000
            daily_profile_scraping:
              type: integer
              description: Number of daily profile scraping credits remaining
              example: 1500
            daily_company_import:
              type: integer
              description: Number of daily company import credits remaining
              example: 1000
            monthly_company_import:
              type: integer
              description: Number of monthly company import credits remaining
              example: 10000
        limits:
          type: object
          properties:
            daily_profile_scraping:
              type: integer
              example: 2500
              description: Maximum daily profile scraping credits
            daily_company_import:
              type: integer
              example: 1000
              description: Maximum daily company import credits
            monthly_company_import:
              type: integer
              example: 10000
              description: Maximum monthly company import credits
  responses:
    IdempotencyConflict:
      description: A request with this `Idempotency-Key` is still being processed. Wait for the `Retry-After` delay and retry with the same key.
      headers:
        Retry-After:
          $ref: '#/components/headers/Retry-After'
      content:
        application/json:
          schema:
            type: object
            properties:
              error:
                type: string
              code:
                type: string
                enum:
                - idempotency_key_in_use
          example:
            error: A request with this Idempotency-Key is still being processed
            code: idempotency_key_in_use
  headers:
    Idempotent-Replayed:
      description: '`true` when this response is a replay of an earlier request sent with the same `Idempotency-Key`. Nothing was run or charged again.'
      schema:
        type: string
        enum:
        - 'true'
    RateLimit-Limit:
      description: Requests allowed per minute on your plan for this group of endpoints. Absent for unlimited accounts and on endpoints exempt from the plan limit.
      schema:
        type: integer
        example: 100
    RateLimit-Remaining:
      description: Requests left in the current one-minute window.
      schema:
        type: integer
        example: 97
    RateLimit-Reset:
      description: Seconds until the current window resets and `RateLimit-Remaining` is back to `RateLimit-Limit`.
      schema:
        type: integer
        example: 42
    Retry-After:
      description: Seconds to wait before retrying. Sent when the plan limit or a request still in progress caused the error.
      schema:
        type: integer
        example: 42
  parameters:
    IdempotencyKey:
      name: Idempotency-Key
      in: header
      required: false
      description: A unique value you generate per operation, such as a UUID. Retrying with the same key and the same body returns the stored response instead of running the request again, so a retry after a timeout never charges twice. Successful responses are kept for 24 hours; a failed request is not stored and can be retried with the same key.
      schema:
        type: string
        maxLength: 255
        example: 4f1c2e9a-8a7d-4c1b-9f63-2d6e0b5a7c11
  securitySchemes:
    apiKey:
      type: apiKey
      in: header
      name: X-API-KEY
      description: 'Your Pipecorn API key, created at https://app.pipecorn.com/settings/apis/keys. Rate limits are counted per user, not per key. A test key (pc_test_…, or the public pc_test_demo) returns sample data and spends no credits: https://docs.pipecorn.com/essentials/sandbox'