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

> Look up the full Extruct profile for a known company.

# Lookup Company Profile

## Overview

Company Lookup returns the canonical enriched Extruct profile for one known company.
Pass a company domain or UUID.

Use this endpoint when you already know the company and want its full profile context.
Use [Semantic Search](/api-reference/search) to discover companies by category or market, and [Lookalike Search](/api-reference/lookalike-search) to find similar companies.

## Example request

```bash theme={null}
export EXTRUCT_API_TOKEN="YOUR_API_TOKEN"

curl "https://api.extruct.ai/v1/companies/stripe.com" \
  -H "Authorization: Bearer ${EXTRUCT_API_TOKEN}"
```

## Key parameters

* `company_identifier` (required): Company domain or UUID.

## Endpoint behavior

* Domain inputs resolve through the company profile lookup path.
* UUID inputs fetch that specific company profile.
* If a valid domain is not ready yet, Extruct may start enrichment and return `202 Accepted`.
* Company Lookup currently consumes `0` credits. Successful lookups and accepted `202` lookups still appear in usage analytics.

## Success signal

A successful response returns `id`, `domain`, `company_name`, and `context`.
The `context` object is the rich company profile with descriptions, products, use cases, audience, firmographics, social profiles, and sources when available.

## Common errors

### `401 Unauthorized`

Check that your header is `Authorization: Bearer ${EXTRUCT_API_TOKEN}`.

### `202 Accepted`

The lookup was accepted and company enrichment is in progress. Retry the same lookup later.

```json theme={null}
{
  "status": "enriching",
  "domain": "stripe.com",
  "message": "Company information is being enriched for domain: stripe.com"
}
```

### `404 Not Found`

The company profile is not available, or the identifier is invalid.

## Related endpoints

* [Semantic Search (`GET /v1/companies/search`)](/api-reference/search)
* [Lookalike Search (`GET /v1/companies/{company_identifier}/similar`)](/api-reference/lookalike-search)


## OpenAPI

````yaml GET /v1/companies/{company_identifier}
openapi: 3.1.0
info:
  title: FastAPI
  version: 0.1.0
servers: []
security: []
paths:
  /v1/companies/{company_identifier}:
    get:
      tags:
        - search
      summary: Lookup Company Profile
      description: >-
        Look up the canonical enriched Extruct company profile for a known
        company UUID or domain. Company Lookup currently consumes 0 credits,
        while successful and accepted lookups still appear in usage analytics.
      operationId: get_company_by_identifier_v1_companies__company_identifier__get
      parameters:
        - name: company_identifier
          in: path
          required: true
          schema:
            type: string
            title: Company Identifier
          description: Company UUID or domain.
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyProfileAPIResponse'
        '202':
          description: Company enrichment is in progress. Retry the same lookup later.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/CompanyLookupEnrichingResponse'
        '404':
          description: Company profile is not available or the identifier is invalid.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPExceptionDetail'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
      security:
        - HTTPBearer: []
components:
  schemas:
    CompanyProfileAPIResponse:
      properties:
        id:
          type: string
          title: Id
        domain:
          type: string
          title: Domain
        company_name:
          anyOf:
            - type: string
            - type: 'null'
          title: Company Name
        context:
          anyOf:
            - $ref: '#/components/schemas/CompanyProfileContext'
            - type: 'null'
          description: Complete company profile context
      type: object
      required:
        - id
        - domain
        - company_name
        - context
      title: CompanyProfileAPIResponse
      description: Full company profile lookup response.
    CompanyLookupEnrichingResponse:
      properties:
        status:
          type: string
          const: enriching
          title: Status
          description: Lookup state. The company profile is being enriched.
          default: enriching
        domain:
          type: string
          title: Domain
          description: Canonical domain being enriched.
        message:
          type: string
          title: Message
          description: Human-readable retry guidance.
      type: object
      required:
        - status
        - domain
        - message
      title: CompanyLookupEnrichingResponse
      description: >-
        Response returned when company lookup has accepted an enrichment
        request.
    HTTPExceptionDetail:
      properties:
        detail:
          type: string
          title: Detail
      type: object
      required:
        - detail
      title: HTTPExceptionDetail
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
          title: Detail
      type: object
      title: HTTPValidationError
    CompanyProfileContext:
      properties:
        company_name:
          type: string
          description: Official company name without legal entity suffixes
          title: Company Name
        domain:
          type: string
          description: Company domain, such as example.com
          title: Domain
        domains:
          items:
            type: string
          type: array
          description: All known domains for this company, including aliases
          title: Domains
        short_description:
          type: string
          description: One-line description
          title: Short Description
        full_description:
          type: string
          description: One paragraph description of the company
          title: Full Description
        products_services:
          type: string
          description: Detailed offerings and services provided
          title: Products Services
        use_cases:
          type: string
          description: Specific scenarios and applications
          title: Use Cases
        target_audience:
          type: string
          description: Customer segments and target markets
          title: Target Audience
        founding_year:
          anyOf:
            - type: integer
            - type: 'null'
          description: Year the company was founded
          default: null
          title: Founding Year
        employee_count:
          anyOf:
            - $ref: '#/components/schemas/CompanySize'
            - type: 'null'
          description: Employee headcount bucket
          default: null
        hq_country:
          anyOf:
            - type: string
            - type: 'null'
          description: Headquarters country
          default: null
          title: Hq Country
        hq_state_province:
          anyOf:
            - type: string
            - type: 'null'
          description: Headquarters state or province
          default: null
          title: Hq State Province
        hq_city:
          anyOf:
            - type: string
            - type: 'null'
          description: Headquarters city
          default: null
          title: Hq City
        hq_full_address:
          anyOf:
            - type: string
            - type: 'null'
          description: Complete headquarters address if available
          default: null
          title: Hq Full Address
        other_considerations:
          anyOf:
            - type: string
            - type: 'null'
          description: Other important company information
          default: null
          title: Other Considerations
        social_profiles:
          anyOf:
            - $ref: '#/components/schemas/SocialProfiles'
            - type: 'null'
          description: Social media and platform profile URLs
          default: null
        sources:
          items:
            type: string
          type: array
          description: Source URLs used for research
          title: Sources
      type: object
      required:
        - company_name
        - domain
        - short_description
        - full_description
        - products_services
        - use_cases
        - target_audience
      title: CompanyProfileContext
      description: Structured context data for an enriched company profile.
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
          title: Location
        msg:
          type: string
          title: Message
        type:
          type: string
          title: Error Type
      type: object
      required:
        - loc
        - msg
        - type
      title: ValidationError
    CompanySize:
      type: string
      enum:
        - 1-10
        - 11-50
        - 51-200
        - 201-500
        - 501-1000
        - 1001-5000
        - 5001-10000
        - 10001+
      title: CompanySize
      description: Employee headcount buckets using LinkedIn-style ranges.
    SocialProfiles:
      properties:
        linkedin:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        twitter:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        github:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        crunchbase:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        facebook:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        instagram:
          anyOf:
            - type: string
            - type: 'null'
          default: null
        youtube:
          anyOf:
            - type: string
            - type: 'null'
          default: null
      type: object
      title: SocialProfiles
      description: Known social and platform profile URLs.
  securitySchemes:
    HTTPBearer:
      type: http
      scheme: bearer

````