{
  "openapi": "3.0.1",
  "info": {
    "title": "DEV.to Scraper & Monitor - Articles, Comments & Full Text",
    "description": "Scrape DEV.to (dev.to) articles by tag, author, organization, latest or top: full markdown text, threaded comments, reactions. Keyword filter + monitor mode outputs only new posts. Official public API, no login. $0.50 per 1,000 items.",
    "version": "1.0",
    "x-build-id": "zjtfhTzdg3EsqSHQ3"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/tali-works~devto-scraper-keyword-monitor/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-tali-works-devto-scraper-keyword-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/tali-works~devto-scraper-keyword-monitor/runs": {
      "post": {
        "operationId": "runs-sync-tali-works-devto-scraper-keyword-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/tali-works~devto-scraper-keyword-monitor/run-sync": {
      "post": {
        "operationId": "run-sync-tali-works-devto-scraper-keyword-monitor",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "DEV tags without '#', e.g. python, webdev, ai, devops. Tag pages URLs (https://dev.to/t/python) work too. DEV orders tag lists by its own ranking (recent + popular), not strictly by date.",
            "items": {
              "type": "string"
            }
          },
          "usernames": {
            "title": "Authors",
            "type": "array",
            "description": "DEV usernames or profile URLs (e.g. ben or https://dev.to/ben). Newest articles first.",
            "items": {
              "type": "string"
            }
          },
          "organizations": {
            "title": "Organizations",
            "type": "array",
            "description": "DEV organization usernames, e.g. aws-builders, github, googlecloud.",
            "items": {
              "type": "string"
            }
          },
          "latest": {
            "title": "Latest articles (whole site)",
            "type": "boolean",
            "description": "Read the site-wide newest articles feed (newest first). Combine with keywords for brand or topic alerts across all of DEV.",
            "default": false
          },
          "topDays": {
            "title": "Top articles of the last N days",
            "minimum": 0,
            "maximum": 3650,
            "type": "integer",
            "description": "Also export the most popular articles of the last N days (e.g. 7 = top of the week). 0 = off."
          },
          "articleUrls": {
            "title": "Article URLs",
            "type": "array",
            "description": "Specific articles to export (https://dev.to/<user>/<slug>) or numeric article IDs.",
            "items": {
              "type": "string"
            }
          },
          "keywords": {
            "title": "Keyword filter",
            "type": "array",
            "description": "Optional. Keep only articles whose title, description or tags contain any of these words (case-insensitive). With 'Full text' on, the article body is searched too. Up to 20x 'Max articles per source' are scanned (10x with full text).",
            "items": {
              "type": "string"
            }
          },
          "includeFullText": {
            "title": "Full text (markdown + plain text)",
            "type": "boolean",
            "description": "Fetch each article's full body (bodyMarkdown, bodyText, wordCount). One extra API request per article, so runs are slower.",
            "default": false
          },
          "includeComments": {
            "title": "Include comments",
            "type": "boolean",
            "description": "Also output each article's comments and replies as separate rows (type = comment) with depth and parent comment.",
            "default": false
          },
          "maxCommentsPerArticle": {
            "title": "Max comments per article",
            "minimum": 1,
            "type": "integer",
            "description": "Used with 'Include comments'.",
            "default": 50
          },
          "maxItemsPerSource": {
            "title": "Max articles per source",
            "minimum": 1,
            "type": "integer",
            "description": "Per tag / author / organization / feed. Comments don't count toward this cap.",
            "default": 100
          },
          "maxTotalItems": {
            "title": "Max total items (cost cap)",
            "minimum": 0,
            "type": "integer",
            "description": "Stop after this many dataset items (articles + comments). 0 or empty = no cap."
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Only articles published on/after this date (YYYY-MM-DD or ISO timestamp)."
          },
          "publishedWithinDays": {
            "title": "Published within last N days",
            "minimum": 0,
            "type": "integer",
            "description": "Alternative to 'Published after'."
          },
          "minReactions": {
            "title": "Min reactions",
            "minimum": 0,
            "type": "integer",
            "description": "Skip articles with fewer reactions."
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Optional ISO codes to keep, e.g. en, es, pt. Empty = all.",
            "items": {
              "type": "string"
            }
          },
          "excludeCrossPosts": {
            "title": "Exclude cross-posts",
            "type": "boolean",
            "description": "Skip articles whose canonical URL points to another site (republished blog posts).",
            "default": false
          },
          "onlyNew": {
            "title": "Monitor mode: only new items",
            "type": "boolean",
            "description": "Remember what earlier runs returned (in the named key-value store 'devto-monitor-state') and output only articles/comments not seen before. Already-seen items are free. Schedule the Actor (Schedules > Create) hourly or daily.",
            "default": false
          },
          "monitorKey": {
            "title": "Monitor key",
            "type": "string",
            "description": "Optional name for this monitor's memory, e.g. 'brand-alerts'. Keeps the memory when you edit the input. By default the key is derived from the sources and keywords, so changing them starts a fresh baseline."
          },
          "site": {
            "title": "Forem site",
            "type": "string",
            "description": "Advanced. Base URL of a Forem community. Default https://dev.to."
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}