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 Trivia API

Trivia facts about integers.

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

This API exposes 4 JSON Schema definitions.

Tagged areas include Trivia. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, an API reference, a getting-started guide, and 4 JSON Schemas.

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

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

3 operations 3 paths 1 schemas 3 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/
Resource Areas
1

Paths & Operations 3

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

Trivia 3

Trivia facts about integers.

GET
/{number}
Numbers API Get Trivia Fact
getTrivia 9 params → 200404
GET
/{number}/trivia
Numbers API Get Trivia Fact Explicit
getTriviaFact 9 params → 200404
GET
/random/trivia
Numbers API Get Random Trivia Fact
getRandomTriviaFact 8 params → 200

Schemas 1

The contract defines 1 schema that model the data the API accepts and returns. The most detailed is Fact (6 properties). Each schema is shown below with its type and property counts.

Fact
object
A single Numbers API fact returned in JSON form.
6 properties 4 required

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

numbers-trivia-api-openapi.yml Raw ↑

Other APIs Numbers API publishes across the network.

Numbers API Batch API
Numbers API Date API
Numbers API Math API
Numbers API Year API