Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Numbers API Random API

The Random API from Numbers API — 4 operation(s) for random.

Numbers API Random API is one of 6 APIs that Numbers API publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Random. The published artifact set on APIs.io includes an OpenAPI specification and API documentation.

This API exposes 4 operations across 4 paths, and defines 3 schemas. It is described by OpenAPI 3.0.3, at version 1.0.0.

Requests are made against a single base URL, http://numbersapi.com.

4 operations 4 paths 3 schemas 4 GET

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.0.3
API Version
1.0.0
Base URL
http://numbersapi.com
License
MIT
Resource Areas
1

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 4 GET. Each is listed below with its method, path, parameters, and response codes.

Random 4
GET
/random/trivia
Get a random trivia fact
getRandomTriviaFact 7 params → 200
GET
/random/math
Get a random mathematical fact
getRandomMathFact 7 params → 200
GET
/random/year
Get a random year fact
getRandomYearFact 7 params → 200
GET
/random/date
Get a random date fact
getRandomDateFact 5 params → 200

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are DateFact (5 properties), YearFact (5 properties), NumberFact (4 properties). Each schema is shown below with its type and property counts.

NumberFact
object
A fact about a number with associated metadata
4 properties 4 required
YearFact
object
A fact about a year with associated metadata
5 properties 4 required
DateFact
object
A fact about a calendar date with associated metadata
5 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

numbers-api-random-api-openapi.yml Raw ↑

Other APIs Numbers API publishes across the network.

Numbers API Date API
Numbers API Math API
Numbers API Numbers API API
Numbers API Trivia API
Numbers API Year API