> ## 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.

# /leboncoin/categories

> Get the leboncoin category tree (id, name, slug, parent and nested subcategories). With include_filters enabled, the root category also carries the full catalog of search filters and their enum values.

**Price:** 20 credits



## OpenAPI

````yaml /openapi/e-commerce-marketplaces.json post /api/leboncoin/categories
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/leboncoin/categories:
    post:
      tags:
        - /leboncoin
      summary: /leboncoin/categories
      description: >-
        Get the leboncoin category tree (id, name, slug, parent and nested
        subcategories). With include_filters enabled, the root category also
        carries the full catalog of search filters and their enum values.


        **Price:** 20 credits
      operationId: __api_leboncoin_categories_post
      parameters:
        - name: access-token
          in: header
          required: true
          schema:
            anyOf:
              - type: string
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/LeboncoinCategoriesPayload'
      responses:
        '200':
          description: Successful Response
          content:
            application/json:
              schema:
                type: array
                items:
                  $ref: '#/components/schemas/LeboncoinCategory'
        '422':
          description: Validation Error
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
components:
  schemas:
    LeboncoinCategoriesPayload:
      properties:
        timeout:
          type: integer
          maximum: 1500
          minimum: 20
          default: 300
        category:
          anyOf:
            - type: string
            - type: 'null'
        include_filters:
          type: boolean
          default: false
      type: object
    LeboncoinCategory:
      properties:
        '@type':
          type: string
          default: LeboncoinCategory
        id:
          type: string
        name:
          anyOf:
            - type: string
            - type: 'null'
        slug:
          anyOf:
            - type: string
            - type: 'null'
        parent_id:
          anyOf:
            - type: string
            - type: 'null'
        subcategories:
          items:
            $ref: '#/components/schemas/LeboncoinCategory'
          type: array
          default: []
        filters:
          items:
            $ref: '#/components/schemas/LeboncoinFilter'
          type: array
          default: []
      type: object
      required:
        - id
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          type: array
      type: object
    LeboncoinFilter:
      properties:
        '@type':
          type: string
          default: LeboncoinFilter
        param:
          type: string
        label:
          anyOf:
            - type: string
            - type: 'null'
        filter_type:
          anyOf:
            - type: string
            - type: 'null'
        unit:
          anyOf:
            - type: string
            - type: 'null'
        options:
          items:
            $ref: '#/components/schemas/LeboncoinFilterOption'
          type: array
          default: []
      type: object
      required:
        - param
    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
    LeboncoinFilterOption:
      properties:
        '@type':
          type: string
          default: LeboncoinFilterOption
        code:
          type: string
        label:
          anyOf:
            - type: string
            - type: 'null'
      type: object
      required:
        - code
  securitySchemes:
    AccessToken:
      type: apiKey
      in: header
      name: access-token
      description: API token from the dashboard

````