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

# Calculate text readability score

> Analyzes text and provides comprehensive readability metrics including Flesch Reading Ease score, Flesch-Kincaid Grade Level, and qualitative assessment. Useful for content optimization and ensuring text is appropriate for target audiences.



## OpenAPI

````yaml https://apix.spotzee.com/api/ext/openapi.json post /generic/text/readability-score
openapi: 3.1.0
info:
  title: Spotzee API
  version: '2026-04-28'
  description: >-
    Comprehensive API for email services, DNS management, AI tools, and
    marketing features.
servers:
  - url: https://apix.spotzee.com/api/ext
    description: >-
      Extended API surface — sender-side utilities (DNS, AI, deliverability,
      generators).
security:
  - BearerAuth: []
tags:
  - name: AI
    description: >-
      Sender-side AI utilities — generate copy, score subject lines, and draft
      message variants tailored to a contact or campaign brief.
  - name: Data
    description: >-
      Realistic-looking sample data for development and load testing — contacts,
      events, and segments shaped like production records without exposing real
      customer data.
  - name: DNS
    description: >-
      Inspect a domain’s sender posture — SPF, DKIM, DMARC, MX, and reverse-DNS
      records — and surface the gaps that put deliverability at risk.
  - name: Email
    description: >-
      Send-side validation and inspection — verify addresses, fingerprint MTAs,
      decode bounces, and check inbox-placement signals before a campaign goes
      out.
  - name: SMS
    description: Mobile-number validation and carrier lookup for SMS campaigns.
  - name: Text
    description: >-
      Text-quality utilities — spam-score grading, readability metrics, and
      subject-line scoring against deliverability heuristics.
paths:
  /generic/text/readability-score:
    post:
      tags:
        - Text
      summary: Calculate text readability score
      description: >-
        Analyzes text and provides comprehensive readability metrics including
        Flesch Reading Ease score, Flesch-Kincaid Grade Level, and qualitative
        assessment. Useful for content optimization and ensuring text is
        appropriate for target audiences.
      operationId: calculateReadabilityScore
      requestBody:
        content:
          application/x-www-form-urlencoded:
            schema:
              type: object
              properties:
                text:
                  type: string
                  description: Text content to analyze
                  example: >-
                    This is a sample text to analyze for readability and
                    sentiment scores.
              required:
                - text
      responses:
        '200':
          description: Successfully calculated readability score
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    example: success
                  data:
                    type: object
                    properties:
                      fleschReadingEase:
                        type: number
                        description: >-
                          Flesch Reading Ease score (0-100). Higher scores
                          indicate easier readability. 90-100: Very Easy, 80-89:
                          Easy, 70-79: Fairly Easy, 60-69: Standard, 50-59:
                          Fairly Difficult, 30-49: Difficult, 0-29: Very
                          Confusing
                        example: 65.3
                      fleschKincaidGrade:
                        type: number
                        description: >-
                          Flesch-Kincaid Grade Level. US school grade level
                          needed to understand the text.
                        example: 8.2
                      smogIndex:
                        type: number
                        description: >-
                          SMOG (Simple Measure of Gobbledygook) Index. Years of
                          education needed to understand the text.
                        example: 9.1
                      colemanLiauIndex:
                        type: number
                        description: >-
                          Coleman-Liau Index. US grade level required to
                          understand the text.
                        example: 10.3
                      automatedReadabilityIndex:
                        type: number
                        description: >-
                          Automated Readability Index (ARI). US grade level
                          required to understand the text.
                        example: 8.7
                      linsearWriteFormula:
                        type: number
                        description: >-
                          Linsear Write Formula. US grade level required to
                          understand the text.
                        example: 9.5
                      rix:
                        type: number
                        description: >-
                          RIX (Readability Index). Common in Scandinavian
                          countries. Higher values indicate more difficult text.
                        example: 4.2
                      medianGrade:
                        type: number
                        description: >-
                          Median of all calculated grade level scores. Best
                          overall indicator of text difficulty.
                        example: 9
                      readingTime:
                        type: number
                        description: >-
                          Estimated reading time in seconds based on average
                          reading speed.
                        example: 45
                    required:
                      - fleschReadingEase
                      - fleschKincaidGrade
                      - smogIndex
                      - colemanLiauIndex
                      - automatedReadabilityIndex
                      - linsearWriteFormula
                      - rix
                      - medianGrade
                      - readingTime
                    example:
                      fleschReadingEase: 65.3
                      fleschKincaidGrade: 8.2
                      smogIndex: 9.1
                      colemanLiauIndex: 10.3
                      automatedReadabilityIndex: 8.7
                      linsearWriteFormula: 9.5
                      rix: 4.2
                      medianGrade: 9
                      readingTime: 45
                required:
                  - status
                  - data
        '400':
          description: Bad request - Invalid parameters
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '401':
          description: Unauthorized - Invalid API key
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '402':
          description: Payment Required - Quota exceeded
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '500':
          description: Internal server error
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '503':
          description: Service temporarily unavailable
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
        '504':
          description: Gateway timeout - Request took too long
          content:
            application/json:
              schema:
                type: object
                properties:
                  status:
                    type: string
                    enum:
                      - error
                    description: Indicates an error occurred
                  error:
                    type: string
                    description: >-
                      Human-readable error message. Mirrors the Main API
                      envelope’s legacy `error` field; the canonical replacement
                      is `message` + machine-readable `code` (see
                      @spotzee/api-schemas/shared `ErrorResponse`).
                    example: Invalid request parameters
                required:
                  - status
                  - error
      security:
        - BearerAuth: []
components:
  securitySchemes:
    BearerAuth:
      type: http
      scheme: bearer
      bearerFormat: API Key
      description: 'Bearer token authentication. Use format: Bearer YOUR_API_KEY'

````

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