DEV Community Reactions API

The reactions API from DEV Community — 4 operation(s) for reactions.

Operations 4

POST /api/reactions/toggle toggle reaction #
POST /api/reactions create reaction #
POST /reactions/toggle toggle reaction #
POST /reactions create reaction #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/devto-reactions-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

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.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

devto-reactions-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  title: Devto Reactions API
  version: 1.0.0
  description: 'Operations tagged reactions across 2 of this provider''s published API definitions: openapi.json, openapi.yaml. Each path carries the servers of the definition it was published in.'
servers:
- url: https://dev.to/api
  description: Production server
security:
- api-key: []
tags:
- name: Reactions
paths:
  /api/reactions/toggle:
    post:
      summary: toggle reaction
      tags:
      - Reactions
      description: 'This endpoint allows the client to toggle the user''s reaction to a specified reactable (eg, Article, Comment, or User). For examples:

        * "Like"ing an Article will create a new "like" Reaction from the user for that Articles

        * "Like"ing that Article a second time will remove the "like" from the user'
      parameters:
      - name: category
        in: query
        required: true
        schema:
          type: string
          enum:
          - like
          - unicorn
          - exploding_head
          - raised_hands
          - fire
      - name: reactable_id
        in: query
        required: true
        schema:
          type: integer
          format: int32
      - name: reactable_type
        in: query
        required: true
        schema:
          type: string
          enum:
          - Comment
          - Article
          - User
      responses:
        '200':
          description: successful
          content:
            application/json:
              example:
                result: create
                category: like
                id: 161
                reactable_id: 2260
                reactable_type: Article
        '401':
          description: unauthorized
          content:
            application/json:
              example:
                error: unauthorized
                status: 401
      operationId: postApiReactionsToggle
      x-operation-id-source: derived
    servers:
    - url: https://dev.to/api
      description: Production server
  /api/reactions:
    post:
      summary: create reaction
      tags:
      - Reactions
      description: 'This endpoint allows the client to create a reaction to a specified reactable (eg, Article, Comment, or User). For examples:

        * "Like"ing an Article will create a new "like" Reaction from the user for that Articles

        * "Like"ing that Article a second time will return the previous "like"'
      parameters:
      - name: category
        in: query
        required: true
        schema:
          type: string
          enum:
          - like
          - unicorn
          - exploding_head
          - raised_hands
          - fire
      - name: reactable_id
        in: query
        required: true
        schema:
          type: integer
          format: int32
      - name: reactable_type
        in: query
        required: true
        schema:
          type: string
          enum:
          - Comment
          - Article
          - User
      responses:
        '200':
          description: successful
          content:
            application/json:
              example:
                result: none
                category: like
                id: 163
                reactable_id: 2262
                reactable_type: Article
        '401':
          description: unauthorized
          content:
            application/json:
              example:
                error: unauthorized
                status: 401
      operationId: postApiReactions
      x-operation-id-source: derived
    servers:
    - url: https://dev.to/api
      description: Production server
  /reactions/toggle:
    post:
      summary: toggle reaction
      tags:
      - Reactions
      description: 'This endpoint allows the client to toggle the user''s reaction to a specified reactable (eg, Article, Comment, or User). For examples:

        * "Like"ing an Article will create a new "like" Reaction from the user for that Articles

        * "Like"ing that Article a second time will remove the "like" from the user'
      parameters:
      - name: category
        in: query
        required: true
        schema:
          type: string
          enum:
          - like
          - unicorn
          - exploding_head
          - raised_hands
          - fire
      - name: reactable_id
        in: query
        required: true
        schema:
          type: integer
          format: int32
      - name: reactable_type
        in: query
        required: true
        schema:
          type: string
          enum:
          - Comment
          - Article
          - User
      responses:
        '200':
          description: successful
          content:
            application/json:
              example:
                result: create
                category: like
                id: 13
                reactable_id: 283
                reactable_type: Article
        '401':
          description: unauthorized
          content:
            application/json:
              example:
                error: unauthorized
                status: 401
      operationId: postReactionsToggle
      x-operation-id-source: derived
    servers:
    - url: https://dev.to/api
      description: Production server
  /reactions:
    post:
      summary: create reaction
      tags:
      - Reactions
      description: 'This endpoint allows the client to create a reaction to a specified reactable (eg, Article, Comment, or User). For examples:

        * "Like"ing an Article will create a new "like" Reaction from the user for that Articles

        * "Like"ing that Article a second time will return the previous "like"'
      parameters:
      - name: category
        in: query
        required: true
        schema:
          type: string
          enum:
          - like
          - unicorn
          - exploding_head
          - raised_hands
          - fire
      - name: reactable_id
        in: query
        required: true
        schema:
          type: integer
          format: int32
      - name: reactable_type
        in: query
        required: true
        schema:
          type: string
          enum:
          - Comment
          - Article
          - User
      responses:
        '200':
          description: successful
          content:
            application/json:
              example:
                result: none
                category: like
                id: 15
                reactable_id: 285
                reactable_type: Article
        '401':
          description: unauthorized
          content:
            application/json:
              example:
                error: unauthorized
                status: 401
      operationId: postReactions
      x-operation-id-source: derived
    servers:
    - url: https://dev.to/api
      description: Production server
components:
  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    ![obtain a DEV API Key](https://user-images.githubusercontent.com/37842/172718105-bd93664e-76e0-477d-99c4-265dda0b06c5.png)\n\n  - You'll see the newly generated key in the same view\n    ![generated DEV API Key](https://user-images.githubusercontent.com/37842/172718151-e7fe26a0-9937-42e8-96c6-333acdab9e49.png)"
x-refined-from:
- openapi.json
- openapi.yaml