API
Pixelshelf has an open JSON API. The catalog can be read without signing in; for your own collection you need an API key from your Account.
Catalog (no key)
| Request | Returns |
|---|---|
| GET /api/plattformen | all platforms |
| GET /api/spiele?q=mario&plattform=8&seite=1 | games, 50 per page |
| GET /api/spiele/{id} | one game with editions and average rating |
| GET /api/releases?ean=4006381333931 | editions for a barcode |
Your collection (with key)
Header: Authorization: Bearer <key>
| Request | Effect |
|---|---|
| GET /api/sammlung | all your items |
| POST /api/sammlung | Add item |
| GET /api/sammlung/{id} | one item |
| PATCH /api/sammlung/{id} | change fields |
| DELETE /api/sammlung/{id} | Remove item |
Example
curl -X POST https://pixelregal.app/api/sammlung \
-H "Authorization: Bearer DEIN_SCHLUESSEL" \
-H "Content-Type: application/json" \
-d '{"release_id": 12, "zustand": "B", "hat_box": true, "hat_anleitung": true, "kaufpreis": 24.90}'
Condition: A (like new) to E (broken). Without Apache rewrite, the address is https://pixelregal.app/api/index.php/sammlung.