---
title: "Search entities by name"
method: GET
path: "/entities/search"
tags: ["entities"]
---

# Search entities by name

`GET /entities/search`

## Request

- Base URL: `https://api.whoisgeni.us` (the document declares no server; this is the origin it was published from)
- URL: `https://api.whoisgeni.us/entities/search`
- Auth: none declared

Search entities by name with relevance ranking.

Returns entities matching the query ranked by relevance (exact > prefix
> substring), with associated domains and per-domain attribution
confidence from entity signals.

Query is normalized using the same function used to store entity names,
so searches like "Google LLC" and "google" both match the same entities.

When ``include_portfolio`` is true, top 5 results are enriched with a
``portfolio_count`` field from Reverse WHOIS preview mode (free, adds
1-3 seconds latency per entity).

Requires API key authentication via X-API-Key header.

## Query parameters

- `q` string, required: Entity name search query
- `limit` integer
- `offset` integer
- `include_portfolio` boolean: Include portfolio count from Reverse WHOIS (adds latency)

## Headers

- `X-API-Key` string, nullable

## Response `200`

Successful Response

- ApiResponseEntitySearchResponse
  - `data` EntitySearchResponse: Paginated entity search results. Attributes: query: Original search query string. total: Total number of matching entities. entities: List of matched entities with relevance and domains. limit: Maximum results per page. offset: Number of results skipped. has_more: Whether more results exist beyond this page.
    - `query` string, required
    - `total` integer, required
    - `entities` EntityMatch[], required
      - `entity_id` string, required
      - `name` string, required
      - `display_name` string, required
      - `entity_type` string, required
      - `domain_count` integer, required
      - `domains` DomainAttribution[]
        - `domain` string, required
        - `domain_id` string, required
        - `confidence` number, required
        - `signal_count` integer, required
        - `last_seen` string, required
      - `relevance` number, required
      - `portfolio_count` integer, nullable
    - `limit` integer, required
    - `offset` integer, required
    - `has_more` boolean, required
  - `error` ErrorDetail: Structured error information for API error responses. Attributes: code: Machine-readable error code (e.g. "JOB_NOT_FOUND"). message: Human-readable error description. details: Optional additional context for debugging.
    - `code` string, required
    - `message` string, required
    - `details` object, nullable
  - `meta` object, nullable

## Other responses

- `401`: Unauthorized — missing or invalid API key/JWT.
- `422`: Validation Error

---

[API](https://skmtc.dev/whoisgeni/apis/whoisgenius.md) · [All operations](https://skmtc.dev/whoisgeni/apis/whoisgenius/llms.txt) · [OpenAPI document](https://skmtc.dev/whoisgeni/apis/whoisgenius/revisions/707f1c34f6b3?raw)
