#image #fetch #api

picsum-rs

Rust API client for Picsum Photos. Fetch random images, specific IDs, or lists of photos easily.

1 unstable release

Uses new Rust 2024

0.1.0 Dec 7, 2025

#112 in #fetch

MIT license

19KB
348 lines

picsum-rs

Build Status Crates.io Documentation

picsum-rs is a Rust client for the picsum.photos API, allowing you to fetch random Placeholder images, with the possibility to customize size, blur, and color.

Features

  • Fetch random images
  • Fetch specific image by its ID
  • Configure image size, blur effect, black & white
  • Retrieve image details

Installation

Add picsum-rs to your Cargo.toml file:

[dependencies]
picsum-rs = "0.1"

Dependencies

~4–19MB
~201K SLoC