---
title: "Get widget recommendations"
method: POST
path: "/api/widget/{widget_id}"
tags: ["Recommendations"]
---

# Get widget recommendations

`POST /api/widget/{widget_id}`

Retrieves personalized recommendations for a specific widget

## Path parameters

- `widget_id` string, uuid, required

## Request body

- RecommendationRequest
  - `session_id` string, nullable — Session identifier (optional)
  - `user_id` string, uuid, nullable — User identifier (optional)
  - `current_url` string, uri, required — Current page URL
  - `language` string — Language code (optional)
  - `price_name` string — Currency code (optional)
  - `hashid` string — Hash identifier (optional)
  - `cart_items` CartItem[], nullable — A list of items added to the shopping cart for additional context.
    - `dfid` string — Doofinder's unique ID for the item
  - `category_context` object[], nullable — Contextual category information (optional)

## Response `200`

Successful response with recommendations

- object
  - `title` string
  - `currency` object
    - `code` string
    - `label` string
    - `format` string
    - `symbol` string
    - `precision` integer
    - `decimal` string
    - `thousand` string
  - `fallback_action` string
  - `results` object[] — Array of recommendation items

## Other responses

- `400` — Bad Request - Missing required parameters or validation errors
- `403` — Forbidden - Access denied
- `404` — Not Found - Resource not found
- `429` — Too Many Requests - Rate limit exceeded

---

[API](https://skmtc.dev/doofinder/apis/recommendations-api.md) · [All operations](https://skmtc.dev/doofinder/apis/recommendations-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/doofinder/recommendations-api/revisions/50dc63ab0921/schema)
