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

# Xiaohongshu PGY Popular Content

> Get Xiaohongshu PGY popular content rankings by business type with category and date filters and pagination.

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/xiaohongshu_pgy_popular_content
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/xiaohongshu_pgy_popular_content:
    post:
      tags:
        - xiaohongshu
      summary: Xiaohongshu PGY Popular Content
      description: >-
        Get Xiaohongshu PGY popular content rankings by business type with
        category and date filters and pagination.


        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_xiaohongshu_pgy_popular_content
      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:
              biz_type: 1
              page: 1
              limit: 34
              date_range: 7
            schema:
              $ref: '#/components/schemas/xiaohongshu_pgy_popular_content_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/xiaohongshu_pgy_popular_content_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:
    xiaohongshu_pgy_popular_content_input:
      additionalProperties: false
      properties:
        biz_type:
          description: >-
            Ranking: 1 popular content, 2 product discovery, 3 commerce
            promotion, 4 Pgy collaborations, 5 lead generation, 6 trending
            commerce, 7 direct product discovery, 8 app promotion.
          enum:
            - 1
            - 2
            - 3
            - 4
            - 5
            - 6
            - 7
            - 8
          examples:
            - 1
          title: Biz Type
          type: integer
        page:
          default: 1
          description: Page number; each ranking contains only 100 items.
          examples:
            - 1
          maximum: 100
          minimum: 1
          title: Page Num
          type: integer
        limit:
          default: 34
          description: Page size from 1 to 34; the source web page uses 34.
          examples:
            - 34
          maximum: 34
          minimum: 1
          title: Page Size
          type: integer
        query:
          default: ''
          description: >-
            Keyword; leave empty for the whole ranking. Comma-separated batch
            search is supported.
          examples:
            - 面膜
          maxLength: 100
          title: Search Word
          type: string
        sort_by:
          default: ''
          description: Sort field; leave empty to use the ranking's default order.
          examples:
            - premium_imp_num
          maxLength: 64
          title: Order By
          type: string
        date_range:
          default: 7
          description: 'Date window: last 3, 7, 14 or 30 days.'
          enum:
            - 3
            - 7
            - 14
            - 30
          examples:
            - 7
          title: Date Range
          type: integer
        sub_biz_type:
          anyOf:
            - enum:
                - 1
                - 2
                - 3
              type: integer
            - type: 'null'
          default: null
          description: >-
            Board 8 only: 1 app download, 2 mini-app promotion, 3 app launch
            (default).
          examples:
            - 3
          title: Sub Biz Type
        category:
          anyOf:
            - maxLength: 64
              type: string
            - type: 'null'
          default: null
          description: 'Board 1 only: category in the exact source ''parent#child'' format.'
          examples:
            - 内容类目#美妆
          title: Category
        industry:
          anyOf:
            - maxLength: 64
              type: string
            - type: 'null'
          default: null
          description: >-
            Industry name for boards 2/3/4/5/6/7/8. Allowed values differ by
            board; use exact source labels.
          examples:
            - 母婴
          title: Industry
        note_type:
          anyOf:
            - enum:
                - 1
                - 2
              type: integer
            - type: 'null'
          default: null
          description: 'Content type: 1 image/text, 2 video.'
          examples:
            - 2
          title: Note Type
        content_type:
          anyOf:
            - enum:
                - 1
                - 2
                - 3
                - 5
                - 6
                - 11
                - -1
              type: integer
            - type: 'null'
          default: null
          description: >-
            Content source: 1 creator collaboration, 2 celebrity collaboration,
            3 employee, 5 buyer, 6 professional account, 11 principal, -1 user.
          examples:
            - 1
          title: Content Type
        theme:
          anyOf:
            - maxLength: 64
              type: string
            - type: 'null'
          default: null
          description: Theme name for boards 2/4/5/7/8; use the exact source label.
          examples:
            - 开箱
          title: Theme
        author_type:
          anyOf:
            - enum:
                - 1
                - 2
              type: integer
            - type: 'null'
          default: null
          description: 'Board 4 only: 1 Pgy creators, 2 celebrities.'
          examples:
            - 1
          title: Author Type
        placement:
          anyOf:
            - enum:
                - 1
                - 2
                - 3
              type: integer
            - type: 'null'
          default: null
          description: >-
            Traffic placement for boards 2/3/5/7/8: 1 discovery, 2 search, 3
            in-video feed.
          examples:
            - 1
          title: Placement
        marketing_target:
          anyOf:
            - enum:
                - 3
                - 8
              type: integer
            - type: 'null'
          default: null
          description: 'Board 3 only: 3 product promotion, 8 livestream promotion.'
          examples:
            - 3
          title: Marketing Target
        price:
          anyOf:
            - additionalProperties: false
              description: >-
                Creator collaboration prices. Image/text and video use separate
                price definitions; select one first.
              properties:
                kind:
                  description: 'Price type: 1 image/text post, 2 video post.'
                  enum:
                    - 1
                    - 2
                  title: Kind
                  type: integer
                range:
                  allOf:
                    - additionalProperties: false
                      allOf:
                        - anyOf:
                            - properties:
                                min:
                                  type: number
                              required:
                                - min
                            - properties:
                                max:
                                  type: number
                              required:
                                - max
                      description: >-
                        Numeric range. At least one endpoint is required; either
                        endpoint may be omitted.
                      properties:
                        min:
                          anyOf:
                            - maximum: 9999999
                              minimum: 0
                              type: integer
                            - type: 'null'
                          description: Inclusive minimum.
                          title: Min
                        max:
                          anyOf:
                            - maximum: 9999999
                              minimum: 0
                              type: integer
                            - type: 'null'
                          description: Inclusive maximum; omit for no upper bound.
                          title: Max
                      title: RangeFilter
                      type: object
                    - description: Collaboration price range, in CNY.
              required:
                - kind
                - range
              title: PriceFilter
              type: object
            - type: 'null'
          default: null
          description: Creator collaboration price; board 4 only.
          title: Price
        fans:
          anyOf:
            - additionalProperties: false
              allOf:
                - anyOf:
                    - properties:
                        min:
                          type: number
                      required:
                        - min
                    - properties:
                        max:
                          type: number
                      required:
                        - max
              description: >-
                Numeric range. At least one endpoint is required; either
                endpoint may be omitted.
              properties:
                min:
                  anyOf:
                    - maximum: 9999999
                      minimum: 0
                      type: integer
                    - type: 'null'
                  description: Inclusive minimum.
                  title: Min
                max:
                  anyOf:
                    - maximum: 9999999
                      minimum: 0
                      type: integer
                    - type: 'null'
                  description: Inclusive maximum; omit for no upper bound.
                  title: Max
              title: RangeFilter
              type: object
            - type: 'null'
          default: null
          description: Creator follower count range; board 4 only.
          title: Fans
      required:
        - biz_type
      title: PgyPopularPostsInput
      type: object
    xiaohongshu_pgy_popular_content_result:
      additionalProperties: false
      properties:
        platform:
          const: xiaohongshu
          default: xiaohongshu
          title: Platform
          type: string
        items:
          items:
            $ref: >-
              #/components/schemas/xiaohongshu_pgy_popular_content_result__PgyPost
          maxItems: 1000
          title: Items
          type: array
        pagination:
          $ref: >-
            #/components/schemas/xiaohongshu_pgy_popular_content_result__NumberedPage
        retrieved_at:
          maximum: 9007199254740991
          minimum: 0
          title: Retrieved At
          type: integer
      required:
        - items
        - pagination
        - retrieved_at
      title: PgyPopularPostsResult
      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
    xiaohongshu_pgy_popular_content_result__PgyPost:
      additionalProperties: false
      properties:
        published_date:
          anyOf:
            - pattern: ^\d{4}-\d{2}-\d{2}$
              type: string
            - type: 'null'
          default: null
          description: >-
            Preserves a date when that is all the source provides; does not
            fabricate a midnight publication time.
          title: Published Date
        category_path:
          anyOf:
            - items:
                maxLength: 4096
                type: string
              maxItems: 10
              type: array
            - type: 'null'
          default: null
          title: Category Path
        text:
          anyOf:
            - maxLength: 200000
              type: string
            - type: 'null'
          default: null
          title: Text
        id:
          maxLength: 64
          minLength: 1
          pattern: ^[A-Za-z0-9_-]+$
          title: Id
          type: string
        title:
          maxLength: 4096
          title: Title
          type: string
        type_code:
          anyOf:
            - type: integer
            - type: 'null'
          default: null
          title: Type Code
        url:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Url
        cover_url:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Cover Url
        image_urls:
          anyOf:
            - items:
                type: string
              maxItems: 500
              type: array
            - type: 'null'
          default: null
          title: Image Urls
        published_at:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Published At
        author:
          anyOf:
            - $ref: >-
                #/components/schemas/xiaohongshu_pgy_popular_content_result__PgyPostAuthor
            - type: 'null'
          default: null
        statistics:
          $ref: >-
            #/components/schemas/xiaohongshu_pgy_popular_content_result__PgyPostStatistics
      required:
        - id
        - title
        - statistics
      title: PgyPost
      type: object
    xiaohongshu_pgy_popular_content_result__NumberedPage:
      additionalProperties: false
      properties:
        page:
          maximum: 9007199254740991
          minimum: 0
          title: Page
          type: integer
        limit:
          maximum: 9007199254740991
          minimum: 0
          title: Limit
          type: integer
        total:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Total
      required:
        - page
        - limit
      title: NumberedPage
      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
    xiaohongshu_pgy_popular_content_result__PgyPostAuthor:
      additionalProperties: false
      properties:
        categories:
          anyOf:
            - items:
                $ref: >-
                  #/components/schemas/xiaohongshu_pgy_popular_content_result__CreatorCategory
              maxItems: 100
              type: array
            - type: 'null'
          default: null
          title: Categories
        id:
          anyOf:
            - maxLength: 64
              minLength: 1
              pattern: ^[A-Za-z0-9_-]+$
              type: string
            - type: 'null'
          default: null
          title: Id
        name:
          anyOf:
            - maxLength: 4096
              type: string
            - type: 'null'
          default: null
          title: Name
        avatar_url:
          anyOf:
            - maxLength: 2048
              type: string
            - type: 'null'
          default: null
          title: Avatar Url
        follower_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Follower Count
      title: PgyPostAuthor
      type: object
    xiaohongshu_pgy_popular_content_result__PgyPostStatistics:
      additionalProperties: false
      properties:
        engagement_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Engagement Count
        impression_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Impression Count
        read_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Read Count
        like_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Like Count
        collect_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Collect Count
        comment_count:
          anyOf:
            - maximum: 9007199254740991
              minimum: 0
              type: integer
            - type: 'null'
          default: null
          title: Comment Count
      title: PgyPostStatistics
      type: object
    xiaohongshu_pgy_popular_content_result__CreatorCategory:
      additionalProperties: false
      properties:
        name:
          maxLength: 4096
          title: Name
          type: string
        subcategories:
          items:
            maxLength: 4096
            type: string
          maxItems: 100
          title: Subcategories
          type: array
      required:
        - name
      title: CreatorCategory
      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.