🎶 Songquiz - Wann kam's denn raus? (5.0⭐)

🎶 Songquiz - Wann kam's denn raus? (5.0⭐) · Acciones GPT

Random Music Generator API

API zur Generierung zufälliger Musikstücke basierend auf Genre und Jahrzehnt.

  • GET /getRandomTrackErhält ein zufälliges Musikstück basierend auf Genre und Jahrzehnt.
Esquema original API
{
  "openapi": "3.0.0",
  "info": {
    "title": "Random Music Generator API",
    "description": "API zur Generierung zufälliger Musikstücke basierend auf Genre und Jahrzehnt.",
    "version": "1.0.0"
  },
  "servers": [
    {
      "url": "https://europe-west1-randommusicgenerator-34646.cloudfunctions.net/app",
      "description": "Hauptserver für den Random Music Generator"
    }
  ],
  "paths": {
    "/getRandomTrack": {
      "get": {
        "operationId": "getRandomTrack",
        "summary": "Erhält ein zufälliges Musikstück basierend auf Genre und Jahrzehnt.",
        "parameters": [
          {
            "name": "genre",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "none",
                "random",
                "acoustic",
                "afrobeat",
                "alt-rock",
                "alternative",
                "ambient",
                "anime",
                "black-metal",
                "bluegrass",
                "blues",
                "bossanova",
                "brazil",
                "breakbeat",
                "british",
                "cantopop",
                "chicago-house",
                "children",
                "chill",
                "classical",
                "club",
                "comedy",
                "country",
                "dance",
                "dancehall",
                "death-metal",
                "deep-house",
                "detroit-techno",
                "disco",
                "disney",
                "drum-and-bass",
                "dub",
                "dubstep",
                "edm",
                "electro",
                "electronic",
                "emo",
                "folk",
                "forro",
                "french",
                "funk",
                "garage",
                "german",
                "gospel",
                "goth",
                "grindcore",
                "groove",
                "grunge",
                "guitar",
                "happy",
                "hard-rock",
                "hardcore",
                "hardstyle",
                "heavy-metal",
                "hip-hop",
                "holidays",
                "honky-tonk",
                "house",
                "idm",
                "indian",
                "indie",
                "indie-pop",
                "industrial",
                "iranian",
                "j-dance",
                "j-idol",
                "j-pop",
                "j-rock",
                "jazz",
                "k-pop",
                "kids",
                "latin",
                "latino",
                "malay",
                "mandopop",
                "metal",
                "metal-misc",
                "metalcore",
                "minimal-techno",
                "movies",
                "mpb",
                "new-age",
                "new-release",
                "opera",
                "pagode",
                "party",
                "philippines-opm",
                "piano",
                "pop",
                "pop-film",
                "post-dubstep",
                "power-pop",
                "progressive-house",
                "psych-rock",
                "punk",
                "punk-rock",
                "r-n-b",
                "rainy-day",
                "reggae",
                "reggaeton",
                "road-trip",
                "rock",
                "rock-n-roll",
                "rockabilly",
                "romance",
                "sad",
                "salsa",
                "samba",
                "sertanejo",
                "show-tunes",
                "singer-songwriter",
                "ska",
                "sleep",
                "songwriter",
                "soul",
                "soundtracks",
                "spanish",
                "study",
                "summer",
                "swedish",
                "synth-pop",
                "tango",
                "techno",
                "trance",
                "trip-hop",
                "turkish",
                "work-out",
                "world-music"
              ]
            },
            "description": "Genre des Musikstücks."
          },
          {
            "name": "market",
            "in": "query",
            "schema": {
              "type": "string",
              "default": "random"
            },
            "description": "Markt für die Musik, standardmäßig 'random'."
          },
          {
            "name": "decade",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "enum": [
                "all",
                "random",
                "2020s",
                "2010s",
                "2000s",
                "1990s",
                "1980s",
                "1970s",
                "1960s",
                "1950s"
              ]
            },
            "description": "Jahrzehnt des Musikstücks."
          },
          {
            "name": "tag_new",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "Ob neue Tags inbegriffen sein sollen."
          },
          {
            "name": "exclude_singles",
            "in": "query",
            "schema": {
              "type": "boolean",
              "default": false
            },
            "description": "Ob Singles ausgeschlossen werden sollen."
          }
        ],
        "responses": {
          "200": {
            "description": "Ein zufälliges Musikstück",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "id": {
                      "type": "string"
                    },
                    "name": {
                      "type": "string"
                    },
                    "image": {
                      "type": "string",
                      "format": "uri"
                    },
                    "link": {
                      "type": "string",
                      "format": "uri"
                    },
                    "uri": {
                      "type": "string"
                    },
                    "release_date": {
                      "type": "string"
                    },
                    "duration_ms": {
                      "type": "integer"
                    },
                    "artists": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Artist"
                      }
                    },
                    "albums": {
                      "type": "array",
                      "items": {
                        "$ref": "#/components/schemas/Album"
                      }
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "Artist": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "link": {
            "type": "string",
            "format": "uri"
          },
          "uri": {
            "type": "string"
          }
        }
      },
      "Album": {
        "type": "object",
        "properties": {
          "name": {
            "type": "string"
          },
          "id": {
            "type": "string"
          },
          "album_type": {
            "type": "string"
          },
          "total_tracks": {
            "type": "integer"
          },
          "link": {
            "type": "string",
            "format": "uri"
          },
          "uri": {
            "type": "string"
          }
        }
      }
    }
  }
}