> ## Documentation Index
> Fetch the complete documentation index at: /docs/llms.txt
> Use this file to discover all available pages before exploring further.

# Douyin Short Drama Posts

> Get Douyin short dramas by type, including titles, covers, episode counts, creators and statistics. Episode videos and paid-content unlocking are not provided.

Save `data.task_id` and call `GET /v1/tasks/{task_id}` to retrieve the result. OAuth access tokens require `tools:execute` and access to this tool.



## OpenAPI

````yaml /openapi.json post /v1/douyin_drama_posts
openapi: 3.1.0
info:
  title: Mouter API
  version: '1.0'
  description: Discover tools, submit tasks, and read results and charges.
servers:
  - url: https://api.mouter.ai
    description: Production
security: []
paths:
  /v1/douyin_drama_posts:
    post:
      tags:
        - douyin
      summary: Douyin Short Drama Posts
      description: >-
        Get Douyin short dramas by type, including titles, covers, episode
        counts, creators and statistics. Episode videos and paid-content
        unlocking are not provided.


        Save `data.task_id` and call `GET /v1/tasks/{task_id}` to retrieve the
        result. OAuth access tokens require `tools:execute` and access to this
        tool.
      operationId: submit_douyin_drama_posts
      parameters:
        - name: Idempotency-Key
          in: header
          required: false
          description: >-
            Reuse the key with the same credential and input when retrying the
            same submission.
          schema:
            maxLength: 128
            minLength: 1
            type: string
      requestBody:
        required: true
        content:
          application/json:
            example:
              category: 0
              limit: 16
            schema:
              $ref: '#/components/schemas/douyin_drama_posts_input'
      responses:
        '200':
          description: >-
            Existing task returned for an idempotent retry. An available result
            matches the output schema shown here.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    const: 0
                  message:
                    type: string
                    const: ''
                  data:
                    type: object
                    properties:
                      task_id:
                        type: string
                        pattern: ^[A-Za-z0-9_-]{1,40}$
                      status:
                        type: string
                        enum:
                          - submitted
                          - queued
                          - in_progress
                          - succeeded
                          - failed
                          - timed_out
                          - canceled
                      progress:
                        anyOf:
                          - type: integer
                            minimum: 0
                            maximum: 100
                          - type: 'null'
                      error:
                        anyOf:
                          - type: object
                            properties:
                              code:
                                type: string
                              message:
                                type: string
                            required:
                              - code
                              - message
                          - type: 'null'
                      created_at:
                        type: integer
                        minimum: 0
                        description: UTC Unix time in seconds.
                      updated_at:
                        type: integer
                        minimum: 0
                        description: UTC Unix time in seconds.
                      result:
                        anyOf:
                          - $ref: '#/components/schemas/douyin_drama_posts_result'
                          - type: 'null'
                    required:
                      - task_id
                      - status
                      - progress
                      - error
                      - created_at
                      - updated_at
                      - result
                  request_id:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - code
                  - message
                  - data
                  - request_id
          headers:
            Idempotency-Replayed:
              schema:
                type: string
                const: 'true'
        '202':
          description: Task accepted.
          content:
            application/json:
              schema:
                type: object
                properties:
                  code:
                    type: integer
                    const: 0
                  message:
                    type: string
                    const: ''
                  data:
                    $ref: '#/components/schemas/AcceptedTask'
                  request_id:
                    anyOf:
                      - type: string
                      - type: 'null'
                required:
                  - code
                  - message
                  - data
                  - request_id
              example:
                code: 0
                message: ''
                data:
                  task_id: task_example
                  status: submitted
                  progress: null
                  error: null
                  created_at: 1795488000
                  updated_at: 1795488000
                  result: null
                request_id: req_example
        '400':
          $ref: '#/components/responses/Error400'
        '401':
          $ref: '#/components/responses/Error401'
        '402':
          $ref: '#/components/responses/Error402'
        '403':
          $ref: '#/components/responses/Error403'
        '409':
          $ref: '#/components/responses/Error409'
        '413':
          $ref: '#/components/responses/Error413'
        '415':
          $ref: '#/components/responses/Error415'
        '429':
          $ref: '#/components/responses/Error429'
        '503':
          $ref: '#/components/responses/Error503'
      security:
        - Bearer: []
components:
  schemas:
    douyin_drama_posts_input:
      additionalProperties: false
      properties:
        category:
          default: 0
          enum:
            - 0
            - 101
            - 102
            - 104
            - 105
            - 106
            - 109
            - 110
            - 112
            - 113
            - 114
            - 115
            - 116
            - 117
            - 119
            - 124
          title: Category
          type: integer
        limit:
          default: 16
          maximum: 30
          minimum: 1
          title: Limit
          type: integer
        cursor:
          anyOf:
            - maxLength: 16384
              minLength: 1
              type: string
            - type: 'null'
          default: null
          title: Cursor
      title: DramaDiscoveryInput
      type: object
    douyin_drama_posts_result:
      additionalProperties: false
      properties:
        platform:
          const: douyin
          default: douyin
          title: Platform
          type: string
        category:
          minimum: 0
          title: Category
          type: integer
        items:
          items:
            $ref: '#/components/schemas/douyin_drama_posts_result__DramaCard'
          maxItems: 1000
          title: Items
          type: array
        returned_count:
          maximum: 9007199254740991
          minimum: 0
          title: Returned Count
          type: integer
        pagination:
          $ref: '#/components/schemas/douyin_drama_posts_result__Pagination'
        retrieved_at:
          maximum: 9007199254740991
          minimum: 0
          title: Retrieved At
          type: integer
      required:
        - category
        - items
        - returned_count
        - pagination
        - retrieved_at
      title: DramaDiscoveryResult
      type: object
    AcceptedTask:
      type: object
      properties:
        task_id:
          type: string
          pattern: ^[A-Za-z0-9_-]{1,40}$
        status:
          type: string
          enum:
            - submitted
            - queued
            - in_progress
            - succeeded
            - failed
            - timed_out
            - canceled
        progress:
          anyOf:
            - type: integer
              minimum: 0
              maximum: 100
            - type: 'null'
        error:
          anyOf:
            - type: object
              properties:
                code:
                  type: string
                message:
                  type: string
              required:
                - code
                - message
            - type: 'null'
        created_at:
          type: integer
          minimum: 0
          description: UTC Unix time in seconds.
        updated_at:
          type: integer
          minimum: 0
          description: UTC Unix time in seconds.
        result:
          type: 'null'
      required:
        - task_id
        - status
        - progress
        - error
        - created_at
        - updated_at
        - result
    douyin_drama_posts_result__DramaCard:
      additionalProperties: false
      properties:
        id:
          maxLength: 128
          minLength: 1
          pattern: ^[0-9]+$
          title: Id
          type: string
        title:
          maxLength: 4096
          minLength: 1
          title: Title
          type: string
        text:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Text
        url:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Url
        cover_url:
          maxLength: 8192
          minLength: 1
          title: Cover Url
          type: string
        published_at:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Published At
        is_paid:
          anyOf:
            - type: boolean
            - type: 'null'
          default: null
          title: Is Paid
        episode_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Episode Count
        updated_episode_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Updated Episode Count
        status_text:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Status Text
        author:
          $ref: '#/components/schemas/douyin_drama_posts_result__DramaDiscoveryAuthor'
        statistics:
          $ref: >-
            #/components/schemas/douyin_drama_posts_result__DramaDiscoveryStatistics
        updated_at:
          maximum: 9007199254740991
          minimum: 0
          title: Updated At
          type: integer
        categories:
          items:
            $ref: '#/components/schemas/douyin_drama_posts_result__DramaCategory'
          maxItems: 100
          title: Categories
          type: array
      required:
        - id
        - title
        - cover_url
        - author
        - statistics
        - updated_at
        - categories
      title: DramaCard
      type: object
    douyin_drama_posts_result__Pagination:
      additionalProperties: false
      properties:
        has_more:
          title: Has More
          type: boolean
        next_cursor:
          anyOf:
            - type: string
            - type: 'null'
          default: null
          title: Next Cursor
        total:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Total
      required:
        - has_more
      title: Pagination
      type: object
    Error:
      type: object
      properties:
        code:
          type: string
        message:
          type: string
        data:
          type: 'null'
        request_id:
          anyOf:
            - type: string
            - type: 'null'
      required:
        - code
        - message
        - data
        - request_id
    douyin_drama_posts_result__DramaDiscoveryAuthor:
      additionalProperties: false
      properties:
        id:
          maxLength: 128
          minLength: 1
          pattern: ^[0-9]+$
          title: Id
          type: string
        sec_user_id:
          anyOf:
            - maxLength: 256
              minLength: 1
              pattern: ^[A-Za-z0-9_-]+$
              type: string
            - type: 'null'
          default: null
          title: Sec User Id
        name:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Name
        username:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Username
        avatar_url:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Avatar Url
      required:
        - id
      title: DramaDiscoveryAuthor
      type: object
    douyin_drama_posts_result__DramaDiscoveryStatistics:
      additionalProperties: false
      properties:
        play_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Play Count
        favorite_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          deprecated: true
          description: Legacy alias; use the canonical field name.
          title: Favorite Count
        collect_count:
          maximum: 9007199254740991
          minimum: 0
          title: Collect Count
          type: integer
      required:
        - collect_count
      title: DramaDiscoveryStatistics
      type: object
    douyin_drama_posts_result__DramaCategory:
      additionalProperties: false
      properties:
        id:
          minimum: 0
          title: Id
          type: integer
        name:
          maxLength: 4096
          title: Name
          type: string
      required:
        - id
        - name
      title: DramaCategory
      type: object
  responses:
    Error400:
      description: Invalid request parameters, headers, or body.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error401:
      description: A valid credential is required.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error402:
      description: Insufficient balance or credential allowance.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error403:
      description: The credential lacks permission.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error409:
      description: The idempotency key was reused with a different input.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error413:
      description: The request body is too large.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error415:
      description: The request body must use application/json.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error429:
      description: The active task limit was reached.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
    Error503:
      description: The operation is temporarily unavailable.
      content:
        application/json:
          schema:
            $ref: '#/components/schemas/Error'
  securitySchemes:
    Bearer:
      type: http
      scheme: bearer
      description: A Mouter API key or OAuth access token.

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.