---
title: "Get head"
method: GET
path: "/v2/request-queues/{queueId}/head"
tags: ["Storage/Request queues/Requests locks"]
---

# Get head

`GET /v2/request-queues/{queueId}/head`

Returns given number of first requests from the queue.

The response contains the `hadMultipleClients` boolean field which indicates
that the queue was accessed by more than one client (with unique or empty
`clientKey`).
This field is used by [Apify SDK](https://sdk.apify.com) to determine
whether the local cache is consistent with the request queue, and thus
optimize performance of certain operations.

## Path parameters

- `queueId` string, required

## Query parameters

- `limit` number, double
- `clientKey` string

## Response `200`

- HeadResponse — Response containing requests from the request queue head without locking.
  - `data` RequestQueueHead, required — A batch of requests from the request queue head without locking.
    - `limit` integer, required — The maximum number of requests returned.
    - `queueModifiedAt` string, date-time, required — The timestamp when the request queue was last modified. Modifications include adding, updating, or removing requests, as well as locking or unlocking requests in the request queue.
    - `hadMultipleClients` boolean, required — Whether the request queue has been accessed by multiple different clients.
    - `items` HeadRequest[], required — The array of requests from the request queue head.
      - `id` string, required — A unique identifier assigned to the request.
      - `uniqueKey` string, required — A unique key used for request de-duplication. Requests with the same unique key are considered identical.
      - `url` string, required — The URL of the request.
      - `method` 'GET' | 'HEAD' | 'POST' | 'PUT' | 'DELETE' | 'CONNECT' | 'OPTIONS' | 'TRACE' | 'PATCH'
      - `retryCount` integer — The number of times this request has been retried.

## Other responses

- `400` — Bad request - invalid input parameters or request body.
- `401` — Unauthorized - authentication required or invalid token.
- `402` — Payment required - the user has exceeded their usage limit, does not have enough credits, or the request lacks authentication and payment credentials.
- `403` — Forbidden - insufficient permissions to perform this action.
- `404` — Not found - the requested resource does not exist.
- `405` — Method not allowed.
- `429` — Too many requests - rate limit exceeded.

---

[API](https://skmtc.net/apify/apis/apify-api.md) · [All operations](https://skmtc.net/apify/apis/apify-api/llms.txt) · [OpenAPI document](https://skmtc-service-staging.skmtc.workers.dev/v1/apis/apify/apify-api/versions/01a71794279b/schema)
