{
  "openapi": "3.0.1",
  "info": {
    "title": "Medium Articles Scraper: Tags, Authors, Search, Full Text",
    "description": "Medium articles scraper for tags, authors, publications, keyword searches or article links: title, full text in Markdown, claps, responses, reading time, author with followers, publication, tags, paywall flag. Hundreds of articles per source, not just the latest 10.",
    "version": "0.1",
    "x-build-id": "mipwcPSmxu0EWDCuM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/quarra~medium-articles-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-quarra-medium-articles-scraper",
        "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/quarra~medium-articles-scraper/runs": {
      "post": {
        "operationId": "runs-sync-quarra-medium-articles-scraper",
        "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/quarra~medium-articles-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-quarra-medium-articles-scraper",
        "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": {
          "startUrls": {
            "title": "Medium links or article IDs",
            "type": "array",
            "description": "Any Medium link, read for what it is: an article, a tag page, an author profile, a publication (also on its own domain, such as blog.stackademic.com) or a search page. A bare article ID (12 characters) also works. The filters below apply to these articles too.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Search keywords",
            "type": "array",
            "description": "Search Medium for these words, as the search box does. Medium shows about 990 results per search; use more specific words to go further.",
            "items": {
              "type": "string"
            }
          },
          "tags": {
            "title": "Tags",
            "type": "array",
            "description": "Tag names or links, such as machine-learning or https://medium.com/tag/python. Names are read as Medium spells its tags: C++ is cpp, C# is csharp, Node.js is nodejs. The tag's articles, newest first (see Tag order).",
            "items": {
              "type": "string"
            }
          },
          "authors": {
            "title": "Authors",
            "type": "array",
            "description": "Usernames or profile links, such as @ev or https://medium.com/@ev. All the author's stories, newest first (a story pinned at the top of the profile comes first, as on Medium).",
            "items": {
              "type": "string"
            }
          },
          "publications": {
            "title": "Publications",
            "type": "array",
            "description": "Publication names or links, such as towards-data-science, https://medium.com/better-programming or a publication's own domain (blog.stackademic.com). Its articles, newest first (stories pinned at the top of its home page come first, as on Medium).",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max articles",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Total number of articles delivered by the run, counted exactly. Free records (errors, articles that no longer exist) are not counted.",
            "default": 100
          },
          "maxResultsPerSource": {
            "title": "Max articles per source",
            "minimum": 1,
            "maximum": 1000000,
            "type": "integer",
            "description": "Each tag, author, publication or search stops at this many articles.",
            "default": 100
          },
          "includeContent": {
            "title": "Full text (Markdown)",
            "type": "boolean",
            "description": "Add the article text as Markdown (headings, links, code, lists, images). For member-only stories Medium shows visitors without an account a preview only, and so does this Actor: those rows are marked isMemberOnly and isPreviewOnly. Untick for metadata only (lighter and faster).",
            "default": true
          },
          "tagSort": {
            "title": "Tag order",
            "enum": [
              "newest",
              "popular"
            ],
            "type": "string",
            "description": "Newest first reads a tag from today backwards. Most read gives the most-read articles of each month, newest month first (Medium shows about 20 per month), until the limits, the dates below or the tag's oldest article.",
            "default": "newest"
          },
          "publishedAfter": {
            "title": "Published after",
            "type": "string",
            "description": "Only articles published on or after this date, such as 2026-01-31. Like every filter here, it applies to all articles, including those given by link: an article left out is never charged, and a link left out gets a free 'excluded' record saying why. Sources sorted by date stop early once they reach older articles."
          },
          "publishedBefore": {
            "title": "Published before",
            "type": "string",
            "description": "Only articles published on or before this date (the whole day counts), such as 2026-03-01. A tag then starts from that month instead of today and reads back to its oldest article."
          },
          "minClaps": {
            "title": "Minimum claps",
            "minimum": 0,
            "type": "integer",
            "description": "Only articles with at least this many claps (an article whose claps Medium does not give is left out). Applies to article links too.",
            "default": 0
          },
          "access": {
            "title": "Access",
            "enum": [
              "all",
              "free",
              "members"
            ],
            "type": "string",
            "description": "Member-only stories are delivered as the preview Medium shows visitors without an account. Applies to article links too.",
            "default": "all"
          },
          "proxyConfiguration": {
            "title": "Connection",
            "type": "object",
            "description": "Connection. Keep the default (automatic). Costs are included in the price.",
            "default": {
              "useApifyProxy": true
            }
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}