---
title: "GET /polls/{name}/recommendations/"
method: GET
path: "/polls/{name}/recommendations/"
tags: ["polls"]
---

# GET /polls/{name}/recommendations/

`GET /polls/{name}/recommendations/`

List the recommended entities of a given poll sorted by decreasing total
score.

## Path parameters

- `name` string, required

## Query parameters

- `limit` integer
- `offset` integer
- `date_lte` string, date-time
- `date_gte` string, date-time
- `search` string
- `unsafe` boolean
- `exclude_compared_entities` boolean
- `weights` object
- `metadata` object
- `score_mode` 'all_equal' | 'default' | 'trusted_only'

## Response `200`

- PaginatedRecommendationList
  - `count` integer, required
  - `next` string, uri, nullable
  - `previous` string, uri, nullable
  - `results` Recommendation[], required
    - `entity` RelatedEntity, required — An Entity serializer that will lookup and possibly create the Entity object on validation, if it does not exist in the database yet. Only the field `uid` is provided when using write HTTP methods. Used by ModelSerializer(s) having one or more nested relations with Entity, and having the constraint to ensure that entity instances exist before they can be saved properly.
      - `uid` string, required
      - `type` 'video' | 'candidate_fr_2022', required — * `video` - Video * `candidate_fr_2022` - Candidate (FR 2022)
      - `metadata` object, required
    - `entity_contexts` EntityContext[], required
      - `origin` 'ASSOCIATION' | 'CONTRIBUTORS' — * `ASSOCIATION` - Association * `CONTRIBUTORS` - Contributors
      - `unsafe` boolean — If True, this context will make the targeted entities unsafe.
      - `text` string, required
      - `created_at` string, date-time, required
    - `collective_rating` ExtendedCollectiveRating, required
      - `n_comparisons` integer, required — Total number of pairwise comparisons for this entityfrom certified contributors
      - `n_contributors` integer, required — Total number of certified contributors who rated the entity
      - `tournesol_score` number, double, nullable, required — The aggregated score of the main criterion for all users, in a specific poll.
      - `unsafe` UnsafeStatus, required
        - `status` boolean, required
        - `reasons` ReasonsEnum[], required
      - `criteria_scores` EntityCriteriaScore[], required
        - `criteria` string, required — Name of the criteria
        - `score` number, double — Score of the given criteria
    - `recommendation_metadata` RecommendationMetadata, required
      - `total_score` number, double, nullable, required

---

[API](https://skmtc.net/tournesol-app/apis/tournesol-api.md) · [All operations](https://skmtc.net/tournesol-app/apis/tournesol-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/tournesol-app/tournesol-api/revisions/96c8c62ad972/schema)
