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

# List IDs

Returns every item ID in the index.

```python theme={null}
index.list_ids()
```

### Returns

`List[str]`: all IDs in the index.

### Exceptions

<AccordionGroup>
  <Accordion title="cyborgdb.AuthenticationError">
    The `index_key` or `api_key` is invalid (HTTP `401`).
  </Accordion>

  <Accordion title="cyborgdb.ServiceError / cyborgdb.TransportError">
    The service returns `5xx` or can't be reached.
  </Accordion>
</AccordionGroup>

See [Errors](../errors) for the full hierarchy.

### Example Usage

```python theme={null}
all_ids = index.list_ids()
print(len(all_ids))
# Output: 3

print("doc1" in all_ids)
# Output: True

# Fetch items in batches of 100
for i in range(0, len(all_ids), 100):
    items = index.get(all_ids[i:i + 100])
```


This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.