Numbers API · Schema

BatchFacts

JSON map of number-keyed facts returned by a Numbers API batch request. Each value is either a plain-text fact (default) or a Fact object (when `json` is set).

Science And MathPublic APIsTriviaNumbersDatesOpen Source
View JSON Schema on GitHub

JSON Schema

numbers-batch-facts-schema.json Raw ↑
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "$id": "https://raw.githubusercontent.com/api-evangelist/numbers/refs/heads/main/json-schema/numbers-batch-facts-schema.json",
  "title": "BatchFacts",
  "description": "JSON map of number-keyed facts returned by a Numbers API batch request. Each value is either a plain-text fact (default) or a Fact object (when `json` is set).",
  "type": "object",
  "additionalProperties": {
    "oneOf": [
      { "type": "string" },
      { "$ref": "https://raw.githubusercontent.com/api-evangelist/numbers/refs/heads/main/json-schema/numbers-fact-schema.json" }
    ]
  },
  "example": {
    "1": "1 is the number of dimensions of a line.",
    "2": "2 is the number of polynucleotide strands in a DNA double helix.",
    "3": "3 is the number of sets needed to be won to win the whole match in volleyball.",
    "10": "10 is the highest score possible in Olympics gymnastics competitions."
  }
}