Need help with your APIs? I offer API discovery, governance & evangelism services. Explore services →
API Evangelist API Evangelist
Discovery
Learnings
Guidance
Toolbox
Alignment
API Evangelist LLC

Reddit Subreddits API

Endpoints for managing and retrieving information about subreddits, including subscription, creation, rules, and settings.

Reddit Subreddits API is one of 21 APIs that Reddit publishes on the APIs.io network, described by a machine-readable OpenAPI specification.

Tagged areas include Subreddits. The published artifact set on APIs.io includes an OpenAPI specification, API documentation, and authentication docs.

This API exposes 4 operations across 4 paths, and defines 4 schemas. It is described by OpenAPI 3.1.0, at version 3.

Requests are made against a single base URL, https://ads-api.reddit.com/api/v3.

4 operations 4 paths 4 schemas 3 GET1 POST

Metadata

The identity and technical contract details declared by the specification.

Specification
OpenAPI 3.1.0
API Version
3
Base URL
https://oauth.reddit.com
Authentication
OAuth 2.0
Terms of Service
Resource Areas
1

Authentication & Security 1

Reddit Subreddits API declares 1 security scheme for authenticating requests. It supports OAuth 2.0 (oauth2) using the authorizationCode flow, exposing 1 scope. By default, every request must be authenticated.

  • oauth2 — Reddit Ads API uses OAuth 2.0 for authentication. Access tokens are obtained via the authorization code flow.

Paths & Operations 4

Across 4 paths, the API surfaces 4 operations — 3 GET, 1 POST. Each is listed below with its method, path, parameters, and response codes.

Subreddits 4

Endpoints for managing and retrieving information about subreddits, including subscription, creation, rules, and settings.

GET
/r/{subreddit}/about
Get Subreddit Information
getSubredditAbout 1 param → 200404
GET
/r/{subreddit}/about/rules
Get Subreddit Rules
getSubredditRules 1 param → 200
GET
/subreddits/mine/subscriber
Get Subscribed Subreddits
getMySubreddits 4 params → 200
POST
/api/subscribe
Subscribe or Unsubscribe From a Subreddit
subscribe body → 200

Schemas 4

The contract defines 4 schemas that model the data the API accepts and returns. The most detailed are SubredditRule (6 properties), Listing (2 properties), Subreddit (2 properties), Thing (2 properties). Each schema is shown below with its type and property counts.

Thing
object
A Reddit thing is the base object type. All Reddit objects (comments, links, subreddits, etc.) are things with a kind and data payload.
2 properties
SubredditRule
object
Represents a rule defined for a subreddit.
6 properties
Subreddit
object
Represents a Reddit subreddit community with its configuration and metadata.
2 properties
Listing
object
A Reddit listing is a paginated collection of things. Listings contain a data object with children and pagination information.
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

reddit-subreddits-api-openapi.yml Raw ↑

Other APIs Reddit publishes across the network.

Reddit Ads API
Reddit OAuth 2.0 Authorization
Reddit Account API
Reddit Accounts API
Reddit Ad Groups API
Reddit Campaigns API
Reddit Conversions API
Reddit Custom Audiences API
Reddit Flair API
Reddit Funding API
Reddit Links & Comments API
Reddit Listings API