Skip to main content
GET
/
v1
/
random
/
choice
Random Choice
curl --request GET \
  --url https://api.example.com/v1/random/choice \
  --header 'X-API-Key: <api-key>'
{
  "detail": [
    {
      "loc": [
        "<string>"
      ],
      "msg": "<string>",
      "type": "<string>"
    }
  ]
}

Authorizations

X-API-Key
string
header
required

Query Parameters

items
string
required

Comma-separated items to choose from

count
integer
default:1

Number of choices to make

Required range: 1 <= x <= 100
allow_duplicates
boolean
default:true

Allow same item to be chosen multiple times

Response

Successful Response