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

# RSS Feed

> Generate a compliant RSS 2.0 XML feed for blog content with filtering options for targeted content syndication.

Generate a fully compliant RSS 2.0 XML feed for your blog content, perfect for syndication, feed readers, and content distribution. This endpoint automatically formats your blog posts into the standard RSS format with optional filtering capabilities.

**RSS 2.0 Compliance**: Produces a standards-compliant RSS 2.0 XML feed that works with all major feed readers, news aggregators, and syndication services. The feed includes post titles, descriptions, publication dates, and permalinks.

**Filtering Options**: Apply category or tag filters to create specialized feeds for specific content topics. This allows you to offer targeted RSS feeds for different audience segments or content verticals.


## OpenAPI

````yaml /api/openapi/read_api.yaml get /feeds/rss/
openapi: 3.1.0
info:
  title: ButterCMS Read API
  version: 2.0.0
  description: >
    Read endpoints for the ButterCMS API — Pages, Collections, Blog Posts, Blog
    Metadata, and Feeds.
  contact:
    email: support@buttercms.com
  license:
    name: ButterCMS Terms of Service
    url: https://buttercms.com/terms/
servers:
  - url: https://api.buttercms.com/v2
    description: ButterCMS API v2
security:
  - readTokenAuthHeader: []
  - readTokenAuthQuery: []
tags:
  - name: Pages
    description: >
      Retrieve pages from your ButterCMS account.


      **Single Pages**: Use `*` as the page_type to get Single Pages (those
      without a Page Type) which represent unique pages on your site like your
      Homepage. Useful for creating your sitemap.xml.


      **Page Type Pages**: Use the actual page type slug to get pages of that
      specific type. Page Types allow you to create many pages with the same
      structure.


      **Note:** The fields of a page are defined by you, they are customizable.
      Sample responses below contain a basic set of fields for illustrative
      purposes.
  - name: Collections
    description: >
      Retrieve collection items from your ButterCMS account. Collections are
      flexible, user-defined content structures with completely customizable
      field schemas.


      See also: Architecture & Performance for guidance on `levels`, pagination,
      and performance best practices.
  - name: Blog posts
    description: >
      Retrieve blog posts from your ButterCMS account. List blog posts with
      pagination and filtering options, or retrieve individual posts by slug.
  - name: Blog metadata
    description: >
      Retrieve blog-related metadata including authors, categories, and tags.
      These endpoints provide access to the organizational structure of your
      blog content.
  - name: Feeds and utilities
    description: >
      Generate XML feeds for content syndication and SEO.


      - **RSS Feed**: Fully generated RSS 2.0 feed for your blog

      - **Atom Feed**: Standards-compliant Atom 1.0 feed

      - **Sitemap**: XML sitemap for search engine discovery


      All feeds can be filtered by category or tag and include only published
      content from your organization.
  - name: Images - Info
    description: >
      ButterCMS has an integration with
      [Filestack](https://www.filestack.com/docs/api/processing/) for image
      transformations. You can leverage their robust set of image transformation
      capabilities.


      After you upload an image, to create a thumbnail, here's an example:


      - **Original URL**: `https://cdn.buttercms.com/3ccPHhYHTNK2zQ14gCOy`

      - **Thumbnail URL**:
      `https://cdn.buttercms.com/resize=width:100,height:100/3ccPHhYHTNK2zQ14gCOy`


      For complete transformation options and parameters, see the [full
      Filestack documentation](https://www.filestack.com/docs/api/processing/).
paths:
  /feeds/rss/:
    get:
      tags:
        - Feeds and utilities
      summary: RSS Feed
      description: >
        Generate a fully compliant RSS 2.0 XML feed for your blog content,
        perfect for syndication, feed readers, and content distribution. This
        endpoint automatically formats your blog posts into the standard RSS
        format with optional filtering capabilities.


        **RSS 2.0 Compliance**: Produces a standards-compliant RSS 2.0 XML feed
        that works with all major feed readers, news aggregators, and
        syndication services. The feed includes post titles, descriptions,
        publication dates, and permalinks.


        **Filtering Options**: Apply category or tag filters to create
        specialized feeds for specific content topics. This allows you to offer
        targeted RSS feeds for different audience segments or content verticals.
      operationId: getRssFeed
      parameters:
        - $ref: '#/components/parameters/auth_token'
        - name: category_slug
          in: query
          required: false
          schema:
            type: string
          description: >
            Filter the RSS feed to include only posts from a specific category.


            Provide the URL-friendly slug of the category. When specified, only
            blog posts assigned to this category will be included in the RSS
            feed.
          example: announcements
        - name: tag_slug
          in: query
          required: false
          schema:
            type: string
          description: >
            Filter the RSS feed to include only posts with a specific tag.


            Provide the URL-friendly slug of the tag. When specified, only blog
            posts tagged with this tag will be included in the RSS feed.
          example: product-updates
        - name: locale
          in: query
          description: >
            Return only posts in the given locale (e.g. `en`, `es`) in the feed.
            When omitted, defaults to your organization's default locale.


            Returns `400` if the value is not a locale configured on your
            organization.
          required: false
          schema:
            type: string
            maxLength: 10
          example: en
      responses:
        '200':
          description: >
            RSS feed generated successfully. **Note**: despite being an RSS
            feed, the response is `application/json`, and the XML document is
            returned as a string under `data`. Requesting `Accept:
            application/xml` returns `406 Not Acceptable`; there is no XML
            renderer on this endpoint.
          content:
            application/json:
              schema:
                type: object
                properties:
                  data:
                    type: string
                    description: Complete RSS 2.0 XML feed with blog posts, as a string
              examples:
                rss_feed:
                  summary: Standard RSS feed with blog posts
                  value:
                    data: >
                      <?xml version="1.0" encoding="UTF-8"?>

                      <rss xmlns:atom="http://www.w3.org/2005/Atom"
                      xmlns:content="http://purl.org/rss/1.0/modules/content/"
                      xmlns:media="http://search.yahoo.com/mrss/" version="2.0">
                         <channel>
                            <title>Latest blog posts</title>
                            <link>https://example.buttercms.com/blog/rss/</link>
                            <description />
                            <atom:link href="https://example.buttercms.com/blog/rss/" rel="self" />
                            <language>en-us</language>
                            <lastBuildDate>Mon, 15 Jan 2024 10:00:00 +0000</lastBuildDate>
                            <item>
                               <title>API Development Best Practices for 2024</title>
                               <link>https://example.buttercms.com/blog/api-development-best-practices</link>
                               <media:content medium="image" url="https://cdn.buttercms.com/featured/api-guide.jpg"/>
                               <dc:creator xmlns:dc="http://purl.org/dc/elements/1.1/">John Developer</dc:creator>
                               <pubDate>Mon, 15 Jan 2024 10:00:00 +0000</pubDate>
                               <guid>https://example.buttercms.com/blog/api-development-best-practices</guid>
                               <description>Learn the essential best practices for building scalable and maintainable APIs in 2024.</description>
                               <content:encoded>
                              <![CDATA[<h2>Introduction</h2><p>Building robust APIs requires following established best practices.</p>]]>
                            </content:encoded>
                            </item>
                         </channel>
                      </rss>
        '400':
          description: |
            **Bad Request - Invalid Locale**

            The `locale` value is not a locale configured on your organization.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ValidationErrorResponse'
              example:
                locale: The passed locale isn't configured on this account.
        '401':
          description: |
            **Unauthorized - Invalid or Missing API Token**

            Returned as JSON, not XML.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              examples:
                missing_token:
                  summary: No token provided
                  value:
                    detail: Incorrect authentication credentials.
                invalid_token:
                  summary: Token does not match any account
                  value:
                    detail: Invalid token.
        '404':
          description: |
            **Not Found - Invalid Feed Type**

            Returned as JSON, not XML.
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/ErrorResponse'
              example:
                detail: Not found.
      security:
        - readTokenAuthHeader: []
        - readTokenAuthQuery: []
components:
  parameters:
    auth_token:
      name: auth_token
      in: query
      required: false
      schema:
        type: string
      description: |
        Your ButterCMS read API token
      example: your_api_token
  schemas:
    ValidationErrorResponse:
      description: >-
        Response for validation errors (400 Bad Request). The shape varies by
        endpoint and check: a field-keyed object whose values are arrays of
        messages or single message strings, a bare array of messages, or a
        general `error` message.
      anyOf:
        - type: object
          description: >-
            Field-specific validation errors (used by Pages, Blog Posts, and
            Collections). Values are usually arrays of messages; some checks
            return a single string.
          additionalProperties:
            oneOf:
              - type: array
                items:
                  type: string
              - type: string
          example:
            title:
              - This field is required.
            slug: You must specify a page slug.
        - type: array
          description: >-
            Bare array of messages (used by some Collection item validation
            errors)
          items:
            type: string
          example:
            - '''field1_key'' is required'
        - type: object
          description: General error message (used for organization limits, etc.)
          properties:
            error:
              type: string
              description: Error message
          example:
            error: >-
              Cannot create a new Collection Item. Collection Item Limit
              Reached.
    ErrorResponse:
      type: object
      properties:
        detail:
          type: string
          description: Error message describing what went wrong
          example: Authentication credentials were not provided.
  securitySchemes:
    readTokenAuthHeader:
      type: apiKey
      in: header
      name: Authorization
      description: >
        Set the `Authorization` header to `Token your_read_api_token`.


        Example: `Authorization: Token abc123def456`


        Note: The header value includes the `Token` prefix. `Authorization:
        Bearer ...` is not accepted and returns 401.


        You can access your API token from your settings page.
    readTokenAuthQuery:
      type: apiKey
      in: query
      name: auth_token
      description: >
        Pass your API token via the `auth_token` parameter on every request:
        `?auth_token=your_read_api_token`.


        You can access your API token from your settings page.


        Requests made with a missing or invalid token will get a 401
        Unauthorized response. All requests must be made over HTTPS.

````

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