Docs / API reference
Get a photo file
GET /v1/images/{id}/file: a photo, the original or a resized WebP (thumb or medium), from the signed links the API hands out.
GET /v1/images/{id}/fileNo key needed with the signed links the API hands out (url, thumb_url, medium_url); a link without its signature needs an API key.
Photos come with ready-made links (url, thumb_url, medium_url) in item responses. Use those as they are: they are signed, so an <img> tag can load them without a key. The example's sig=… stands for the signature in such a link; without it, the request needs a key. Photos lists the sizes.
Path parameters
| Name | Type | Required | Description |
|---|---|---|---|
id | UUID | Yes |
Query parameters
| Name | Type | Required | Description |
|---|---|---|---|
size | one of: thumb, medium | No | |
exp | string, up to 20 characters | No | Signed links from the API carry exp and sig and need no key |
sig | string, up to 200 characters | No |
Example
curl "https://tablearchive.dev/v1/images/45a4acbd-a0a6-4079-aad7-36563471f991/file?size=thumb&exp=1791763200&sig=…" \
-o photo.webpconst res = await fetch('https://tablearchive.dev/v1/images/45a4acbd-a0a6-4079-aad7-36563471f991/file?size=thumb&exp=1791763200&sig=…')
const bytes = new Uint8Array(await res.arrayBuffer())import requests
res = requests.get(
"https://tablearchive.dev/v1/images/45a4acbd-a0a6-4079-aad7-36563471f991/file?size=thumb&exp=1791763200&sig=…",
)
photo = res.contentNotes
- Signed links expire after six to twelve hours; fetch the item again for fresh ones.
- Responses are cacheable until the link expires.
Errors
| Status | When |
|---|---|
400 | A parameter or field is missing or invalid; details names each one |
401 | A link without its signature, and no API key |
404 | Nothing at that id or slug (a merged-away slug redirects to the survivor instead) |
429 | Rate limited; wait for Retry-After seconds |
Every error is JSON with an error message. See Rate limits and errors.