Discovery needs no key. Ratings and market analysis are Pro.
Get an API key
Free tier, no form to fill in. Signing in shares your email address with us — we
store it to create your key and to recognise you if you sign in with another
provider. See our Privacy Policy and
Terms.
openapi: 3.2.0
info:
title: Forem API V1 Subforems API
version: 1.0.0
description: Access Forem articles, users and other resources via API.
servers:
- url: https://dev.to
description: Production server
security:
- api-key: []
- bearer_auth: []
tags:
- name: subforems
paths:
/api/subforems:
get:
summary: Retrieve all discoverable subforems
tags:
- subforems
description: 'Retrieve a list of all discoverable subforems/communities.
### Subforems Overview:
- Subforems represent distinct sub-communities or specialized sections hosted within the Forem instance.
- Bypasses authentication (can be accessed publicly).
- Returns list of names, slugs, color schemes, and target interests.'
security: []
responses:
'200':
description: successful
content:
application/json:
schema:
type: array
items:
$ref: '#/components/schemas/Subforem'
operationId: getApiSubforems
x-operation-id-source: derived
components:
schemas:
Subforem:
description: Representation of a subforem
type: object
properties:
id:
type: integer
format: int64
domain:
type: string
root:
type: boolean
name:
type: string
description:
type: string
logo_image_url:
type: string
cover_image_url:
type: string
required:
- id
- domain
- root
- name
- description
- logo_image_url
- cover_image_url
securitySchemes:
api-key:
type: apiKey
name: api-key
in: header
description: "API Key authentication.\n\nAuthentication for some endpoints, like write operations on the\nArticles API require a DEV API key.\n\nAll authenticated endpoints are CORS disabled, the API key is intended for non-browser scripts.\n\n### Getting an API key\n\nTo obtain one, please follow these steps:\n\n - visit https://dev.to/settings/extensions\n - in the \"DEV API Keys\" section create a new key by adding a\n description and clicking on \"Generate API Key\"\n\n \n\n - You'll see the newly generated key in the same view\n "
bearer_auth:
type: http
scheme: bearer
bearerFormat: JWT
description: Short-lived RS256 RFC 9068 access token issued by the configured delegation service and verified against its configured JWKS. The issuer authorizes the client and requested operation before minting the token; Forem validates the token and resolves its subject and owner to a local user. An invalid token returns 401; an unavailable trust dependency with no usable cached key returns 503.