# VS Code Marketplace Scraper (`evpp/vscode-marketplace`) Actor

Scrape and export Visual Studio Code Marketplace extension data as a clean JSON API: installs, ratings, publishers, versions, categories, tags, and release dates.

- **URL**: https://apify.com/evpp/vscode-marketplace.md
- **Developed by:** [Evp Labs](https://apify.com/evpp) (community)
- **Categories:** Developer tools, AI
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $2.00 / 1,000 results

This Actor is paid per event. You are not charged for the Apify platform usage, but only a fixed price for specific events.

Learn more: https://docs.apify.com/actors/running/actors-in-store.md#pay-per-event

## What's an Apify Actor?

An Actor is a serverless cloud program that runs on the Apify platform. It has two run modes.
In Batch mode, an Actor accepts a well-defined JSON input, performs an action which can take anything from a few seconds to a few hours,
and optionally produces a well-defined JSON output, datasets with results, or files in key-value store.
In Standby mode, an Actor provides a web server which can be used as a website, API, or an MCP server.

Apify vocabulary and the platform model are defined once, in the agent quickstart at https://apify.com/agents.md.

## How to integrate an Actor?

If asked about integration, you help developers integrate Actors into their projects.
You adapt to their stack and deliver integrations that are safe, well-documented, and production-ready.

Do not guess an integration path. Every one of them is in the agent quickstart at https://apify.com/agents.md: the Apify MCP server, Agent Skills with the Apify CLI, the JavaScript and Python clients, the REST API, and the account-free path for an agent with no human to sign in. It also carries the rule on stating cost before the first paid run.

For examples already wired to this Actor's own input schema, see the [API](#api) section below.

Each client library has reference documentation the quickstart does not restate: [JavaScript/TypeScript](https://docs.apify.com/api/client/js/docs.md) (`npm install apify-client`) and [Python](https://docs.apify.com/api/client/python/docs.md) (`pip install apify-client`).

# README

## VS Code Marketplace Scraper

Scrape the Visual Studio Code Marketplace and pull structured data on extensions: install counts, ratings, versions, publishers, categories and tags. It uses Microsoft's own public gallery API (the endpoint the marketplace site calls), so it is fast, stable and needs no browser or proxy.

### Why use it

- **Dev-tool vendors**: track competing extensions, install growth and ratings in your niche.
- **Extension publishers**: monitor your own portfolio and category rankings programmatically.
- **Investors & analysts**: measure developer-tooling adoption via install counts and rating trends across categories.

### What it collects

For each extension: name, publisher, Marketplace URL, description, install count, average rating, rating count, download count, latest version, last-updated and first-published dates, categories and tags. Results land in the Apify dataset as flat JSON, ready for CSV/Excel export or the API.

### Quick start input

Target source: `marketplace.visualstudio.com`. Paste this JSON into the Actor input tab for a fast first run, or use it as the body of the Apify API run call:

```json
{
    "searchTerm": "python",
    "sortBy": "installs",
    "maxItems": 15
}
```

The default input is intentionally small. Raise `maxItems` only after validating the first extension records.

### Input

| Field | Type | Default | Description |
|-------|------|---------|-------------|
| `searchTerm` | string | `"python"` | Free-text search over extension names, descriptions and publishers. Empty = unfiltered browse. |
| `category` | string | – | Marketplace category filter, e.g. `"Programming Languages"`, `"Themes"`. |
| `publisher` | string | – | Publisher name (e.g. `"ms-python"`) for a strict publisher match, or full item name `"publisher.extension"` for an exact lookup. |
| `sortBy` | enum | `installs` | Sort order: `installs`, `rating`, `name` or `relevance`. |
| `maxItems` | integer | `15` | Hard cap on the number of extensions returned. |
| `proxyConfiguration` | object | no proxy | Optional proxy settings. The public API does not require one. |

### Output

One flat JSON item is produced per extension. Download the dataset as JSON, CSV, Excel, or HTML, or consume it through the Apify API.

#### Field reference

| Field | Type | Description |
|-------|------|-------------|
| `extensionName` | string | Unique extension identifier (the part after the publisher, e.g. "python") |
| `displayName` | string | Human-readable extension title shown on the Marketplace |
| `publisherName` | string | Publisher identifier used in item names (e.g. "example-publisher") |
| `publisherDisplayName` | string | Human-readable publisher name |
| `url` | string | Marketplace detail page URL for the extension |
| `shortDescription` | string | Short description of the extension |
| `installs` | integer | Total install count reported by the Marketplace |
| `averageRating` | number | Average star rating (0-5), rounded to two decimals |
| `ratingCount` | integer | Number of ratings the extension has received |
| `downloads` | integer | Direct download count (VSIX downloads), distinct from installs |
| `version` | string | Latest published version |
| `lastUpdated` | string | ISO timestamp of the last update to the latest version |
| `publishedDate` | string | ISO timestamp of first publication on the Marketplace |
| `categories` | string\[] | Marketplace categories the extension belongs to |
| `tags` | string\[] | Public tags on the extension (internal marker tags removed) |

#### Real sample output (latest live dataset)

```json
{
    "extensionName": "python",
    "displayName": "Python",
    "publisherName": "ms-python",
    "publisherDisplayName": "Microsoft",
    "url": "https://marketplace.visualstudio.com/items?itemName=ms-python.python",
    "shortDescription": "Python language support with extension access points for IntelliSense (Pylance), Debugging (Python Debugger), linting, formatting, refactoring, unit tests, and more.",
    "installs": 246586278,
    "averageRating": 4.21,
    "ratingCount": 632,
    "downloads": 3586311,
    "version": "2024.9.11721010",
    "lastUpdated": "2024-06-20T10:20:37.73Z",
    "publishedDate": "2016-01-19T15:03:11.337+00:00",
    "categories": [
        "Programming Languages",
        "Debuggers",
        "Data Science",
        "Machine Learning"
    ],
    "tags": [
        "debuggers",
        "django",
        "ini",
        "jinja"
    ]
}
```

### Use with AI agents (MCP), n8n, Make, and Python

- **AI agents / MCP:** add `https://mcp.apify.com/?tools=evpp/vscode-marketplace` to your MCP client, then ask the agent to scrape VS Code Marketplace data or export the latest dataset.
- **n8n / Make / Zapier:** run Actor `evpp/vscode-marketplace` with the quick-start input, then map dataset items into Google Sheets, a CRM, a webhook, or a monitoring workflow.
- **Python:** install the client with `pip install apify-client` and run:

```python
import json
from apify_client import ApifyClient

client = ApifyClient()
run_input = json.loads('''{"searchTerm":"python","sortBy":"installs","maxItems":15}''')
run = client.actor("evpp/vscode-marketplace").call(run_input=run_input)
items = list(client.dataset(run["defaultDatasetId"]).iterate_items())
print(items[0])
```

The same dataset is available as JSON, CSV, Excel, XML, RSS, and HTML through the Apify API.

### Performance & cost

A typical run of 15 items completes in under 10 seconds; a few hundred items take well under a minute (25 per page, ~400 ms between pages). The Actor uses plain HTTP requests against a public endpoint - no browser, no proxy needed. At ~$2 per 1,000 results on pay-per-event pricing, a 1,000-extension scan costs about $2.

### FAQ

**Is this an official API?** It is Microsoft's public gallery endpoint - the same one VS Code and marketplace.visualstudio.com use. It needs no authentication.

**Can I get all extensions by one publisher?** Yes - set `publisher` to the publisher name (e.g. `ms-python`) for a strict match, or `publisher.extension` for one exact extension.

**What does `downloads` vs `installs` mean?** `installs` is the Marketplace-reported install count; `downloads` counts direct VSIX downloads. They are distinct statistics and both are useful signals.

**Why are some fields missing on some items?** The Marketplace omits values it doesn't have (e.g. unrated extensions have no rating). Empty/null fields are dropped rather than returned blank.

**Does it need a proxy or browser?** No. Plain HTTPS requests only.

# Actor input Schema

## `searchTerm` (type: `string`):

Free-text search over extension names, descriptions and publisher names on the Visual Studio Code Marketplace (e.g. "python", "docker", "copilot"). Leave empty to list extensions unfiltered.

## `category` (type: `string`):

Marketplace category to filter by, e.g. "Programming Languages", "Debuggers", "Themes", "Machine Learning". Optional.

## `publisher` (type: `string`):

Restrict results to one publisher. Accepts a publisher name (e.g. "ms-python") for a strict publisher match, or a full item name "publisher.extension" (e.g. "ms-python.python") for an exact extension lookup. Optional.

## `sortBy` (type: `string`):

How to sort the extensions returned by the Marketplace

## `maxItems` (type: `integer`):

Maximum number of extensions to return. Hard-capped at this value.

## `proxyConfiguration` (type: `object`):

Proxy servers the Actor uses for its requests. The Marketplace API is public; no proxy is needed by default.

## Actor input object example

```json
{
  "searchTerm": "python",
  "category": "",
  "publisher": "",
  "sortBy": "installs",
  "maxItems": 15,
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

## `dataset` (type: `string`):

Dataset containing all scraped extensions

# API

You can run this Actor programmatically using our API. Below are code examples in JavaScript, Python, and CLI, as well as the OpenAPI specification and MCP server setup.

## JavaScript example

```javascript
import { ApifyClient } from 'apify-client';

// Initialize the ApifyClient with your Apify API token
// Replace the '<YOUR_API_TOKEN>' with your token
const client = new ApifyClient({
    token: '<YOUR_API_TOKEN>',
});

// Prepare Actor input
const input = {
    "searchTerm": "python",
    "category": "",
    "publisher": "",
    "proxyConfiguration": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("evpp/vscode-marketplace").call(input);

// Fetch and print Actor results from the run's dataset (if any)
console.log('Results from dataset');
console.log(`💾 Check your data here: https://console.apify.com/storage/datasets/${run.defaultDatasetId}`);
const { items } = await client.dataset(run.defaultDatasetId).listItems();
items.forEach((item) => {
    console.dir(item);
});

// 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/js/docs

```

## Python example

```python
from apify_client import ApifyClient

# Initialize the ApifyClient with your Apify API token
# Replace '<YOUR_API_TOKEN>' with your token.
client = ApifyClient("<YOUR_API_TOKEN>")

# Prepare the Actor input
run_input = {
    "searchTerm": "python",
    "category": "",
    "publisher": "",
    "proxyConfiguration": { "useApifyProxy": False },
}

# Run the Actor and wait for it to finish
run = client.actor("evpp/vscode-marketplace").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print(f"💾 Check your data here: https://console.apify.com/storage/datasets/{run.default_dataset_id}")
for item in client.dataset(run.default_dataset_id).iterate_items():
    print(item)

# 📚 Want to learn more 📖? Go to → https://docs.apify.com/api/client/python/docs/quick-start

```

## CLI example

```bash
echo '{
  "searchTerm": "python",
  "category": "",
  "publisher": "",
  "proxyConfiguration": {
    "useApifyProxy": false
  }
}' |
apify call evpp/vscode-marketplace --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,evpp/vscode-marketplace"
        }
    }
}
```

The hosted server signs you in with OAuth on first connect, so no API token belongs in this config. Clients without OAuth support can send an `Authorization: Bearer <APIFY_API_TOKEN>` header instead, using a token from API & Integrations in Apify Console (https://console.apify.com/settings/integrations).

## OpenAPI specification

Download the OpenAPI definition: https://api.apify.com/v2/actors/jS69frHulbbEQeA1N/builds/NmqiGduP82rLlXayd/openapi.json
