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

# Article detail

> Returns a single article with its embedded highlights.



## OpenAPI

````yaml get /v1/reading/articles/{id}
openapi: 3.1.0
info:
  title: Rewind API
  version: 1.0.0
  description: >-
    Personal data aggregation API. Syncs and serves data from Last.fm, Apple
    Music, Strava, Plex, Letterboxd, Discogs, Trakt, Instapaper, Google
    Calendar, and Gmail.


    ## Domains


    | Domain | Source | Description |

    |--------|--------|-------------|

    | **Listening** | Last.fm, Apple Music | Scrobbles, top
    artists/albums/tracks, streaks, stats |

    | **Running** | Strava | Activities, splits, gear, personal records, year
    summaries |

    | **Watching** | Plex, Letterboxd | Movies, TV shows, watch history,
    ratings, reviews |

    | **Collecting** | Discogs, Trakt | Vinyl/CD collection, physical media,
    wantlist |

    | **Reading** | Instapaper | Articles, highlights, reading progress, word
    count |

    | **Attending** | Google Calendar, Gmail | Live events, tickets, sports
    games, concerts, venues |


    ## Authentication


    All endpoints require a Bearer token. There are two key types:


    - **Read keys** (`rw_live_...`) — access all GET endpoints

    - **Admin keys** (`rw_admin_...`) — access all endpoints including sync
    triggers and data management


    Pass your key in the Authorization header: `Authorization: Bearer
    rw_live_...`


    ## Pagination


    List endpoints return paginated responses:


    ```json

    {
      "data": [...],
      "pagination": { "page": 1, "limit": 20, "total": 150, "total_pages": 8 }
    }

    ```


    The activity feed uses cursor-based pagination instead.


    ## Quick Start


    ```bash

    # Check the API is up

    curl https://api.rewind.rest/v1/health


    # Fetch recent scrobbles (requires read key)

    curl -H "Authorization: Bearer rw_live_..." \
      https://api.rewind.rest/v1/listening/recent

    # Fetch running stats

    curl -H "Authorization: Bearer rw_live_..." \
      https://api.rewind.rest/v1/running/stats
    ```


    ## Errors


    All errors follow the same envelope:


    ```json

    { "error": "Not found", "status": 404 }

    ```


    Common status codes: 400 (bad request), 401 (unauthorized), 404 (not found),
    500 (server error).
  contact:
    url: https://github.com/pdugan20/rewind
servers:
  - url: https://api.rewind.rest
    description: Production
security:
  - bearerAuth: []
tags:
  - name: Listening
    description: Last.fm scrobbles, top charts, streaks, and stats.
  - name: Running
    description: Strava activities, splits, gear, records, and year summaries.
  - name: Watching
    description: >-
      Movies, TV shows, watch history, ratings, and reviews from Plex and
      Letterboxd.
  - name: Collecting
    description: Vinyl/CD collection from Discogs and physical media from Trakt.
  - name: Reading
    description: Articles, highlights, and reading stats from Instapaper.
  - name: Attending
    description: >-
      Live events you bought tickets for — sports games, concerts, theater.
      Sourced from Google Calendar and ticket-vendor email.
  - name: Feed
    description: Cross-domain activity feed with cursor-based pagination.
  - name: Search
    description: Full-text search across all domains.
  - name: Images
    description: Image proxy with on-the-fly transforms via Cloudflare Images.
  - name: System
    description: Health checks and sync status.
  - name: Admin
    description: >-
      API key management, sync triggers, and data administration. Requires admin
      key.
  - name: Webhooks
    description: Inbound webhook receivers for Strava and Plex. No auth required.
paths:
  /v1/reading/articles/{id}:
    get:
      tags:
        - Reading
      summary: Article detail
      description: Returns a single article with its embedded highlights.
      operationId: getReadingArticle
      parameters:
        - schema:
            type: string
            example: '42'
          required: true
          name: id
          in: path
      responses:
        '200':
          description: Article detail
          content:
            application/json:
              schema:
                type: object
                properties:
                  id:
                    type: number
                  title:
                    type: string
                  author:
                    type:
                      - string
                      - 'null'
                  url:
                    type:
                      - string
                      - 'null'
                  instapaper_url:
                    type:
                      - string
                      - 'null'
                  instapaper_app_url:
                    type:
                      - string
                      - 'null'
                  domain:
                    type:
                      - string
                      - 'null'
                  site_name:
                    type:
                      - string
                      - 'null'
                  description:
                    type:
                      - string
                      - 'null'
                  word_count:
                    type:
                      - number
                      - 'null'
                  estimated_read_min:
                    type:
                      - number
                      - 'null'
                  status:
                    type: string
                  progress:
                    type: number
                  starred:
                    type: boolean
                  rating:
                    type:
                      - number
                      - 'null'
                  tags:
                    type: array
                    items:
                      type: string
                  source:
                    type: string
                  image: {}
                  saved_at:
                    type: string
                  started_at:
                    type:
                      - string
                      - 'null'
                  finished_at:
                    type:
                      - string
                      - 'null'
                  excerpt:
                    type:
                      - string
                      - 'null'
                  content:
                    type:
                      - string
                      - 'null'
                  body_unavailable:
                    type: boolean
                  highlights:
                    type: array
                    items:
                      type: object
                      properties:
                        id:
                          type: number
                        text:
                          type: string
                        note:
                          type:
                            - string
                            - 'null'
                        position:
                          type:
                            - number
                            - 'null'
                        chapter:
                          type:
                            - string
                            - 'null'
                        page:
                          type:
                            - number
                            - 'null'
                        created_at:
                          type: string
                      required:
                        - id
                        - text
                        - note
                        - position
                        - chapter
                        - page
                        - created_at
                required:
                  - id
                  - title
                  - author
                  - url
                  - instapaper_url
                  - instapaper_app_url
                  - domain
                  - site_name
                  - description
                  - word_count
                  - estimated_read_min
                  - status
                  - progress
                  - starred
                  - rating
                  - tags
                  - source
                  - saved_at
                  - started_at
                  - finished_at
                  - excerpt
                  - content
                  - highlights
              example:
                id: 42
                title: The Age of AI
                author: Derek Thompson
                url: >-
                  https://www.theatlantic.com/technology/archive/2025/the-age-of-ai
                instapaper_url: https://www.instapaper.com/read/1234567
                instapaper_app_url: instapaper://read/1234567
                domain: theatlantic.com
                site_name: The Atlantic
                description: How artificial intelligence is reshaping every industry.
                word_count: 3200
                estimated_read_min: 13
                status: finished
                progress: 1
                starred: true
                rating: null
                tags:
                  - technology
                  - ai
                source: instapaper
                image: null
                saved_at: '2026-03-18T14:30:00.000Z'
                started_at: '2026-03-19T08:00:00.000Z'
                finished_at: '2026-03-19T08:15:00.000Z'
                excerpt: null
                content: null
                highlights:
                  - id: 1
                    text: >-
                      The question is not whether AI will transform society, but
                      how quickly institutions can adapt.
                    note: Key thesis
                    position: 1
                    chapter: null
                    page: null
                    created_at: '2026-03-19T08:10:00.000Z'
        '401':
          description: Unauthorized
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
        '404':
          description: Not found
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
components:
  schemas:
    ErrorResponse:
      type: object
      properties:
        error:
          type: string
          example: Not found
        status:
          type: integer
          example: 404
      required:
        - error
        - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
      description: >-
        API key. Read keys (rw_live_...) access GET endpoints. Admin keys
        (rw_admin_...) access all endpoints.

````