> ## Documentation Index
> Fetch the complete documentation index at: https://docs.getpg.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# [BETA] Get company relevance graph

> Ranked relevance signals for a single company — recent material changes, leadership moves, funding, product launches, hiring trends, technology mentions and strategic shifts — drawn from PG:AI insights, public filings and news, web pages, jobs and technologies. Identical behaviour to `GET /companies/{company_id}/relevance`; this alias is retained for legacy clients. Returns `{ items, total, page, per_page }`.



## OpenAPI

````yaml https://api.getpg.ai/docs/v1/openapi.json get /companies/{company_id}/graph
openapi: 3.0.0
info:
  title: PG:AI Public API
  version: 1.0.0
  description: >-
    Public API for accessing PG:AI account intelligence, contacts, territories,
    and more. All endpoints require API key authentication via the x-api-key
    header.
  contact:
    name: PG:AI Support
    url: https://www.getpg.ai
servers:
  - url: https://api.getpg.ai/public-api/v1
    description: Production
security:
  - ApiKeyAuth: []
paths:
  /companies/{company_id}/graph:
    get:
      tags:
        - companies
      summary: '[BETA] Get company relevance graph'
      description: >-
        Ranked relevance signals for a single company — recent material changes,
        leadership moves, funding, product launches, hiring trends, technology
        mentions and strategic shifts — drawn from PG:AI insights, public
        filings and news, web pages, jobs and technologies. Identical behaviour
        to `GET /companies/{company_id}/relevance`; this alias is retained for
        legacy clients. Returns `{ items, total, page, per_page }`.
      parameters:
        - name: company_id
          in: path
          required: true
          schema:
            type: string
          description: UUID of the company
        - name: q
          in: query
          required: false
          schema:
            type: string
          description: Override the default relevance query.
        - name: per_source
          in: query
          required: false
          schema:
            type: integer
            default: 10
          description: Max hits per source (default 10, max 50).
        - name: date_from
          in: query
          required: false
          schema:
            type: string
          description: ISO 8601 lower bound on result date.
        - name: date_to
          in: query
          required: false
          schema:
            type: string
          description: ISO 8601 upper bound on result date.
      responses:
        '200':
          description: Success — `{ items, total, page, per_page }` envelope
          content:
            application/json:
              schema:
                type: object
                description: Response data
        '400':
          description: Invalid company ID format
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '403':
          description: 'Access denied. Required: companies:read'
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '404':
          description: Company not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
        '500':
          description: Unexpected error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error'
      deprecated: false
      security:
        - ApiKeyAuth: []
components:
  schemas:
    Error:
      type: object
      description: Error response
      properties:
        error:
          type: string
          description: Error type or code
        message:
          type: string
          description: Human-readable error message
        details:
          type: object
          description: Additional error details
          additionalProperties: true
      required:
        - error
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key
      description: >-
        Your API key for authentication. Get your API key from the PG:AI
        dashboard under Settings > API Keys.

````