Skip to main content
POST
Search for companies across the Lance database using comprehensive filters including industry, location, employee size, funding, and more. Results are automatically saved to the database and enriched with company summaries in the background.

Authentication

This endpoint requires authentication. The user must be logged in and belong to an organization.
Company summary generation runs in the background and consumes credits. Only companies with a description and LinkedIn URL but no existing summary will be enriched.

Request

Body Parameters

string[]
Array of company URLs (LinkedIn or website) to search for specific companies.
integer
default:0
Page number for pagination (0-indexed).
integer
default:10
Number of results per page. Must be between 0 and 100.
object
Account-level filters for company search.

Response

Company[]
Array of company objects matching the search criteria.
integer | null
Total number of companies matching the search criteria.
integer | null
Total number of pages available.
integer | null
Current page number (0-indexed).
integer | null
Number of results per page.
boolean | null
Whether this is the first page.
boolean | null
Whether this is the last page.
integer | null
Number of elements in the current page.
boolean | null
Whether the result set is empty.

Examples

Error Responses

Returned when the request body fails validation.

Background Processing

This endpoint triggers two background processes:
  1. Global Company Repository Sync: All returned companies are saved to the global company repository for cross-tenant data sharing.
  2. Company Summary Generation: Companies that have a description and linkedinUrl but no summary will have AI-generated summaries created in the background. This process:
    • Consumes credits from the organization’s account
    • Only runs in production with valid organization credentials
    • Updates the company records asynchronously
The response returns immediately with the search results. Background processing does not affect response time.