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

# List Knowledge Bases

> Browse and search available knowledge bases

## Endpoint

```
GET https://api.fetchlake.com/api/marketplace/knowledge-bases
```

> [!NOTE]
>
> This endpoint is publicly accessible and does not require authentication.

## Query Parameters

**query** `string`

Search term to filter knowledge bases by title, description, or publisher.

**category** `string`

Filter by category. Options: `education`, `policy`, `health`, `research`, `legal`

**tags** `string[]`

Filter by one or more tags.

**sort** `string` (default: popular)

Sort order. Options: `popular`, `new`, `updated`

**page** `integer` (default: 1)

Page number for pagination.

**pageSize** `integer` (default: 12)

Number of results per page (max 50).

## Example Request

```bash cURL theme={null}
curl "https://api.fetchlake.com/api/marketplace/knowledge-bases?query=education&category=education&sort=popular&page=1&pageSize=12"
```

```python Python theme={null}
import requests

response = requests.get(
    "https://api.fetchlake.com/api/marketplace/knowledge-bases",
    params={
        "query": "education",
        "category": "education",
        "sort": "popular",
        "page": 1,
        "pageSize": 12
    }
)

data = response.json()
for kb in data["items"]:
    print(kb["title"])
```

```javascript JavaScript theme={null}
const params = new URLSearchParams({
  query: 'education',
  category: 'education',
  sort: 'popular',
  page: '1',
  pageSize: '12'
});

const response = await fetch(
  `https://api.fetchlake.com/api/marketplace/knowledge-bases?${params}`
);

const data = await response.json();
data.items.forEach(kb => console.log(kb.title));
```

## Response

**items** `array`

List of knowledge base objects.

**Knowledge Base object**

**id** `string`

Unique identifier for the knowledge base.

**title** `string`

Name of the knowledge base.

**publisher** `string`

Organization or individual who created the knowledge base.

**summary** `string`

Brief description of the knowledge base.

**category** `string`

Primary category classification.

**tags** `string[]`

List of tags for filtering.

**subscribersCount** `integer`

Number of users with active subscriptions.

**queryVolume** `integer`

Total queries processed.

**updatedAt** `string`

ISO 8601 timestamp of last update.

**total** `integer`

Total number of matching knowledge bases.

**page** `integer`

Current page number.

**pageSize** `integer`

Number of results per page.

**totalPages** `integer`

Total number of pages available.

## Example Response

```json theme={null}
{
  "items": [
    {
      "id": "kb_edu_123",
      "title": "K-12 Curriculum Standards",
      "publisher": "Education Standards Board",
      "summary": "Comprehensive curriculum standards for K-12 education across all subjects.",
      "category": "education",
      "tags": ["curriculum", "k-12", "standards"],
      "subscribersCount": 245,
      "queryVolume": 15420,
      "updatedAt": "2024-01-15T10:30:00Z"
    },
    {
      "id": "kb_edu_456",
      "title": "Higher Education Research",
      "publisher": "Academic Research Institute",
      "summary": "Research papers and studies on higher education pedagogy.",
      "category": "education",
      "tags": ["higher-ed", "research", "pedagogy"],
      "subscribersCount": 89,
      "queryVolume": 4230,
      "updatedAt": "2024-01-10T14:20:00Z"
    }
  ],
  "total": 24,
  "page": 1,
  "pageSize": 12,
  "totalPages": 2
}
```

## Next Steps

> [card] [Query a Knowledge Base](https://docs.fetchlake.com/api-reference/endpoints/query.md)
>
> Once you've found a knowledge base, learn how to query it.


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