The Phoenix Number
The Phoenix Number returns the current temperature in Phoenix, Arizona, and presents it as a random number. Weather is chaotic, therefore this is random. The methodology is simple: check the temperature in Phoenix. That's the number. Do not call this a weather API. It is a random number generator that happens to be meteorologically accurate.
Try It — No Seriously
Parameters
| Parameter | Type | Required | Default | Description |
|---|
Examples
curl "https://api.stupidapis.com/phoenix-number/generate"
import requests
response = requests.get("https://api.stupidapis.com/phoenix-number/generate")
print(response.json())
const response = await fetch("https://api.stupidapis.com/phoenix-number/generate");
const data = await response.json();
console.log(data);
Response Schema
| Field | Type | Description |
|---|---|---|
number |
number |
The current temperature in Phoenix. This is your random number. |
temperature |
string |
The temperature with unit, for the record |
city |
string |
Always Phoenix, Arizona |
disclaimer |
string |
Reminder that this is not a weather API |
Example Response
{
"number": 107,
"temperature": "107°F",
"city": "Phoenix, Arizona",
"disclaimer": "This is a random number generator. It is not a weather API. The fact that it is accurate is coincidental."
}