AI Search Engine

AI Search Engine · GPT-Aktionen

Joke API

This API fetches a random joke.

  • GET /jokes/randomGet a random joke
Ursprüngliches API-Schema
{
  "openapi": "3.1.0",
  "info": {
    "title": "Joke API",
    "description": "This API fetches a random joke.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://official-joke-api.appspot.com",
      "description": "Joke API server"
    }
  ],
  "paths": {
    "/jokes/random": {
      "get": {
        "operationId": "getRandomJoke",
        "summary": "Get a random joke",
        "responses": {
          "200": {
            "description": "Successful response",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "integer"
                    },
                    "type": {
                      "type": "string"
                    },
                    "setup": {
                      "type": "string"
                    },
                    "punchline": {
                      "type": "string"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}