{
  "openapi": "3.0.1",
  "info": {
    "title": "Article Summarizer & Extractor - AI TL;DR, Key Points & Text",
    "description": "Summarize articles, PDFs and texts into a summary, key points and a one-line TL;DR in 50+ languages, numbers checked against the source. Or extract clean article text. 📰",
    "version": "1.0",
    "x-build-id": "gxZB2BTziKg5lIZtM"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/helenisapi~article-summarizer/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-helenisapi-article-summarizer",
        "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/helenisapi~article-summarizer/runs": {
      "post": {
        "operationId": "runs-sync-helenisapi-article-summarizer",
        "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/helenisapi~article-summarizer/run-sync": {
      "post": {
        "operationId": "run-sync-helenisapi-article-summarizer",
        "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": {
          "urls": {
            "title": "Article, PDF or document links",
            "type": "array",
            "description": "Links to summarise, one per item, e.g. [\"https://paulgraham.com/words.html\", \"https://example.com/report.pdf\"]. Web pages have their main article extracted (menus, ads and comments left out); direct links to PDF (with a text layer), DOCX, TXT, Markdown or HTML files work too. Required unless `texts` or `datasetId` is set. Duplicates removed, up to 2,000 items per run (Apify free plan: the first 5 are summarised).",
            "items": {
              "type": "string"
            }
          },
          "texts": {
            "title": "Texts (optional)",
            "type": "array",
            "description": "Plain texts to summarise, one per item, up to 100,000 words each, e.g. [\"The city council voted on Tuesday to extend the bike lane...\"]. Optional: use it instead of, or with, `urls` or `datasetId`. Ignored when `mode` is \"extract\", which reads links only.",
            "items": {
              "type": "string"
            }
          },
          "datasetId": {
            "title": "Dataset ID (optional)",
            "type": "string",
            "description": "ID of an existing Apify dataset to summarise, e.g. the dataset of a news, RSS or blog scraper run. Each item's link (url, link, articleUrl, loadedUrl, canonicalUrl) is read first, else its text (text, content, body, articleText, markdown, description). Optional: alternative to, or added to, `urls` and `texts`."
          },
          "datasetTextField": {
            "title": "Text field in the dataset",
            "type": "string",
            "description": "Name of the dataset field holding the text to summarise, e.g. \"content\". When set, that field is summarised and the items' links are ignored. Leave empty to read each item's link first, else its first text field. Used only with `datasetId`."
          },
          "mode": {
            "title": "Mode",
            "enum": [
              "summarize",
              "extract"
            ],
            "type": "string",
            "description": "\"summarize\" (default): the AI writes a summary, key points and a TL;DR for each item. \"extract\": no AI, cheapest; returns only each web page's clean article text, Markdown and metadata (title, byline, date, site). Extract mode reads links only: texts are skipped.",
            "default": "summarize"
          },
          "length": {
            "title": "Summary length",
            "enum": [
              "short",
              "medium",
              "long"
            ],
            "type": "string",
            "description": "\"short\" (about 60 words, 3 key points), \"medium\" (default, about 150 words, 5 key points) or \"long\" (about 350 words, 8 key points; one extra extra-words event). A summary is never longer than a third of its source. Ignored in extract mode.",
            "default": "medium"
          },
          "format": {
            "title": "Format",
            "enum": [
              "all",
              "paragraph",
              "bullets",
              "key_points",
              "tldr"
            ],
            "type": "string",
            "description": "What to write: \"all\" (default: summary, key points and TL;DR), \"paragraph\" (a paragraph + TL;DR), \"bullets\" (a bullet-point summary + TL;DR), \"key_points\" (key points + TL;DR) or \"tldr\" (the one-line TL;DR only). Ignored in extract mode.",
            "default": "all"
          },
          "sentences": {
            "title": "Exact number of sentences (optional)",
            "minimum": 1,
            "maximum": 20,
            "type": "integer",
            "description": "Exact number of sentences (or bullets) for the summary, 1-20, e.g. 3. Overrides `length` for the summary itself. Leave empty to follow `length`."
          },
          "language": {
            "title": "Summary language (optional)",
            "type": "string",
            "description": "Language to write the summaries in, as an ISO code or an English name, e.g. \"en\", \"fr\", \"pt-br\" or \"French\" (50+ languages). Leave empty to write each summary in its source's own language."
          },
          "focus": {
            "title": "Focus topic (optional)",
            "type": "string",
            "description": "A topic to give more room to in the summary, up to 200 characters, e.g. \"pricing and costs\". The summary stays faithful to the whole source. Leave empty for a balanced summary."
          },
          "includeText": {
            "title": "Add the article's clean text",
            "type": "boolean",
            "description": "When true, also adds each web page's clean text and Markdown to its summary row (one article-extracted event per page). Default false. No effect on plain texts or in extract mode, which always returns the text.",
            "default": false
          },
          "maxConcurrency": {
            "title": "Parallel items",
            "minimum": 1,
            "maximum": 10,
            "type": "integer",
            "description": "How many items are processed at the same time, 1-10. Default 5. Only changes the speed, not the results.",
            "default": 5
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}