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 Wiki API

Endpoints for managing subreddit wikis, including reading and editing wiki pages, revision history, and permissions.

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

Tagged areas include Wiki. 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 3 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 3 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 Wiki 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.

Wiki 4

Endpoints for managing subreddit wikis, including reading and editing wiki pages, revision history, and permissions.

GET
/r/{subreddit}/wiki/{page}
Get a Wiki Page
getWikiPage 2 params → 200404
GET
/r/{subreddit}/wiki/pages
List Wiki Pages
getWikiPages 1 param → 200
POST
/r/{subreddit}/api/wiki/edit
Edit a Wiki Page
editWikiPage 1 param body → 200
GET
/r/{subreddit}/wiki/revisions/{page}
Get Wiki Page Revision History
getWikiPageRevisions 6 params → 200

Schemas 3

The contract defines 3 schemas that model the data the API accepts and returns. The most detailed are WikiPage (2 properties), Listing (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
Listing
object
A Reddit listing is a paginated collection of things. Listings contain a data object with children and pagination information.
2 properties
WikiPage
object
Represents a wiki page in a subreddit.
2 properties

Specification

The full machine-readable OpenAPI contract behind this narrative.

Source

reddit-wiki-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