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

# /infogreffe/companies/establishments

> Get the establishments (sites / branches) of a French company from the Infogreffe registry by SIREN (or SIRET): each establishment's SIRET, NIC, establishment type (head office or secondary), status (open or closed), opening and closing dates, sign and trade name, declared activity and NAF activity (code/label), the registering commercial court (greffe) and the establishment address. Closed establishments are included by default.

**Price:** 10 credits per 100 results

**⚠️ Common errors:** 412: Company not found (well-formed but nonexistent SIREN, or no matching company in the registry)



## OpenAPI

````yaml /openapi/company-registries.json post /api/infogreffe/companies/establishments
openapi: 3.1.0
info:
  title: Any Site API
  description: >+
    Any Site API provides programmatic access to data from LinkedIn, Instagram,
    Twitter, and other platforms.


    ## Authentication


    All API endpoints require an `access-token` header with a valid API token.
    Tokens can be created in the [dashboard](https://app.anysite.io/).


    ## Pricing


    Each endpoint has a credit cost listed in its description. Credits are
    deducted from your token balance per request.

  version: 0.0.1
servers: []
security:
  - AccessToken: []
paths:
  /api/infogreffe/companies/establishments:
    post:
      tags:
        - /infogreffe
      summary: /infogreffe/companies/establishments
      description: >-
        Get the establishments (sites / branches) of a French company from the
        Infogreffe registry by SIREN (or SIRET): each establishment's SIRET,
        NIC, establishment type (head office or secondary), status (open or
        closed), opening and closing dates, sign and trade name, declared
        activity and NAF activity (code/label), the registering commercial court
        (greffe) and the establishment address. Closed establishments are
        included by default.


        **Price:** 10 credits per 100 results


        **⚠️ Common errors:** 412: Company not found (well-formed but
        nonexistent SIREN, or no matching company in the registry)
      operationId: __api_infogreffe_companies_establishments_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/InfogreffeCompaniesEstablishmentsPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/InfogreffeEstablishment'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    InfogreffeCompaniesEstablishmentsPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        siren:
          type: string
          minLength: 1
        count:
          type: integer
          minimum: 1
        include_closed:
          type: boolean
          default: true
      type: object
      required:
        - siren
        - count
    InfogreffeEstablishment:
      properties:
        '@type':
          type: string
          default: InfogreffeEstablishment
        id:
          type: string
        siren:
          anyOf:
            - type: string
            - type: 'null'
        nic:
          anyOf:
            - type: integer
            - type: 'null'
        siret:
          anyOf:
            - type: string
            - type: 'null'
        establishment_type:
          anyOf:
            - type: string
            - type: 'null'
        status:
          anyOf:
            - type: string
            - type: 'null'
        opening_date:
          anyOf:
            - type: string
            - type: 'null'
        closing_date:
          anyOf:
            - type: string
            - type: 'null'
        sign:
          anyOf:
            - type: string
            - type: 'null'
        trade_name:
          anyOf:
            - type: string
            - type: 'null'
        declared_activity:
          anyOf:
            - type: string
            - type: 'null'
        greffe:
          anyOf:
            - $ref: '#/components/schemas/InfogreffeGreffe'
            - type: 'null'
        activity:
          anyOf:
            - $ref: '#/components/schemas/InfogreffeNafActivity'
            - type: 'null'
        address:
          anyOf:
            - $ref: '#/components/schemas/InfogreffeAddress'
            - type: 'null'
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    InfogreffeGreffe:
      properties:
        '@type':
          type: string
          default: InfogreffeGreffe
        code:
          anyOf:
            - type: string
            - type: 'null'
        label:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    InfogreffeNafActivity:
      properties:
        '@type':
          type: string
          default: InfogreffeNafActivity
        code:
          anyOf:
            - type: string
            - type: 'null'
        label:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    InfogreffeAddress:
      properties:
        '@type':
          type: string
          default: InfogreffeAddress
        line_1:
          anyOf:
            - type: string
            - type: 'null'
        line_2:
          anyOf:
            - type: string
            - type: 'null'
        line_3:
          anyOf:
            - type: string
            - type: 'null'
        postal_code:
          anyOf:
            - type: string
            - type: 'null'
        city:
          anyOf:
            - type: string
            - type: 'null'
        country:
          anyOf:
            - type: string
            - type: 'null'
      type: object
    ValidationError:
      properties:
        loc:
          items:
            anyOf:
              - type: string
              - type: integer
          type: array
        msg:
          type: string
        type:
          type: string
        input: {}
        ctx:
          type: object
      type: object
      required:
        - loc
        - msg
        - type
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````