> For a complete page index of the Captain API documentation, fetch https://docs.filesearch.dev/llms.txt?excludeSpec=true

# Search Nport Holdings

GET https://api.filesearch.dev/v2/datasets/odyssey/credit-analysis/nport/search

Search N-PORT filings for private credit holdings.

Searches across interval fund and registered fund filings for loan holdings
matching the query.

Reference: https://docs.filesearch.dev/reference/datasets/odyssey/credit-analysis/n-port/credit-analysis-nport-search

## Request

### Query parameters

- `q` (string, required) — Borrower name or keyword to search in N-PORT filings
- `limit` (integer, optional, default: 50)

## Response

### 200

Successful Response

- `query` (string, optional)
- `results` (list of any, optional)
- `total` (integer, optional)

## Errors

### 500 Internal Server Error

Internal server error

- `error` (string, required) — `INTERNAL_ERROR`.
- `message` (string, required)
- `path` (string, required)

## Examples

**Response**

```json
{
  "query": "credit",
  "results": [],
  "total": 0
}
```

**SDK Code**

```python Python REST
import requests

BASE_URL = "https://api.filesearch.dev"
API_KEY = "your_api_key"

headers = {"Authorization": f"Bearer {API_KEY}"}

response = requests.get(
    f"{BASE_URL}/v2/datasets/odyssey/credit-analysis/nport/search",
    headers=headers,
    params={"q": "credit"},
    timeout=60.0
)
print(response.json())
```

```typescript TypeScript REST
const BASE_URL = "https://api.filesearch.dev";
const API_KEY = "your_api_key";

const response = await fetch(`${BASE_URL}/v2/datasets/odyssey/credit-analysis/nport/search?q=credit`, {
    method: "GET",
    headers: { "Authorization": `Bearer ${API_KEY}` }
});
console.log(await response.json());
```