JokeAPI · JSON Structure

Jokeapi Endpoints Response Structure

Endpoint catalogue envelope.

Type: object Properties: 3 Required: 3
JokesHumorEntertainmentOpen SourceREST APIGames And ComicsPublic APIs

EndpointsResponse is a JSON Structure definition published by JokeAPI, describing 3 properties, of which 3 are required. It conforms to the https://json-structure.org/meta/core/v0/# meta-schema.

Properties

error endpoints timestamp

Meta-schema: https://json-structure.org/meta/core/v0/#

JSON Structure

Raw ↑
{
  "$schema": "https://json-structure.org/meta/core/v0/#",
  "$id": "https://raw.githubusercontent.com/api-evangelist/jokeapi/refs/heads/main/json-structure/jokeapi-endpoints-response-structure.json",
  "name": "EndpointsResponse",
  "description": "Endpoint catalogue envelope.",
  "type": "object",
  "properties": {
    "error": {
      "type": "boolean",
      "example": false
    },
    "endpoints": {
      "type": "array",
      "items": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string",
            "example": "Joke"
          },
          "usage": {
            "type": "object",
            "properties": {
              "method": {
                "type": "string",
                "example": "GET"
              },
              "url": {
                "type": "string",
                "example": "https://v2.jokeapi.dev/joke/{category}"
              },
              "supportedParams": {
                "type": "array",
                "items": {
                  "type": "string"
                },
                "example": [
                  "format",
                  "blacklistFlags",
                  "type",
                  "contains",
                  "idRange",
                  "amount",
                  "lang",
                  "safe-mode"
                ]
              }
            }
          }
        }
      }
    },
    "timestamp": {
      "type": "int32",
      "example": 1780051223357
    }
  },
  "required": [
    "error",
    "endpoints",
    "timestamp"
  ]
}