{"openapi":"3.1.0","info":{"title":"Dramlyx drama search","version":"1.1.0","summary":"Search the Dramlyx library of short dramas","description":"Search the Dramlyx library of AI-made vertical short dramas and get links that open a drama at episode 1 on dramlyx.com. Read-only and free: no key, no sign-in, no cookies. Limits per IP: 30 requests a minute, 2,000 a day. Usage notes and the MCP server: https://dramlyx.com/developers","termsOfService":"https://dramlyx.com/legal/terms","contact":{"name":"Dramlyx Support","email":"support@dramlyx.com","url":"https://dramlyx.com/developers"}},"externalDocs":{"description":"Dramlyx for AI assistants and developers","url":"https://dramlyx.com/developers"},"servers":[{"url":"https://dramlyx.com"}],"paths":{"/api/public/v1/search":{"get":{"operationId":"searchDramas","summary":"Find short dramas by title, plot, trope or genre","description":"Returns up to 10 dramas that match the words, title matches first. Each drama has a url that opens it at episode 1 on dramlyx.com.","x-openai-isConsequential":false,"parameters":[{"name":"q","in":"query","required":true,"description":"What the user wants to watch, e.g. \"billionaire revenge with a strong female lead\", or a drama title","schema":{"type":"string","maxLength":300}},{"name":"limit","in":"query","required":false,"description":"How many dramas to return (1-10, default 5)","schema":{"type":"integer","minimum":1,"maximum":10,"default":5}},{"name":"lang","in":"query","required":false,"description":"Language of the user, e.g. en, es, fr, ja, ko (adds dubbed versions in that language)","schema":{"type":"string"}}],"responses":{"200":{"description":"Matching dramas","content":{"application/json":{"schema":{"$ref":"#/components/schemas/SearchResult"}}}},"400":{"description":"q is missing","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after the number of seconds in the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}},"/api/public/v1/dramas/{slug}":{"get":{"operationId":"getDrama","summary":"Details of one drama","description":"The full synopsis, episodes, free episodes, VIP and completed status, genres and the link of one drama, by the slug from searchDramas.","x-openai-isConsequential":false,"parameters":[{"name":"slug","in":"path","required":true,"description":"The slug from searchDramas","schema":{"type":"string","maxLength":120}}],"responses":{"200":{"description":"The drama","content":{"application/json":{"schema":{"$ref":"#/components/schemas/DramaDetail"}}}},"404":{"description":"No such drama","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}},"429":{"description":"Too many requests; retry after the number of seconds in the Retry-After header","content":{"application/json":{"schema":{"$ref":"#/components/schemas/Error"}}}}}}}},"components":{"schemas":{"Drama":{"type":"object","properties":{"slug":{"type":"string","description":"Stable id of the drama"},"title":{"type":"string"},"poster":{"type":"string","description":"Poster image URL (a stable link; empty when the drama has no poster)"},"episodes":{"type":"integer","minimum":0,"description":"Number of episodes"},"freeEpisodes":{"type":"integer","minimum":0,"description":"How many episodes are free to watch"},"vip":{"type":"boolean","description":"VIP Exclusive: members-only"},"completed":{"type":"boolean","description":"All episodes are out"},"genres":{"type":"array","items":{"type":"string"}},"intro":{"type":"string","description":"One or two sentences from the official synopsis"},"url":{"type":"string","format":"uri","description":"Opens the drama at episode 1 on dramlyx.com"},"badge_at":{"type":["string","null"],"description":"The date behind the month badge on dramlyx.com cards (YYYY-MM-DD): the release date, or the day Dramlyx added the drama when the release date is unknown. Cards show the month for the current and the previous three months."}},"required":["slug","title","poster","episodes","freeEpisodes","vip","completed","genres","intro","url","badge_at"]},"DramaDetail":{"type":"object","properties":{"slug":{"type":"string","description":"Stable id of the drama"},"title":{"type":"string"},"poster":{"type":"string","description":"Poster image URL (a stable link; empty when the drama has no poster)"},"episodes":{"type":"integer","minimum":0,"description":"Number of episodes"},"freeEpisodes":{"type":"integer","minimum":0,"description":"How many episodes are free to watch"},"vip":{"type":"boolean","description":"VIP Exclusive: members-only"},"completed":{"type":"boolean","description":"All episodes are out"},"genres":{"type":"array","items":{"type":"string"}},"intro":{"type":"string","description":"One or two sentences from the official synopsis"},"url":{"type":"string","format":"uri","description":"Opens the drama at episode 1 on dramlyx.com"},"badge_at":{"type":["string","null"],"description":"The date behind the month badge on dramlyx.com cards (YYYY-MM-DD): the release date, or the day Dramlyx added the drama when the release date is unknown. Cards show the month for the current and the previous three months."},"synopsis":{"type":"string","description":"The full official synopsis"},"page":{"type":"string","format":"uri","description":"The drama page on dramlyx.com"}},"required":["slug","title","poster","episodes","freeEpisodes","vip","completed","genres","intro","url","badge_at","synopsis","page"]},"SearchResult":{"type":"object","properties":{"query":{"type":"string","description":"The search words as used"},"matched":{"type":"boolean","description":"false when nothing matched and popular dramas are returned instead"},"results":{"type":"array","items":{"$ref":"#/components/schemas/Drama"}}},"required":["query","matched","results"]},"Error":{"type":"object","properties":{"error":{"type":"object","properties":{"code":{"type":"string"},"message":{"type":"string"}},"required":["code","message"]}},"required":["error"]}}}}