Yesterday's Random Number
Yesterday's Random Number provides a random number that was generated 24 hours ago and aged for smoothness. It includes a 7-day historical record, a freshness score, and sommelier tasting notes. Today's number is also available. You have chosen the other one. The aging process does not improve the number. The sommelier tasting notes are AI-generated and should not be used to make wine purchasing decisions.
Try It — No Seriously
Parameters
| Parameter | Type | Required | Default | Description |
|---|---|---|---|---|
format |
string |
Optional | "integer" |
Number format: integer, float, or scientific. Aging applies to all formats. |
Examples
curl "https://api.stupidapis.com/yesterdays-number/get?format=integer"
import requests
response = requests.get(
"https://api.stupidapis.com/yesterdays-number/get",
params={"format": "integer"}
)
print(response.json())
const response = await fetch( "https://api.stupidapis.com/yesterdays-number/get?format=integer" ); const data = await response.json(); console.log(data);
Response Schema
| Field | Type | Description |
|---|---|---|
number |
number |
Yesterday's random number |
generated |
string |
When the number was generated |
age |
string |
How old the number is |
freshness_score |
number |
Freshness rating (0-100). Decreases with time. |
tasting_notes |
string |
Sommelier tasting notes for this number |
history |
array |
7-day historical record of past numbers |
Example Response
{
"number": 73,
"generated": "2025-07-14T08: 00: 00Z",
"age": "24 hours",
"freshness_score": 62,
"tasting_notes": "A robust 73 with notes of oak and mild uncertainty. Pairs well with regret. Decant before using in production.",
"history": [
84,
12,
67,
91,
45,
73,
29
]
}