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

# Read Posts

> Recent posts by any public account, newest first. Each post carries its engagement metrics.



## OpenAPI

````yaml GET /reads/{platform}/posts
openapi: 3.1.0
info:
  title: Groniz Public API
  description: >-
    API for managing social media posts, integrations, and media uploads in
    Groniz.


    ## Authentication


    All endpoints require an API key passed in the `Authorization` header:


    ```

    Authorization: your-api-key

    ```


    Get your API key from Groniz Settings.


    ## Rate Limits


    There is a limit of **30 requests per hour**.


    ## Terminology


    The UI uses `channel`, but the API uses `integration`. They refer to the
    same thing.


    ## Supported Platforms (27)


    **Social Platforms:** X (Twitter), LinkedIn, LinkedIn Page, Facebook,
    Instagram, Instagram Standalone, Threads, Bluesky, Mastodon, Warpcast
    (Farcaster), Nostr, VK


    **Video Platforms:** YouTube, TikTok


    **Community Platforms:** Reddit, Lemmy, Discord, Slack, Telegram


    **Design Platforms:** Pinterest, Dribbble


    **Blogging Platforms:** Medium, Dev.to, Hashnode, WordPress


    **Business:** Google My Business (GMB), Listmonk (newsletters)
  license:
    name: MIT
  version: 1.0.0
servers:
  - url: https://api.groniz.com/public/v1
    description: Groniz Cloud
  - url: https://{your-domain}/api/public/v1
    description: Self-hosted
    variables:
      your-domain:
        default: localhost:5000
        description: Your Groniz instance domain
security:
  - ApiKeyAuth: []
tags:
  - name: Integrations
    description: Manage connected social media channels
  - name: Posts
    description: Create, list, and delete posts
  - name: Uploads
    description: Upload media files
  - name: Notifications
    description: View organization notifications
  - name: Analytics
    description: View analytics for integrations and posts
  - name: Video Generation
    description: Generate videos with AI
  - name: Reads
    description: >-
      Read public data from a platform. Unlike Analytics, these require NO
      connected channel: the server reads with its own data-provider key, so
      they work for ANY public account. Metered per upstream call. Only `x` is
      supported today.
paths:
  /reads/{platform}/posts:
    get:
      tags:
        - Reads
      summary: Read an account's recent posts
      description: >-
        Recent posts by any public account, newest first. Each post carries its
        engagement metrics.
      operationId: readPosts
      parameters:
        - name: platform
          in: path
          required: true
          description: Platform to read from. Only `x` is supported today.
          schema:
            type: string
            enum:
              - x
          example: x
        - name: username
          in: query
          required: false
          description: >-
            Account handle, without the @. Either `username` or `user_id` is
            required.
          schema:
            type: string
          example: elonmusk
        - name: user_id
          in: query
          required: false
          description: >-
            Platform user id. Cheaper than `username` (skips the handle lookup).
            Either `username` or `user_id` is required.
          schema:
            type: string
          example: '44196397'
        - name: limit
          in: query
          required: false
          description: Maximum items to return. Default 10, capped at 100.
          schema:
            type: integer
            default: 10
            maximum: 100
        - name: since
          in: query
          required: false
          description: >-
            Lookback window: a duration (`30d`, `12h`, `45m`, `30s`), a date
            (`2026-07-01`), or an ISO timestamp. Anything else returns 400 — the
            window is never silently ignored. No window unless set.
          schema:
            type: string
          example: 7d
      responses:
        '200':
          description: The account id and its posts
          content:
            application/json:
              schema:
                type: object
                properties:
                  user_id:
                    type: string
                  posts:
                    type: array
                    items:
                      $ref: '#/components/schemas/NormalizedPost'
              example:
                user_id: '44196397'
                posts:
                  - id: '1234567890123456789'
                    text: Hello world
                    created_at: '2026-07-16T12:00:00.000Z'
                    metrics:
                      impressions: 15000
                      likes: 320
                      replies: 45
                      reposts: 88
                      bookmarks: 21
                      quotes: 7
        '400':
          description: >-
            Unsupported platform, missing target (`username`/`user_id`), or an
            unparseable `since`
        '404':
          description: Account or post not found
        '429':
          description: The read data provider rate-limited this server; retry later
        '503':
          description: Reads are not configured on this server (no read provider key)
components:
  schemas:
    NormalizedPost:
      type: object
      properties:
        id:
          type: string
          example: '1234567890123456789'
        text:
          type: string
        created_at:
          type: string
        author_id:
          type: string
        conversation_id:
          type: string
        in_reply_to_user_id:
          type: string
        lang:
          type: string
          example: en
        referenced_tweets:
          type: array
          items:
            type: object
            properties:
              type:
                type: string
              id:
                type: string
        metrics:
          $ref: '#/components/schemas/PostMetrics'
    PostMetrics:
      type: object
      properties:
        impressions:
          type: integer
          example: 15000
        likes:
          type: integer
          example: 320
        replies:
          type: integer
          example: 45
        reposts:
          type: integer
          example: 88
        bookmarks:
          type: integer
          example: 21
        quotes:
          type: integer
          example: 7
  securitySchemes:
    ApiKeyAuth:
      type: apiKey
      in: header
      name: Authorization
      description: Your Groniz API key

````