AnalogDB

the collection of film photography

GALLERYABOUTAPI

Overview

This document outlines the AnalogDB API. This API provides film photographs and metadata in JSON form as a REST-style service. The API is open-source and available on github.

The AnalogDB project is currently under development and subject to change. All film pictures are scrapped from reddit. All credit goes to the original photographers.

Use the following URI to access the endpoints: https://api.analogdb.com

Rate Limiting

The Analogdb API currently places a limit of 60 requests/min. Current rate limit status is returned in response headers after each request including remaining requests and reset time in unix epoch seconds.

x-ratelimit-limit: 60
x-ratelimit-remaining: 59
x-ratelimit-reset: 1691712960

Pagination

All collection endpoints are paginated with keyset pagination. By default, 20 records are returned per page. Pagination can be controlled with the following parameters:

paramdescription
page_sizeset the number of records to return on each page (default 20, maximum 200)
page_idrequest a specific page of results. Each request returns a next_page_id that can be used to access the next page of results
curl https://api.analogdb.com/posts?page_size=10&page_id=774

Resources

Image

The image resource contains the URL of the image as well as information about the resolution.

field nametypedescription
urlstringlink to image
resolutionstringlow, medium, high, raw
widthintegerwidth of image in pixels
heightintegerheight of image in pixels

Post

The post resource contains a list of image(same picture, multiple resolutions) as well as metadata about the post (title, author, etc).

field nametypedescription
idintegerunique identifier
titlestringtitle of post
authorstringauthor of post
permalinkstringurl of post source
scoreintegertotal votes of post
timestampintegertime of post creation (unix time)
nsfwboolimage is NSFW (not safe for work, 18+)
grayscaleboolimage is graysacle (black & white)
sprocketboolimage is a sprocket shot (exposed film sockets)
imagesarray[image]list of image

Meta

The meta resource contains supplementary information about a collection of post resources.

field nametypedescription
total_postsintegertotal number of posts served by endpoint query
page_sizeintegermaximum number of posts returned per page
next_page_idintegerunique identifier of next page
next_page_urlstringurl path to fetch next page

Endpoints

/posts

Returns a collection of post resources with accompanying meta resource.

Query Parameters

Posts can be sorted by time, score, or pseudo-randomly. Limits can be placed for maximum number of returned posts. If total number of posts exceeds the limit, results will be paginated.

paramdescriptiondefaultoptions
sorthow to order the postslatestlatest, top, random
page_sizemaximum number of posts returned201-200
page_idID of page to retrievenull
curl https://api.analogdb.com/posts?sort=top&page_size=50

Additionally, posts can be filtered to include, exclude or only return grayscale, nsfw and sprocket images.

If filter query parameters are not provided (null), posts of that type are included in response. If filter is set to true only photos of that type are returned. If set to false , posts of that type are excluded.

paramdescription
nsfwinclude nsfw (18+) images
grayscaleinclude grayscale (black & white) images
sprocketinclude sprocket images
curl https://api.analogdb.com/posts?grayscale=true&sprocket=true&nsfw=false

/post/:id

Returns a single specific post resource as identified by ID.

curl https://api.analogdb.com/post/1924

© 2025 AnalogDB