parcelLab Size Recommender API

The Size Recommender API from parcelLab — 3 operation(s) for size recommender.

GitHub OpenAPI

Operations 3

GET /v4/size-recommender/articles/ List articles with fit information #
GET /v4/size-recommender/recommendation/ Get size recommendation for a single article #
GET /v4/size-recommender/recommendation/{article_name}/ Get size recommendation for a single article #

Documentation

Specifications

Schemas & Data

Other Resources

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/parcellab:parcellab-size-recommender-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

parcellab-size-recommender-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: parcelLab Size Recommender API
  version: v4
  description: '# API Description


    ## Overview


    Use this API to interact with the parcelLab platform. It is currently in preview. For a reference of our current API, please refer to the API documentation.


    The API v4 allows for enhanced and more standardized interaction with our platform. It does however not yet cover all of the features of our v1/v2 APIs.


    ## Authentication


    Most endpoints in this API need authentication, unless otherwise stated. The authentication is done using the `Authorization` header with the value `Parcellab-API-Token `. You can generate the token in our portal, or ask our support team for one. The token needs to be base64 encoded together with the account ID, like: `base64encode(account_id:token)`. Here is an example of how to do it in Python:


    ```python

    import base64

    base64.b64encode(b''account_id:token'').decode(''utf-8'')

    ```


    ## Errors


    The API uses standard HTTP status codes to show the success or failure of a request. In case of an error, the response body will contain a JSON object with the following structure:


    ```json

    {

    "type": "client_error",

    "errors": [

    {

    "code": "error_code",

    "detail": "Error message.",

    "attr": "Optional additional information."

    }

    ]

    }

    ```


    ### 401 Unauthorized


    The API returns these errors with the status code 401 when the authentication fails. It also returns them when a request does not include the authentication information. Here are the 2 possible errors.


    ```json

    {

    "type": "client_error",

    "errors": [

    {

    "code": "authentication_failed",

    "detail": "Incorrect authentication credentials.",

    "attr": null

    }

    ]

    }

    ```


    ```json

    {

    "type": "client_error",

    "errors": [

    {

    "code": "not_authenticated",

    "detail": "Authentication credentials were not provided.",

    "attr": null

    }

    ]

    }

    ```


    ### 403 Forbidden


    The API returns this error when the authentication is correct but does not allow the request. For example, an API token with only the `read` scope gets this error on a POST. Here is how it looks:


    ```json

    {

    "type": "client_error",

    "errors": [

    {

    "code": "permission_denied",

    "detail": "You do not have permission to perform this action.",

    "attr": null

    }

    ]

    }

    ```


    ### 405 Method Not Allowed


    The API returns this error when you call an endpoint with an unexpected HTTP method. For example, if updating a user needs a POST request and you send a PATCH instead, you get this error. Here is how it looks:


    ```json

    {

    "type": "client_error",

    "errors": [

    {

    "code": "method_not_allowed",

    "detail": "Method “patch” not allowed.",

    "attr": null

    }

    ]

    }

    ```


    ### 406 Not Acceptable


    The API returns this error if you send an `Accept` header with a value other than `application/json`. Here is how the response would look:


    ```json

    {

    "type": "client_error",

    "errors": [

    {

    "code": "not_acceptable",

    "detail": "Could not satisfy the request Accept header.",

    "attr": null

    }

    ]

    }

    ```


    ### 415 Unsupported Media Type


    The API returns this error when the request content type is not JSON. Here is how the response would look:


    ```json

    {

    "type": "client_error",

    "errors": [

    {

    "code": "not_acceptable",

    "detail": "Unsupported media type “application/xml” in request.",

    "attr": null

    }

    ]

    }

    ```


    ### 500 Internal Server Error


    The API returns this error when the server encounters an unexpected error. Here is how the response would look:


    ```json

    {

    "type": "server_error",

    "errors": [

    {

    "code": "error",

    "detail": "A server error occurred.",

    "attr": null

    }

    ]

    }

    ```'
tags:
- name: Size Recommender
paths:
  /v4/size-recommender/articles/:
    get:
      operationId: size_recommender_articles_retrieve
      summary: List articles with fit information
      parameters:
      - in: query
        name: account_id
        schema:
          type: integer
          minimum: 1
        required: true
      tags:
      - Size Recommender
      responses:
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error400Response'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse404'
              examples:
                NotFound:
                  value:
                    type: client_error
                    errors:
                    - code: not_found
                      detail: Not found.
                      attr: null
          description: ''
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse429'
              examples:
                Throttled:
                  value:
                    type: client_error
                    errors:
                    - code: throttled
                      detail: Request was throttled.
                      attr: null
          description: ''
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SizeRecommenderArticleSummaryList'
          description: ''
      security: []
  /v4/size-recommender/recommendation/:
    get:
      operationId: size_recommender_recommendation_retrieve
      summary: Get size recommendation for a single article
      parameters:
      - in: query
        name: account_id
        schema:
          type: integer
          minimum: 1
        required: true
      - in: query
        name: article_name
        schema:
          type: string
          minLength: 1
        required: true
      - in: query
        name: language_code
        schema:
          oneOf:
          - type: string
            maxLength: 2
            minLength: 2
          - type: string
            maxLength: 0
        description: ISO 639-1 language code for the localized long-text LLM summary. Supported long-text languages are en, de, fr, it, es. Unsupported valid language codes fall back to English. Defaults to English.
      tags:
      - Size Recommender
      responses:
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error400Response'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse404'
              examples:
                NotFound:
                  value:
                    type: client_error
                    errors:
                    - code: not_found
                      detail: Not found.
                      attr: null
          description: ''
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse429'
              examples:
                Throttled:
                  value:
                    type: client_error
                    errors:
                    - code: throttled
                      detail: Request was throttled.
                      attr: null
          description: ''
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SizeRecommenderRecommendation'
          description: ''
      security: []
  /v4/size-recommender/recommendation/{article_name}/:
    get:
      operationId: size_recommender_recommendation_by_article_retrieve
      summary: Get size recommendation for a single article
      parameters:
      - in: query
        name: account_id
        schema:
          type: integer
          minimum: 1
        required: true
      - in: path
        name: article_name
        schema:
          type: string
        description: Article identifier used by the size recommender service.
        required: true
      - in: query
        name: language_code
        schema:
          oneOf:
          - type: string
            maxLength: 2
            minLength: 2
          - type: string
            maxLength: 0
        description: ISO 639-1 language code for the localized long-text LLM summary. Supported long-text languages are en, de, fr, it, es. Unsupported valid language codes fall back to English. Defaults to English.
      tags:
      - Size Recommender
      responses:
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Error400Response'
          description: ''
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse404'
              examples:
                NotFound:
                  value:
                    type: client_error
                    errors:
                    - code: not_found
                      detail: Not found.
                      attr: null
          description: ''
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse429'
              examples:
                Throttled:
                  value:
                    type: client_error
                    errors:
                    - code: throttled
                      detail: Request was throttled.
                      attr: null
          description: ''
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/SizeRecommenderRecommendation'
          description: ''
      security: []
components:
  schemas:
    Error429:
      type: object
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode429Enum'
        detail:
          type: string
        attr:
          type:
          - string
          - 'null'
      required:
      - attr
      - code
      - detail
    ErrorResponse404:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/ClientErrorEnum'
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Error404'
      required:
      - errors
      - type
    GenericErrorItem:
      type: object
      properties:
        code:
          type: string
        detail:
          type: string
        attr:
          type:
          - string
          - 'null'
      required:
      - code
      - detail
    ErrorResponse429:
      type: object
      properties:
        type:
          $ref: '#/components/schemas/ClientErrorEnum'
        errors:
          type: array
          items:
            $ref: '#/components/schemas/Error429'
      required:
      - errors
      - type
    ErrorCode429Enum:
      enum:
      - throttled
      type: string
      description: '* `throttled` - Throttled'
    Error400Response:
      type: object
      properties:
        type:
          type: string
        errors:
          type: array
          items:
            $ref: '#/components/schemas/GenericErrorItem'
      required:
      - errors
      - type
    SizeRecommenderRecommendation:
      additionalProperties: true
      properties:
        article_name:
          title: Article Name
          type: string
        language_code:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Language Code
        size_fit_category:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Size Fit Category
        confidence_smetabase_core:
          anyOf:
          - type: number
          - type: 'null'
          default: null
          title: Confidence Smetabase Core
        smoothed_fit_position:
          anyOf:
          - type: number
          - type: 'null'
          default: null
          title: Smoothed Fit Position
        raw_fit_position:
          anyOf:
          - type: number
          - type: 'null'
          default: null
          title: Raw Fit Position
        n_outbound:
          anyOf:
          - type: integer
          - type: 'null'
          default: null
          title: N Outbound
        small_returns:
          anyOf:
          - type: integer
          - type: 'null'
          default: null
          title: Small Returns
        big_returns:
          anyOf:
          - type: integer
          - type: 'null'
          default: null
          title: Big Returns
        total_returns:
          anyOf:
          - type: integer
          - type: 'null'
          default: null
          title: Total Returns
        article_return_rate:
          anyOf:
          - type: number
          - type: 'null'
          default: null
          title: Article Return Rate
        article_image_url:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Article Image Url
        problem_descriptions:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Problem Descriptions
        llm_summary:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Llm Summary
      required:
      - article_name
      title: SizeRecommenderRecommendation
      type: object
    SizeRecommenderArticleSummary:
      additionalProperties: true
      properties:
        article_name:
          title: Article Name
          type: string
        size_fit_category:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Size Fit Category
        confidence_smetabase_core:
          anyOf:
          - type: number
          - type: 'null'
          default: null
          title: Confidence Smetabase Core
        article_image_url:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Article Image Url
        llm_summary:
          anyOf:
          - type: string
          - type: 'null'
          default: null
          title: Llm Summary
      required:
      - article_name
      title: SizeRecommenderArticleSummary
      type: object
    ClientErrorEnum:
      enum:
      - client_error
      type: string
      description: '* `client_error` - Client Error'
    ErrorCode404Enum:
      enum:
      - not_found
      type: string
      description: '* `not_found` - Not Found'
    SizeRecommenderArticleSummaryList:
      items:
        $ref: '#/components/schemas/SizeRecommenderArticleSummary'
      title: SizeRecommenderArticleSummaryList
      type: array
    Error404:
      type: object
      properties:
        code:
          $ref: '#/components/schemas/ErrorCode404Enum'
        detail:
          type: string
        attr:
          type:
          - string
          - 'null'
      required:
      - attr
      - code
      - detail
  securitySchemes:
    HeaderToken:
      type: apiKey
      in: header
      name: Authorization
      x-gitbook-prefix: Parcellab-API-Token
      x-gitbook-token-placeholder: YOUR_BASE64_ENCODED_API_TOKEN
      description: 'Send `Authorization: Parcellab-API-Token <encoded-token>`.


        `<encoded-token>` = `base64(account_id:token)` as provided in the portal.'
    OAuth2Authentication:
      type: http
      scheme: bearer
      bearerFormat: JWT
      description: 'Unbound access tokens use Authorization: Bearer <token>. DPoP-bound tokens use Authorization: DPoP <token> and a DPoP proof header signed with the bound key for each request. Supported proof algorithms: ES256 and RS256.'