gelbooru-api 0.2.0

API for the Gelbooru image board
Documentation

Gelbooru API

Rudimentary Gelbooru API.

Usage

Fetch latest 20 Safe-rated posts with tags solo and hatsune_miku.

use gelbooru_api::{Client, Rating, posts};

let client = Client::public();
let posts = posts()
	.limit(20)
	.rating(Rating::Safe)
	.tags(&["solo", "hatsune_miku"])
	.send(&client)
	.await?;

for post in posts {
	println!(
		"Post {id} created at {created_at} by {owner} [{image_url}]",
		id = post.id(),
		created_at = post.created_at(),
		owner = post.owner(),
		image_url = post.image_url(),
	);
}

API coverage

  • Posts
  • Tags
  • Comments