API Documentation
Back to RepoAPI endpoints for brevoza/US-presidents
GET
List Collection Items
Get a list of all items in a collection (metadata only by default).
Endpoint
https://www.brevoza.com/api/list-collection-itemsQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| owner | string | Yes | Repository owner |
| repo | string | Yes | Repository name |
| collection | string | Yes | Collection name |
| branch | string | No | Branch name (default: main) |
| page | number | No | Page number (default: 1) |
| limit | number | No | Items per page (default: 50) |
| includeContent | boolean | No | Include file content (default: false) |
Live Example
Get first 5 items from collection
GET
/api/list-collection-items?owner=brevoza&repo=US-presidents&collection=presidents&branch=main&page=1&limit=5Response
Loading...
GET
Get Item Content
Retrieve the full content of a specific item file.
Endpoint
https://www.brevoza.com/api/get-item-contentQuery Parameters
| Parameter | Type | Required | Description |
|---|---|---|---|
| owner | string | Yes | Repository owner |
| repo | string | Yes | Repository name |
| path | string | Yes | File path in repository |
| branch | string | No | Branch name (default: main) |
Live Example
Get content of a specific item
GET
/api/get-item-content?owner=brevoza&repo=US-presidents&path=presidents%2Falexander-hamilton.json&branch=mainResponse
Loading...
Usage Notes
- •All endpoints support CORS and can be called from client-side applications.
- •Data is cached for 60 seconds to improve performance.
- •Use pagination parameters
pageandlimitto paginate through large collections. - •Use
includeContent=false(default) for faster responses when you only need item metadata. - •File paths should be URL-encoded (e.g., spaces become
%20).
Available Collections
presidents