{
  "openapi": "3.0.1",
  "info": {
    "title": "npm Package Intel — Downloads, Dependents, Health, Search",
    "description": "npm package intelligence for AI agents and due diligence: versions and dist-tags, weekly/monthly/daily downloads, dependents, publish cadence, deprecation, license, repository, TypeScript/ESM/provenance flags, dependencies and size. Registry search by keyword, author or scope.",
    "version": "0.1",
    "x-build-id": "Lk6wVjff5FDiVMPRE"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/yadroo~npm-package-intel/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-yadroo-npm-package-intel",
        "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/yadroo~npm-package-intel/runs": {
      "post": {
        "operationId": "runs-sync-yadroo-npm-package-intel",
        "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/yadroo~npm-package-intel/run-sync": {
      "post": {
        "operationId": "run-sync-yadroo-npm-package-intel",
        "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": "Package names",
            "type": "array",
            "description": "npm package names, scoped or not (`hono`, `@modelcontextprotocol/sdk`). npmjs.com URLs and `name@version` are accepted and normalized; the latest version is always reported. One dataset item per package; unknown packages produce an item with `error`.",
            "items": {
              "type": "string"
            }
          },
          "searchQueries": {
            "title": "Registry search queries",
            "type": "array",
            "description": "Free-text searches against registry.npmjs.org (same engine as npmjs.com search). Supports qualifiers: `keywords:mcp`, `author:sindresorhus`, `maintainer:apify`, `scope:apify`, `not:unstable`, `not:insecure`, `is:unstable`, `is:insecure`, `boost-exact:false`. Each query returns up to `searchMaxItems` packages.",
            "items": {
              "type": "string"
            }
          },
          "searchMaxItems": {
            "title": "Max packages per search query",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Registry pages are 250 per request; results stop at offset 10 000. Each package returned is a billed item.",
            "default": 25
          },
          "searchQuality": {
            "title": "Search weight: quality",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "0–100, sent to the registry as a 0.0–1.0 weight. Quality = tests, README, types, no deprecations. Leave empty for registry defaults."
          },
          "searchPopularity": {
            "title": "Search weight: popularity",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "0–100 weight for downloads/dependents. Set 100 with quality/maintenance 0 to rank strictly by popularity."
          },
          "searchMaintenance": {
            "title": "Search weight: maintenance",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "0–100 weight for release/issue activity."
          },
          "searchExcludeUnstable": {
            "title": "Exclude unstable (0.x) packages",
            "type": "boolean",
            "description": "Appends `not:unstable` to every search query.",
            "default": false
          },
          "searchExcludeInsecure": {
            "title": "Exclude packages flagged insecure",
            "type": "boolean",
            "description": "Appends `not:insecure` to every search query.",
            "default": false
          },
          "searchHydrate": {
            "title": "Hydrate search hits (full profile)",
            "type": "boolean",
            "description": "Fetch the full registry document + download stats for every search hit (2–4 extra requests per package). Off = lightweight items straight from the search index (name, version, weekly/monthly downloads, dependents, score, maintainers, links).",
            "default": false
          },
          "versionsLimit": {
            "title": "Recent versions to list",
            "minimum": 0,
            "maximum": 100,
            "type": "integer",
            "description": "How many most recent versions (with publish dates) to include in `recentVersions`.",
            "default": 10
          },
          "includeDependencies": {
            "title": "Include dependency maps",
            "type": "boolean",
            "description": "Include `dependencies`, `peerDependencies`, `optionalDependencies` of the latest version (name → range). Counts (`deps`, `peerDeps`, `optionalDeps`, `devDeps`) are always included.",
            "default": true
          },
          "includeDependents": {
            "title": "Include dependents count and registry score",
            "type": "boolean",
            "description": "One extra search request per package to get `dependents` (number of packages depending on it), `searchScore` (quality/popularity/maintenance 0–1) and the `insecure` flag.",
            "default": true
          },
          "includeBundleSize": {
            "title": "Include bundle size (bundlephobia)",
            "type": "boolean",
            "description": "Adds `bundle` {size, gzip, dependencyCount} from bundlephobia.com — unofficial, slow (a cold package can take 10–20 s) and fails for native/server-only packages. Use for front-end libraries only.",
            "default": false
          },
          "includeDownloadsYear": {
            "title": "Include last-year downloads",
            "type": "boolean",
            "description": "Adds `downloadsYear` (rolling 365 days).",
            "default": false
          },
          "downloadRange": {
            "title": "Daily download series",
            "type": "string",
            "description": "Adds `downloadsDaily` (one row per day) and `downloadsRange` totals. Accepts `last-day`, `last-week`, `last-month`, `last-year` or a custom `YYYY-MM-DD:YYYY-MM-DD` (max 18 months, data starts 2015-01-10). Empty = off."
          },
          "includeVersionDownloads": {
            "title": "Include per-version downloads (last week)",
            "type": "boolean",
            "description": "Adds `versionDownloads`: top 5 versions by weekly downloads, share of the latest version and of the latest major line — shows how fast users migrate.",
            "default": false
          },
          "fields": {
            "title": "Only these fields",
            "type": "array",
            "description": "Keep only the listed top-level fields in each item (`id`, `name`, `error` are always kept). Empty = all fields.",
            "items": {
              "type": "string"
            }
          }
        }
      },
      "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
                  }
                }
              },
              "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}