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

# CreditAPI

> Credit ratings and analysis

## search()

```typescript theme={null}
search(query: string): Promise<ApiResponse>
```

Search for credit entities.

<ParamField path="query" type="string" required>
  Search query string
</ParamField>

### Example

```typescript theme={null}
const results = await client.credit.search('Apple Inc');
```

## ratings()

```typescript theme={null}
ratings(entityId: string): Promise<ApiResponse>
```

Get credit ratings for an entity.

<ParamField path="entityId" type="string" required>
  Entity ID from search results
</ParamField>

### Example

```typescript theme={null}
const ratings = await client.credit.ratings('entity-123');
```
