{
  "openapi": "3.0.1",
  "info": {
    "title": "PyPI Package Metadata: Versions, Downloads & CVEs, No Login",
    "description": "Get PyPI package metadata for up to 1000 Python packages: latest version, license, Python support, dependencies, release dates, yanked releases, downloads and known vulnerabilities. No login, no API key.",
    "version": "0.1",
    "x-build-id": "whLJgkuxRVfN0Mbvc"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/cliqtomedia~pypi-package-metadata/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-cliqtomedia-pypi-package-metadata",
        "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/cliqtomedia~pypi-package-metadata/runs": {
      "post": {
        "operationId": "runs-sync-cliqtomedia-pypi-package-metadata",
        "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/cliqtomedia~pypi-package-metadata/run-sync": {
      "post": {
        "operationId": "run-sync-cliqtomedia-pypi-package-metadata",
        "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": {
          "packages": {
            "title": "Packages",
            "type": "array",
            "description": "PyPI project names, pypi.org project links or requirements.txt lines, one per line (up to 1000). Pin a version with name==1.2.3. Other version specifiers are cut to the name.",
            "items": {
              "type": "string"
            }
          },
          "maintainers": {
            "title": "PyPI users (optional)",
            "type": "array",
            "description": "PyPI usernames or pypi.org/user/ links (up to 20). Every project the user owns or maintains is added to the list.",
            "items": {
              "type": "string"
            }
          },
          "topPackages": {
            "title": "Most-downloaded projects (optional)",
            "minimum": 0,
            "maximum": 1000,
            "type": "integer",
            "description": "Add the N most-downloaded PyPI projects of the last 30 days (0–1000). The list comes from hugovk/top-pypi-packages and is updated monthly.",
            "default": 0
          },
          "mode": {
            "title": "Output",
            "enum": [
              "metadata",
              "releases"
            ],
            "type": "string",
            "description": "One row per package with all metadata, or one row per release (version, upload date, yanked, wheel or sdist).",
            "default": "metadata"
          },
          "includeDownloads": {
            "title": "Include downloads",
            "type": "boolean",
            "description": "Downloads in the last day, week and month from pypistats.org. pypistats allows about 1 request per second, so each package adds about 1 second to the run.",
            "default": true
          },
          "minDownloadsLastMonth": {
            "title": "Minimum downloads last month",
            "minimum": 0,
            "type": "integer",
            "description": "Skip packages with fewer monthly downloads (needs Include downloads). Packages with unknown downloads are kept. 0 keeps all.",
            "default": 0
          },
          "includeVulnerabilities": {
            "title": "Include known vulnerabilities",
            "type": "boolean",
            "description": "Known vulnerabilities of the checked version from the OSV data PyPI returns: ID, aliases (CVE), short summary, fixed-in versions.",
            "default": true
          },
          "includeReleases": {
            "title": "Include release list in each row",
            "type": "boolean",
            "description": "Add the newest releases (version, upload date, yanked, files) to each package row.",
            "default": false
          },
          "maxReleasesPerPackage": {
            "title": "Releases per package",
            "minimum": 1,
            "maximum": 1000,
            "type": "integer",
            "description": "How many of the newest releases to list per package (release list and release rows).",
            "default": 20
          },
          "includePrereleases": {
            "title": "Include pre-releases",
            "type": "boolean",
            "description": "Also list alpha, beta, release-candidate and dev versions.",
            "default": false
          },
          "includeProjectStatus": {
            "title": "Include project status",
            "type": "boolean",
            "description": "Project status from the PyPI Simple API (active, archived, deprecated, quarantined). Adds one request per package.",
            "default": false
          },
          "dependencyDepth": {
            "title": "Dependency tree depth",
            "minimum": 0,
            "maximum": 3,
            "type": "integer",
            "description": "Also check the required dependencies of each package, down to this many levels (0–3). Optional extras are not followed.",
            "default": 0
          },
          "onlyNew": {
            "title": "Only new releases",
            "type": "boolean",
            "description": "For scheduled runs: write only packages (or releases) uploaded since the previous run with the same state name. Unchanged packages cost a small fee and are not written. The first run is the baseline.",
            "default": false
          },
          "stateName": {
            "title": "State name",
            "type": "string",
            "description": "Name of the saved state the next run compares with (letters, digits and -). Required for Only new releases."
          },
          "maxResults": {
            "title": "Max rows",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many Dataset rows (1–10000).",
            "default": 1000
          },
          "deliveryConnector": {
            "title": "Send results to (optional)",
            "type": "string",
            "description": "Your Slack, Notion or other MCP connector. After the run the Actor posts a short summary there. Connect services once in Apify Console → MCP connectors."
          },
          "deliveryTarget": {
            "title": "Notion page or channel (optional)",
            "type": "string",
            "description": "Where to post the summary: a Notion page link (each run is added on top of that page) or a Slack channel ID. Notion needs a page here; without it the summary is not sent and the run summary says why."
          },
          "includeDescription": {
            "title": "Include README text",
            "type": "boolean",
            "description": "Add the project description (README) to each row, up to 20000 characters, with e-mail addresses removed. Makes rows much larger.",
            "default": false
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}