Skip to content
GET /v1/random

Random breweries

Try it live

10 free calls per day — no sign-up, no API key. Goes through the oanor gateway.

Custom headers (optional)
api.oanor.com/beer-api

It works. Grab an API key and use it in your project.

Get an API key

Code snippets

curl "https://api.oanor.com/beer-api/v1/random" \
  -H "x-oanor-key: oanor_test_..."
await fetch("https://api.oanor.com/beer-api/v1/random", {
  headers: { "x-oanor-key": "oanor_test_..." }
});
$ch = curl_init("https://api.oanor.com/beer-api/v1/random");
curl_setopt($ch, CURLOPT_HTTPHEADER, ["x-oanor-key: oanor_test_..."]);
curl_setopt($ch, CURLOPT_RETURNTRANSFER, true);
$out = curl_exec($ch);
import requests
requests.get(
    "https://api.oanor.com/beer-api/v1/random",
    headers={"x-oanor-key": "oanor_test_..."}
)

Example response

A real response from this endpoint, captured by the latest health check.

{
    "data": {
        "count": 1,
        "results": [
            {
                "id": "8df1dd63-af4f-4173-805a-3c1c22a4df2d",
                "city": "Destin",
                "name": "McGuire's Irish Pub and Brewery - Destin",
                "type": "brewpub",
                "phone": "8506540567",
                "state": "Florida",
                "street": "33 Highway 98 E",
                "country": "United States",
                "latitude": null,
                "longitude": null,
                "postal_code": "32541-2309",
                "website_url": "http://www.mcguiresirishpub.com"
            }
        ]
    },
    "meta": {
        "timestamp": "2026-05-30T22:48:44.786Z",
        "request_id": "d3795284-d9d9-41ee-bb9e-ca3a6fa0b114"
    },
    "status": "ok",
    "message": "Random brewery retrieved",
    "success": true
}