> ## Documentation Index
> Fetch the complete documentation index at: https://docs.supernote.com/llms.txt
> Use this file to discover all available pages before exploring further.

# searchFiveStars

> Search a file for five-star elements and return the page indices.

```ts wrap theme={null}
static searchFiveStars(filePath: string): Promise<APIResponse<number[]>>;
```

**Parameters**

| Parameter  | Type     | Description        |
| ---------- | -------- | ------------------ |
| `filePath` | `string` | NOTE/DOC file path |

**Returns**

* [`APIResponse<number[]>`](/en/api-reference/supernote-plugin/types/api-response):
  `result` is the list of page indices that contain five-star elements

## Example

```ts wrap theme={null}
import { PluginFileAPI } from 'sn-plugin-lib';

/**
 * Example: search a file for five-star pages.
 */
export async function exampleSearchFiveStars() {
 const filePath = '/storage/emulated/0/Note/demo.note';
 const res = await PluginFileAPI.searchFiveStars(filePath);
 if (!res.success) {
 throw new Error(res.error?.message ?? 'searchFiveStars call failed');
 }
 return res.result;
}
```
