@extends('layouts.app') @section('title', 'API Documentation — LoreKeepers') @section('content')
Programmatic access to the LoreKeepers game database and user libraries.
All API requests require an API key. @auth Generate one in Settings → API Keys. @else Sign up and generate one in Settings → API Keys. @endauth
Pass the key via the Authorization header:
Authorization: Bearer YOUR_API_KEY
Alternatively, append ?api_key=YOUR_API_KEY as a query parameter.
https://gamelog.ro/api/v1
Returns HTTP 429 when exceeded.
/api/v1{{ $ep[1] }}
All list endpoints return paginated responses wrapped in data + meta:
{
"data": [ ... ],
"meta": {
"current_page": 1,
"last_page": 5,
"per_page": 20,
"total": 93
}
}
curl https://gamelog.ro/api/v1/games/top-rated \ -H "Authorization: Bearer YOUR_API_KEY"
| Status | Meaning |
|---|---|
| 401 | Missing or invalid API key |
| 404 | Resource not found |
| 422 | Validation error (e.g. q too short) |
| 429 | Rate limit exceeded (60 req/min) |