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

# Get an article

> Returns a single article including its full `contentHtml`. Articles are identified by UUID.



## OpenAPI

````yaml https://api.rankspot.ai/docs-json get /v1/articles/{id}
openapi: 3.0.0
info:
  title: RankSpot Public API
  description: >-
    The RankSpot Public API gives you programmatic access to your workspace data
    — keywords, backlinks, competitors, planned actions, articles, and more.


    ## Authentication


    All endpoints require a Bearer API key in the `Authorization` header:


    ```

    Authorization: Bearer <your-api-key>

    ```


    Generate API keys from **Settings → API Keys** in the RankSpot dashboard.
    Each key is scoped to a single workspace.


    ## Pagination


    List endpoints return a consistent envelope:


    ```json

    {
      "data": {
        "total": 120,
        "offset": 0,
        "limit": 20,
        "count": 20,
        "items": [...]
      }
    }

    ```


    Use `offset` and `limit` query parameters to paginate. Default limit is
    **20**, maximum is **100**.


    ## Status codes


    | Code | Meaning |

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

    | 200  | Success |

    | 201  | Created |

    | 204  | No content (delete / unarchive) |

    | 400  | Validation error or business rule violation |

    | 401  | Missing or invalid API key |

    | 404  | Resource not found or belongs to another workspace |
  version: '1.0'
  contact: {}
servers:
  - url: https://api.rankspot.ai
    description: Production
security: []
tags:
  - name: AI Visibility
    description: >-
      How AI answer engines see your brand. Track prompts, read the answers
      ChatGPT, Perplexity and Google gave, and work through the pages they
      cited. Prompts are run on a daily schedule by RankSpot, so answers appear
      after the next run rather than on demand.
  - name: Articles
    description: >-
      AI-generated blog articles. Articles are created automatically when a
      `write_article` action is sent to generation — they cannot be created
      directly via the API.
  - name: Backlinks
    description: >-
      Backlinks discovered for your domain and your competitors' domains.
      Backlinks are auto-synced on a background interval and cannot be created
      via the API.
  - name: Categories
    description: Categories for organising actions and articles within your workspace.
  - name: Competitors
    description: >-
      Competitor domains tracked in your workspace. Once added, keywords and
      backlinks for each competitor are fetched asynchronously on a background
      sync interval.
  - name: Forum Opportunities
    description: >-
      Forum threads and community posts surfaced as potential link-building or
      engagement opportunities.
  - name: Keywords
    description: >-
      SEO keywords tracked in your workspace, enriched with search volume,
      competition, and AI-generated relevance scores.
  - name: People Also Ask
    description: >-
      "People also ask" questions discovered from search results for your
      tracked keywords.
  - name: Actions
    description: >-
      The SEO work planned for your workspace. Each action carries a `type`
      saying what kind of work it is and which target it points at — see `POST
      /v1/actions` for the full list. Only `write_article` can be turned into an
      article; the rest are a person's job. Create actions yourself or let
      RankSpot generate them.
  - name: Research
    description: >-
      Live lookups against the open web: a Google search and a page fetch. The
      only endpoints here that spend credits per call. Neither response reports
      what it cost — the charge is real, and your remaining balance is visible
      in the RankSpot dashboard. Returns 402 when the workspace is out of
      credits.
  - name: Search Console
    description: >-
      Google Search Console performance data — clicks, impressions, CTR, and
      average position for your connected property. Requires GSC to be connected
      from the RankSpot dashboard.
  - name: Workspace
    description: >-
      Who the workspace is: brand, domain, what the business does and who it
      sells to. Read this first — the rest of the API returns opportunities that
      only mean something in the context of a particular business.
paths:
  /v1/articles/{id}:
    get:
      tags:
        - Articles
      summary: Get an article
      description: >-
        Returns a single article including its full `contentHtml`. Articles are
        identified by UUID.
      operationId: ArticlesController_findOne
      parameters:
        - name: id
          required: true
          in: path
          schema:
            type: string
      responses:
        '200':
          description: ''
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ArticleDto'
        '404':
          description: Article not found or belongs to another workspace.
      security:
        - bearer: []
components:
  schemas:
    ArticleDto:
      type: object
      properties:
        id:
          type: string
          example: clx...
        title:
          type: string
          example: How to Start a Blog
        description:
          type: string
          example: A comprehensive guide.
          nullable: true
        contentHtml:
          type: string
          example: <h1>How to Start a Blog</h1>...
          nullable: true
          description: Only returned by GE../articles/:slug
        status:
          type: string
          example: generated
          enum:
            - draft
            - generating
            - generated
            - published
          description: >-
            Derived from the list rather than repeated here, so a new status
            cannot be returned while the docs still deny it exists. `generated`
            means the article has never left RankSpot; `published` means it
            reached your site.
        slug:
          type: string
          example: how-to-start-a-blog
        coverImageUrl:
          type: string
          example: https://cdn.example.com/cover.jpg
          nullable: true
        categoryId:
          type: string
          example: clx...
          nullable: true
        createdAt:
          format: date-time
          type: string
        updatedAt:
          format: date-time
          type: string
          description: >-
            Last write of any kind, including a status change or a metadata
            edit. This is not a reliable answer to "when was the content last
            refreshed" — use `lastPublishedAt` for that.
        firstPublishedAt:
          type: string
          nullable: true
          description: >-
            When the article first went live. Null means it has never been
            published. This is the article's publication date: unlike
            `lastPublishedAt` it does not move on a re-publish, so it is what a
            page should show as "published on" and what answers "how many
            articles went out in this window".
        lastPublishedAt:
          type: string
          nullable: true
          description: >-
            When the article was last pushed to your site. Null means it has
            never been published. This is the field to check when deciding
            whether a page losing traffic is stale, and the one to show as "last
            updated": it moves only when the content actually reached readers,
            unlike `updatedAt`.
        isIndexed:
          type: boolean
          description: >-
            Whether Google Search Console reports the page as indexed. Refreshed
            by a weekly job, so it reflects the last check rather than this
            instant: read `indexCheckedAt` to know how fresh it is.
        indexCoverageState:
          type: string
          nullable: true
          example: Crawled - currently not indexed
          description: >-
            Search Console's own reason, verbatim, when the page is not indexed.
            This is the field that decides what to do about it: "Crawled -
            currently not indexed" means Google looked and declined, so the page
            needs work; "Discovered - currently not indexed" means it has not
            been crawled yet; a canonical or noindex reason means neither
            requesting nor rewriting will help.
        indexCheckedAt:
          type: string
          nullable: true
          description: >-
            When the index status above was last checked. Null means never
            checked, which is not the same as not indexed.
        indexRequestedAt:
          type: string
          nullable: true
          description: >-
            When indexing was last requested for this page. Null means it has
            never been submitted. Requests are throttled to one per page per
            week.
      required:
        - id
        - title
        - status
        - slug
        - createdAt
        - updatedAt
        - isIndexed
  securitySchemes:
    bearer:
      scheme: bearer
      bearerFormat: JWT
      type: http

````

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