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

# Get Entity

> Retrieve full entity profile with co-occurring entities

<ParamField path="name_or_id" type="string" required>
  Public entity ID (`gld:/…`) or URL-encoded display name (e.g., `NVIDIA` or `gld:/a1b2c3d4e5f6`). Internal prefix-encoded IDs are rejected with a 400.
</ParamField>

<ResponseField name="entity_id" type="string">Stable, opaque public entity ID (e.g., `gld:/a1b2c3d4e5f6`).</ResponseField>
<ResponseField name="name" type="string">Human-readable entity name.</ResponseField>
<ResponseField name="type" type="string">Entity type. See [Entities](/concepts/entities) for all 8 types.</ResponseField>
<ResponseField name="signal_count" type="integer">Total signals mentioning this entity.</ResponseField>

<ResponseField name="trend" type="object">
  Trend analytics.

  <Expandable title="Trend fields">
    <ResponseField name="share_of_voice" type="number">Entity's share of total corpus over the trailing 4 weeks.</ResponseField>
    <ResponseField name="streak" type="integer">Consecutive weeks of growth.</ResponseField>
    <ResponseField name="current_week" type="integer">Signal count this week.</ResponseField>
    <ResponseField name="prior_week" type="integer">Signal count last week.</ResponseField>
    <ResponseField name="source_diversity" type="integer">Count of distinct source domains.</ResponseField>
  </Expandable>
</ResponseField>

<ResponseField name="scale" type="string">`Large`, `Medium`, or `Small`.</ResponseField>
<ResponseField name="direction" type="string">`Rising`, `Stable`, `Declining`, or `New`. Null if fewer than 8 mentions.</ResponseField>
<ResponseField name="confidence" type="string">`Significant` or `Insignificant`.</ResponseField>
<ResponseField name="stability" type="string">`Volatile` or `Steady`.</ResponseField>
<ResponseField name="notability" type="string">`High`, `Medium`, `Low`, or `Negligible`. How much this entity warrants attention right now.</ResponseField>
<ResponseField name="notability_reasoning" type="string">Explanation of the notability assignment.</ResponseField>
<ResponseField name="content_type_mix" type="object">Signal count by content type (e.g., `{"analysis": 90, "event": 66}`).</ResponseField>
<ResponseField name="value_chain_distribution" type="object">Signal count by value chain theme.</ResponseField>
<ResponseField name="market_force_distribution" type="object">Signal count by market force theme.</ResponseField>

<ResponseField name="related_entities" type="array">
  Co-occurring entities ranked by frequency.

  <Expandable title="Related entity">
    <ResponseField name="entity_id" type="string">Public ID of the related entity.</ResponseField>
    <ResponseField name="name" type="string">Display name.</ResponseField>
    <ResponseField name="type" type="string">Entity type.</ResponseField>
    <ResponseField name="co_occurrence_count" type="integer">Number of signals both entities appear in.</ResponseField>
  </Expandable>
</ResponseField>

<RequestExample>
  ```bash cURL theme={null}
  curl -H "X-API-Key: gld_your_key" \
    "https://api.gildea.ai/v1/entities/NVIDIA"
  ```

  ```python Python theme={null}
  import requests

  entity = requests.get(
      "https://api.gildea.ai/v1/entities/NVIDIA",
      headers={"X-API-Key": "gld_your_key"},
  ).json()
  ```

  ```javascript JavaScript theme={null}
  const resp = await fetch(
    "https://api.gildea.ai/v1/entities/NVIDIA",
    { headers: { "X-API-Key": "gld_your_key" } }
  );
  const entity = await resp.json();
  ```
</RequestExample>

<ResponseExample>
  ```json 200 theme={null}
  {
    "entity_id": "gld:/a1b2c3d4e5f6",
    "name": "NVIDIA",
    "type": "organization",
    "signal_count": 156,
    "first_seen": "2025-10-03T00:00:00Z",
    "last_seen": "2026-02-14T00:00:00Z",
    "trend": {
      "share_of_voice": 0.12,
      "streak": 4,
      "current_week": 15,
      "prior_week": 10,
      "source_diversity": 12
    },
    "scale": "Large",
    "direction": "Rising",
    "confidence": "Significant",
    "stability": "Steady",
    "notability": "High",
    "notability_reasoning": "Large-scale entity with confirmed upward trend and consistent coverage; notable upward shift reliably gaining share.",
    "content_type_mix": {"analysis": 90, "event": 66},
    "value_chain_distribution": {"Infrastructure": 80, "Foundation Models": 45},
    "market_force_distribution": {"Competitive Dynamics": 70, "Capital & Investment": 50},
    "related_entities": [
      {
        "entity_id": "gld:/b2c3d4e5f6a7",
        "name": "TSMC",
        "type": "organization",
        "co_occurrence_count": 28
      },
      {
        "entity_id": "gld:/c3d4e5f6a7b8",
        "name": "AMD",
        "type": "organization",
        "co_occurrence_count": 22
      }
    ]
  }
  ```

  ```json 404 theme={null}
  {
    "error": {
      "code": "not_found",
      "message": "Entity 'nonexistent' not found",
      "status": 404
    }
  }
  ```
</ResponseExample>


## OpenAPI

````yaml GET /v1/entities/{name_or_id}
openapi: 3.1.0
info:
  title: Gildea API
  description: >-
    Market intelligence on the AI economy, built for agents. Gildea ingests
    expert sources (podcasts, essays, VC memos, X posts, research papers, news)
    and decomposes them into verified, source-cited atomic facts: thesis
    sentences, argument sentences, summary sentences, and claims.


    **Key capabilities:**

    - Verified atomic facts with verbatim source citations

    - Entity intelligence with trend analytics across 8 entity types

    - Theme taxonomy (6 value-chain segments + 6 market forces)

    - Search verified text units by free-text query or by similarity to a known
    unit


    Only `verdict=pass` data is served. Every claim cites the source evidence it
    was extracted from.
  version: 0.1.0
servers:
  - url: https://api.gildea.ai
    description: Production
  - url: http://localhost:8000
    description: Local development
security:
  - ApiKeyAuth: []
tags:
  - name: signals
    description: >-
      Market intelligence signals — articles decomposed into verified text
      units.
  - name: entities
    description: >-
      Entity intelligence — companies, people, and products with trend
      analytics.
  - name: themes
    description: Taxonomy themes — value chain segments and market forces with trend stats.
  - name: search
    description: >-
      Search Gildea's verified text units — text queries or similarity to a
      known unit.
  - name: health
    description: Service health and status.
  - name: admin
    description: Administrative operations (requires admin secret).
paths:
  /v1/entities/{name_or_id}:
    get:
      tags:
        - entities
      summary: Get entity detail
      description: >-
        Retrieve full entity profile including trend stats, theme distributions,
        and co-occurring entities. Accepts a public entity ID (`gld:/…`) or a
        URL-encoded display name.
      operationId: get_entity_v1_entities__name_or_id__get
      parameters:
        - name: name_or_id
          in: path
          required: true
          schema:
            type: string
            title: Name Or Id
      responses:
        '200':
          description: Entity profile with related entities.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/EntityDetail'
                type: object
                additionalProperties: true
                title: Response Get Entity V1 Entities  Name Or Id  Get
        '400':
          description: Input looks like an internal entity ID.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '401':
          description: Invalid or missing API key.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Entity not found.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
        '429':
          description: Rate limit exceeded.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    EntityDetail:
      properties:
        entity_id:
          type: string
          title: Entity Id
          description: Stable public entity ID.
          examples:
            - gld:/a1b2c3d4e5f6
        name:
          type: string
          title: Name
          description: Canonical display name.
          examples:
            - NVIDIA
        type:
          type: string
          title: Type
          description: Entity type.
          examples:
            - organization
        signal_count:
          type: integer
          title: Signal Count
          description: Total signals mentioning this entity.
        first_seen:
          anyOf:
            - type: string
            - type: 'null'
          title: First Seen
          description: Earliest signal mention (ISO date).
        last_seen:
          anyOf:
            - type: string
            - type: 'null'
          title: Last Seen
          description: Most recent signal mention (ISO date).
        trend:
          $ref: '#/components/schemas/EntityTrend'
        content_type_mix:
          additionalProperties:
            type: integer
          type: object
          title: Content Type Mix
        value_chain_distribution:
          additionalProperties:
            type: integer
          type: object
          title: Value Chain Distribution
        market_force_distribution:
          additionalProperties:
            type: integer
          type: object
          title: Market Force Distribution
        scale:
          anyOf:
            - type: string
              enum:
                - Large
                - Medium
                - Small
            - type: 'null'
          title: Scale
          description: 'Interpretation: relative scale.'
        direction:
          anyOf:
            - type: string
              enum:
                - Rising
                - Stable
                - Declining
                - New
            - type: 'null'
          title: Direction
          description: 'Interpretation: trend direction.'
        confidence:
          anyOf:
            - type: string
              enum:
                - Significant
                - Insignificant
            - type: 'null'
          title: Confidence
          description: 'Interpretation: statistical confidence.'
        stability:
          anyOf:
            - type: string
              enum:
                - Volatile
                - Steady
            - type: 'null'
          title: Stability
          description: 'Interpretation: signal stability.'
        notability:
          anyOf:
            - type: string
              enum:
                - High
                - Medium
                - Low
                - Negligible
            - type: 'null'
          title: Notability
          description: 'Interpretation: foreground vs background.'
        notability_reasoning:
          anyOf:
            - type: string
            - type: 'null'
          title: Notability Reasoning
        related_entities:
          items:
            $ref: '#/components/schemas/RelatedEntity'
          type: array
          title: Related Entities
      type: object
      required:
        - entity_id
        - name
        - type
        - signal_count
        - trend
      title: EntityDetail
    ErrorResponse:
      properties:
        error:
          $ref: '#/components/schemas/ErrorDetail'
      type: object
      required:
        - error
      title: ErrorResponse
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    EntityTrend:
      properties:
        share_of_voice:
          type: number
          title: Share Of Voice
          description: Share of total corpus over the trailing window (0–1).
          examples:
            - 0.12
        streak:
          type: integer
          title: Streak
          description: Consecutive weeks of growth.
          examples:
            - 4
        current_week:
          type: integer
          title: Current Week
          description: Signal count in the current week.
          examples:
            - 15
        prior_week:
          type: integer
          title: Prior Week
          description: Signal count in the prior week.
          examples:
            - 10
        source_diversity:
          type: integer
          title: Source Diversity
          description: Distinct source domains mentioning this entity.
          examples:
            - 12
      type: object
      required:
        - share_of_voice
        - streak
        - current_week
        - prior_week
        - source_diversity
      title: EntityTrend
      description: >-
        Legible trend counts. Raw estimators (Theil-Sen, Mann-Kendall, etc.) are

        not exposed — the interpretation fields (scale/direction/...) summarize
        them.
    RelatedEntity:
      properties:
        entity_id:
          type: string
          title: Entity Id
          description: Public ID of the related entity.
          examples:
            - gld:/a1b2c3d4e5f6
        name:
          type: string
          title: Name
          examples:
            - OpenAI
        type:
          anyOf:
            - type: string
            - type: 'null'
          title: Type
          examples:
            - organization
        co_occurrence_count:
          type: integer
          title: Co Occurrence Count
          description: Signals where both entities appear together.
      type: object
      required:
        - entity_id
        - name
        - co_occurrence_count
      title: RelatedEntity
    ErrorDetail:
      properties:
        code:
          type: string
          title: Code
          description: Machine-readable error code.
          examples:
            - not_found
        message:
          type: string
          title: Message
          description: Human-readable error description.
          examples:
            - Signal '0001f3a7b9c8d4e5f6a7b8c9d0e1f2a3b4c5d6e7' not found
        status:
          type: integer
          title: Status
          description: HTTP status code.
          examples:
            - 404
        field:
          anyOf:
            - type: string
            - type: 'null'
          title: Field
          description: 'For validation errors: path to the offending parameter.'
          examples:
            - body.text
        request_id:
          anyOf:
            - type: string
            - type: 'null'
          title: Request Id
          description: Correlation id (also on the X-Request-Id response header).
        retry_after:
          anyOf:
            - type: integer
            - type: 'null'
          title: Retry After
          description: >-
            Seconds to wait before retrying (mirrors the Retry-After header).
            Present on 429 (rate limited) and 503 (temporarily unavailable).
        reset:
          anyOf:
            - type: integer
            - type: 'null'
          title: Reset
          description: >-
            Unix epoch seconds when the exceeded rate-limit window resets.
            Present on 429.
      type: object
      required:
        - code
        - message
        - status
      title: ErrorDetail
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
        input:
          title: Input
        ctx:
          type: object
          title: Context
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: X-API-Key
      description: >-
        API key for authentication. Include in every request as `X-API-Key:
        gld_your_key_here`.

````