The API supports various filtering options to help you find specific quotes.
Filter quotes by category using the category parameter.
| Category | Description |
|---|---|
historical | Historical figures and leaders |
contemporary | Modern era personalities |
fictional | Fictional characters |
philosophical | Philosophers and thinkers |
scientific | Scientists and researchers |
literary | Authors and poets |
political | Political figures |
religious | Religious leaders |
business | Business leaders and entrepreneurs |
entertainment | Actors, musicians, artists |
sports | Athletes and sports figures |
other | Other categories |
# Get philosophical quotes
curl "https://quotegallery.nl/api/quotes?category=philosophical&limit=5"
# Get scientific quotes in English
curl "https://quotegallery.nl/api/quotes?category=scientific&language=en"
Filter quotes by language using the language parameter.
curl "https://quotegallery.nl/api/quotes?language=en"
curl "https://quotegallery.nl/api/quotes?language=tr"
Filter quotes by a specific author using author_id.
# First, find the author (via search)
curl "https://quotegallery.nl/api/v1/search?q=Einstein"
# Then filter by author_id
curl "https://quotegallery.nl/api/quotes?author_id=550e8400-e29b-41d4-a716-446655440000"
You can combine multiple filters:
curl "https://quotegallery.nl/api/quotes?category=philosophical&language=en&limit=10&random=true"
The V1 API supports additional sorting options:
# Most liked quotes
curl "https://quotegallery.nl/api/v1/quotes?sort=most_liked&limit=10"
# Oldest quotes first
curl "https://quotegallery.nl/api/v1/quotes?sort=oldest&order=asc"
# Random order
curl "https://quotegallery.nl/api/v1/quotes?sort=random"
| Value | Description |
|---|---|
newest | Most recent first (default) |
oldest | Oldest first |
most_liked | Highest like count first |
least_liked | Lowest like count first |
random | Randomized order |
author_name | Alphabetically by author |
The V1 API allows excluding specific quotes (useful for avoiding duplicates):
curl "https://quotegallery.nl/api/v1/quotes?exclude_ids=uuid1,uuid2,uuid3"
This is useful for implementing "infinite scroll" or "load more" features without showing duplicates.