Overview
- Category
- Lifestyle
- API mode
not_available- Processing
- client-side
- Privacy
- no-data-stored
Public descriptor
The descriptor is available without an API key and supplies this tool’s metadata, schemas, modes, and examples.
GET /api/v1/tools/lottery-number-generator
Execute availability
This tool is documented as a browser capability. Its execute route does not produce a server-side result; when execution is enabled, it responds with browser_interaction_required and points callers to the public tool page.
POST /api/v1/tools/lottery-number-generator/execute
Authentication is not issued during the preview. A bearer API key is planned for execution after launch.
Input schema
object object; additional properties are not accepted.
minimum· number · required- Enter minimum number.
maximum· number · required- Enter maximum number.
draw_count· number · required- Enter numbers to draw.
tickets· number · required- Enter tickets.
sort· string · required-
Enter sort each ticket. Accepted values:
yes, no.
{
"type": "object",
"properties": {
"minimum": {
"type": "number",
"description": "Enter minimum number."
},
"maximum": {
"type": "number",
"description": "Enter maximum number."
},
"draw_count": {
"type": "number",
"description": "Enter numbers to draw."
},
"tickets": {
"type": "number",
"description": "Enter tickets."
},
"sort": {
"type": "string",
"description": "Enter sort each ticket.",
"enum": [
"yes",
"no"
]
}
},
"required": [
"minimum",
"maximum",
"draw_count",
"tickets",
"sort"
],
"additionalProperties": false
}
Output schema
On a successful execution, schema values appear in data.result.values.
tickets· array- Generated tickets produced by the tool.
possible_combinations· string- Possible combinations produced by the tool.
notice· string- Randomness notice produced by the tool.
{
"type": "object",
"properties": {
"tickets": {
"type": "array",
"description": "Generated tickets produced by the tool."
},
"possible_combinations": {
"type": "string",
"description": "Possible combinations produced by the tool."
},
"notice": {
"type": "string",
"description": "Randomness notice produced by the tool."
}
},
"additionalProperties": false
}
Lottery Number Generator worked example
The request body follows the published input schema. The response below shows the success-envelope shape returned after execution is available.
curl -X POST "https://utilitypages.org/api/v1/tools/lottery-number-generator/execute" \
-H "Content-Type: application/json" \
-d '{
"minimum": 1,
"maximum": 49,
"draw_count": 6,
"tickets": 5,
"sort": "yes"
}'
{
"ok": true,
"data": {
"slug": "lottery-number-generator",
"result": {
"values": {
"tickets": [
{
"ticket": 1,
"numbers": "5, 10, 13, 14, 17, 37"
},
{
"ticket": 2,
"numbers": "4, 13, 14, 27, 32, 44"
},
{
"ticket": 3,
"numbers": "4, 19, 27, 28, 42, 47"
},
{
"ticket": 4,
"numbers": "2, 3, 18, 37, 39, 41"
},
{
"ticket": 5,
"numbers": "9, 12, 24, 25, 43, 45"
}
],
"possible_combinations": "13,983,816",
"notice": "Random selections do not change the odds of a draw."
},
"display": {
"display": "[{\"ticket\":1,\"numbers\":\"5, 10, 13, 14, 17, 37\"},{\"ticket\":2,\"numbers\":\"4, 13, 14, 27, 32, 44\"},{\"ticket\":3,\"numbers\":\"4, 19, 27, 28, 42, 47\"},{\"ticket\":4,\"numbers\":\"2, 3, 18, 37, 39, 41\"},{\"ticket\":5,\"numbers\":\"9, 12, 24, 25, 43, 45\"}]"
},
"warnings": [],
"assumptions": [],
"steps": []
}
},
"meta": [],
"request_id": "req_example_123"
}
Errors
api_not_launched· 503- Returned by the current launch gate for every execute request.
invalid_json· 400- Returned when an enabled execute request does not contain valid JSON.
validation_failed· 422- Returned when a request does not satisfy the input schema.
browser_interaction_required· 422- Returned for browser capability tools instead of inventing a server-side result.
tool_not_found· 404- Returned when a requested descriptor slug does not exist.
execution_failed· 503- Returned when an enabled server-side execution cannot complete.