Skip to main content
POST
/
api
/
v1
/
entities
/
prospects
/
company
curl -X POST https://api.lance.app/api/v1/entities/prospects/company \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "page": 0,
    "size": 10,
    "account": {
      "industry": {
        "any": {
          "include": ["software development", "it services and it consulting"]
        }
      },
      "location": {
        "any": {
          "include": ["United States"]
        }
      }
    }
  }'
{
  "content": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "createdAt": "2024-01-15T10:30:00.000Z",
      "updatedAt": "2024-01-15T10:30:00.000Z",
      "name": "Acme Technologies Inc.",
      "description": "Acme Technologies is a leading provider of enterprise software solutions...",
      "summary": "Enterprise software company specializing in cloud-based workflow automation and data analytics for Fortune 500 companies.",
      "headcount": "201-500",
      "industry": "software development",
      "phones": ["+1-555-123-4567"],
      "linkedinUrl": "https://www.linkedin.com/company/acme-technologies",
      "websiteUrl": "https://www.acmetech.com",
      "domain": "acmetech.com",
      "city": "San Francisco",
      "postalCode": "94105",
      "country": "United States",
      "logoUrl": "https://media.licdn.com/company/acme-logo.png",
      "baseProviderId": "ark_123456",
      "bullhornId": null,
      "crmId": null,
      "legalName": "Acme Technologies, Inc.",
      "foundedYear": 2015,
      "revenue": "$10M - $50M",
      "location": {
        "headquarter": {
          "continent": "North America",
          "country": "United States",
          "state": "California",
          "city": "San Francisco",
          "street": "123 Market Street",
          "postalCode": "94105",
          "rawAddress": "123 Market Street, San Francisco, CA 94105",
          "coordinates": {
            "lat": 37.7749,
            "lng": -122.4194
          }
        },
        "locations": []
      }
    }
  ],
  "totalElements": 1542,
  "totalPages": 155,
  "number": 0,
  "size": 10,
  "first": true,
  "last": false,
  "numberOfElements": 10,
  "empty": false
}
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

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

Response

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

Examples

curl -X POST https://api.lance.app/api/v1/entities/prospects/company \
  -H "Authorization: Bearer <token>" \
  -H "Content-Type: application/json" \
  -d '{
    "page": 0,
    "size": 10,
    "account": {
      "industry": {
        "any": {
          "include": ["software development", "it services and it consulting"]
        }
      },
      "location": {
        "any": {
          "include": ["United States"]
        }
      }
    }
  }'
{
  "content": [
    {
      "id": "550e8400-e29b-41d4-a716-446655440000",
      "createdAt": "2024-01-15T10:30:00.000Z",
      "updatedAt": "2024-01-15T10:30:00.000Z",
      "name": "Acme Technologies Inc.",
      "description": "Acme Technologies is a leading provider of enterprise software solutions...",
      "summary": "Enterprise software company specializing in cloud-based workflow automation and data analytics for Fortune 500 companies.",
      "headcount": "201-500",
      "industry": "software development",
      "phones": ["+1-555-123-4567"],
      "linkedinUrl": "https://www.linkedin.com/company/acme-technologies",
      "websiteUrl": "https://www.acmetech.com",
      "domain": "acmetech.com",
      "city": "San Francisco",
      "postalCode": "94105",
      "country": "United States",
      "logoUrl": "https://media.licdn.com/company/acme-logo.png",
      "baseProviderId": "ark_123456",
      "bullhornId": null,
      "crmId": null,
      "legalName": "Acme Technologies, Inc.",
      "foundedYear": 2015,
      "revenue": "$10M - $50M",
      "location": {
        "headquarter": {
          "continent": "North America",
          "country": "United States",
          "state": "California",
          "city": "San Francisco",
          "street": "123 Market Street",
          "postalCode": "94105",
          "rawAddress": "123 Market Street, San Francisco, CA 94105",
          "coordinates": {
            "lat": 37.7749,
            "lng": -122.4194
          }
        },
        "locations": []
      }
    }
  ],
  "totalElements": 1542,
  "totalPages": 155,
  "number": 0,
  "size": 10,
  "first": true,
  "last": false,
  "numberOfElements": 10,
  "empty": false
}

Error Responses

400 Bad Request
Returned when the request body fails validation.
{
  "error": "Invalid request body",
  "issues": [
    {
      "code": "too_big",
      "maximum": 100,
      "type": "number",
      "inclusive": true,
      "exact": false,
      "message": "Number must be less than or equal to 100",
      "path": ["size"]
    }
  ]
}

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.