---
title: "Count content matching a Lucene query"
method: GET
path: "/api/content/indexcount/{query}"
tags: ["Content Delivery"]
---

# Count content matching a Lucene query

`GET /api/content/indexcount/{query}`

Performs an index count using the specified Lucene query and returns the total number of matching contentlets as a plain text string.

## Path parameters

- `query` string, required

## Query parameters

- `type` string
- `callback` string

## Response `200`

Count of matching contentlets returned successfully

## Other responses

- `400` — Invalid query syntax
- `401` — Unauthorized access
- `403` — Forbidden - insufficient permissions
- `500` — Internal server error during count operation

---

[API](https://skmtc.dev/jostens/apis/dotcms-rest-api.md) · [All operations](https://skmtc.dev/jostens/apis/dotcms-rest-api/llms.txt) · [OpenAPI document](https://skmtc-service-production.skmtc.workers.dev/v1/apis/jostens/dotcms-rest-api/revisions/a088fe9f515c/schema)
