# Get location rankings via GET

Retrieves a paginated ranking of locations based on their scores, using query parameters for filter criteria.

Endpoint: GET /home/locations/ranks
Version: 20260801

## Query parameters:

  - `locationIds` (string)
    Comma-separated location IDs to filter by

  - `businessIds` (string)
    Comma-separated business IDs to filter by

  - `locationGroupIds` (string)
    Comma-separated location group IDs to filter by

  - `labels` (string)
    Comma-separated labels to filter by

  - `sort` (string, required)
    Sort direction (asc or desc)

  - `page` (integer, required)
    Page number (zero-based)

  - `pageSize` (integer, required)
    Number of results per page

  - `scoreMin` (integer, required)
    Minimum score filter (inclusive)

  - `scoreMax` (integer, required)
    Maximum score filter (inclusive)

  - `normalisedScoreMin` (integer)
    Minimum normalised score filter (inclusive). When set, results are ordered by normalised score.

  - `normalisedScoreMax` (integer)
    Maximum normalised score filter (inclusive). When set, results are ordered by normalised score.

  - `excludedLocationIds` (string)
    Comma-separated location IDs to exclude

  - `excludedBusinessIds` (string)
    Comma-separated business IDs to exclude

  - `excludedLocationGroupIds` (string)
    Comma-separated location group IDs to exclude

  - `excludedLabels` (string)
    Comma-separated labels to exclude

  - `filterCategory` (string)
    Filter strategy to apply: location-groups, labels, business, or location

  - `query` (string)
    Search query string depending on filter category

## Response 200 fields (application/json):

  - `ranks` (array, required)
    List of ranked locations

  - `ranks.locationId` (integer)
    Location identifier
    Example: 98765

  - `ranks.identifier` (string)
    External identifier for the location
    Example: LOC-001

  - `ranks.name` (string)
    Location name
    Example: Main Street Store

  - `ranks.address` (string)
    Location address
    Example: 123 Main St, Berlin

  - `ranks.score` (integer)
    Location score
    Example: 85

  - `ranks.normalisedScore` (integer)
    Normalised score with a scale of 0-100. Omitted for non-custom sales partners, whose maxScore is 100 so the normalised score always equals score.
    Example: 85

  - `page` (integer)
    Current page number
    Example: 0

  - `pageSize` (integer)
    Number of items per page
    Example: 10

  - `size` (integer)
    Number of items in the current page
    Example: 10

  - `totalCount` (integer)
    Total number of ranked locations
    Example: 150

