Brain Rot GPT

Brain Rot GPT · GPT Actions

Urban Dictionary API Client

A client for interacting with the Urban Dictionary API

  • GET /v0/defineGet definitions for a term
原始 API 定义
{
  "openapi": "3.1.0",
  "info": {
    "title": "Urban Dictionary API Client",
    "description": "A client for interacting with the Urban Dictionary API",
    "version": "v1.0.0"
  },
  "servers": [
    {
      "url": "https://api.urbandictionary.com"
    }
  ],
  "paths": {
    "/v0/define": {
      "get": {
        "operationId": "getDefinitions",
        "summary": "Get definitions for a term",
        "parameters": [
          {
            "name": "term",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "name": "page",
            "in": "query",
            "required": false,
            "schema": {
              "type": "integer",
              "default": 1
            }
          }
        ],
        "responses": {
          "200": {
            "description": "A list of definitions",
            "content": {
              "application/json": {
                "schema": {
                  "type": "object",
                  "properties": {
                    "list": {
                      "type": "array",
                      "items": {
                        "type": "object",
                        "properties": {
                          "definition": {
                            "type": "string"
                          },
                          "example": {
                            "type": "string"
                          },
                          "thumbs_up": {
                            "type": "integer"
                          },
                          "thumbs_down": {
                            "type": "integer"
                          },
                          "author": {
                            "type": "string"
                          }
                        }
                      }
                    },
                    "total": {
                      "type": "integer"
                    },
                    "pages": {
                      "type": "integer"
                    }
                  }
                }
              }
            }
          }
        }
      }
    }
  },
  "components": {
    "schemas": {}
  }
}