Documentation IndexFetch the complete documentation index at: /llms.txtUse this file to discover all available pages before exploring further.
Fetch the complete documentation index at: /llms.txt
Use this file to discover all available pages before exploring further.
Get draw details (public metadata - no authentication required)
cURL
curl --request GET \ --url https://consumer.fanfare.io/api/draws/{drawId}
const options = {method: 'GET'}; fetch('https://consumer.fanfare.io/api/draws/{drawId}', options) .then(res => res.json()) .then(res => console.log(res)) .catch(err => console.error(err));
import requests url = "https://consumer.fanfare.io/api/draws/{drawId}" response = requests.get(url) print(response.text)
package main import ( "fmt" "net/http" "io" ) func main() { url := "https://consumer.fanfare.io/api/draws/{drawId}" req, _ := http.NewRequest("GET", url, nil) res, _ := http.DefaultClient.Do(req) defer res.Body.Close() body, _ := io.ReadAll(res.Body) fmt.Println(string(body)) }
{ "drawAt": "2023-11-07T05:31:56Z", "id": "3c90c3cc-0d44-4b50-8888-8dd25736052a", "supportsGuest": true, "timeZone": "<string>", "capacity": 123, "closeAt": "2023-11-07T05:31:56Z", "continueSelectingUntilCompleted": true, "loyaltyBiasEnabled": true, "openAt": "2023-11-07T05:31:56Z", "statusOverride": "ended", "statusOverrideAt": "2023-11-07T05:31:56Z", "statusOverrideBy": "<string>", "teardownStatus": "pending" }
{ "error": "validation_error", "issues": [ { "expected": "<string>", "kind": "<string>", "message": "<string>", "path": [ { "input": "<unknown>", "key": "<string>", "origin": "<string>", "type": "<string>" } ], "received": "<string>", "type": "<string>" } ] }
{ "error": "<string>" }
Retrieved draw details
1
ended
pending
completed