Whapi

Numbers API

The William Hill Numbers API uses a single method that allows you to generate random numbers for your application. Numbers can either be unique or can be…

Media & content#openapi#entertainment

Fork copies the collection into your workspace, without the publisher's secrets, so you can add your own key and send requests. Star saves it to your starred APIs (Account › Marketplace) and helps others find it.

Overview

The William Hill Numbers API uses a single method that allows you to generate random numbers for your application. Numbers can either be unique or can be produced with the chance that some might be the same. For example, you can have a highest value of 6 and a lowest value of 1 with a count of 2 with a unique value of false - this will give you two numbers between 1 and 6 which are independent, just like two dice being rolled. The Numbers API is a Private API and therefore not automatically available to developers. To use this API, contact your business manager who will guide you through the separate Terms and Conditions of use before you can have the API assigned to your application.

Endpoints 1

Numbers

  • GETgetRandomNumbers/generate/integers?gameCode=string&highest=1&lowest=1&count=1&unique=trueThis method is used to generate random numbers for your app. Within the request, you can specify the lowest number, the highest number and the amount of…

API details

Base URL
https://sandbox.whapi.com/v2/numbers
Authentication
None declared in the description
Operations
1 operation on 1 pathGET 1
Main resources
Numbers 1
Response formats
application/json
Description format
Swagger 2.0, API version 2.0
Listed from
APIs.guru OpenAPI Directory (CC0-1.0)
Source updated

How to test the Numbers API in Swastik Codes

  1. Open the APISelect “Fork & run in Swastik Codes” on this page. Sign in or create a free account if asked.
  2. Fork it into your workspaceChoose a workspace. You get your own copy of the Numbers API collection, without the publisher's secrets.
  3. Add your credentialsOpen the collection's variables or an environment and enter your API key or token, if the API needs one.
  4. Send a requestPick an endpoint, for example “getRandomNumbers” (GET /generate/integers?gameCode=string&highest=1&lowest=1&count=1&unique=true), and press Send. Check the response, add tests and run the whole collection with the runner.

Frequently asked questions

What is the Numbers API?

The William Hill Numbers API uses a single method that allows you to generate random numbers for your application. Numbers can either be unique or can be… It is listed under Media & content and has 1 endpoint.

Who publishes the Numbers API?

It is listed from Whapi's public API description (an OpenAPI document), not published by Whapi on Swastik Codes. Anyone who controls whapi.com can claim the profile by adding a DNS TXT record.

What is the base URL of the Numbers API?

Requests go to https://sandbox.whapi.com/v2/numbers. Endpoint paths are added to this base URL.

How do I authenticate with the Numbers API?

Its OpenAPI description does not declare an authentication scheme. Some endpoints may be open; check the provider's documentation before relying on that.

How many endpoints does the Numbers API have?

1 operation on 1 path (1 GET). The largest groups are Numbers.

Is forking the Numbers API free?

Yes. Forking copies the collection into your workspace for free. It has been starred 0 times and forked 0 times.

Suggest an API

Tell us which public API is missing. We check it, then add it here with its endpoints when it has an OpenAPI (Swagger) description.