# Optimal (default npm ranking) npm Registry - Search &

**Use case:** 

Extract npm Registry - Search & Download Stats data filtered by Optimal (default npm ranking). Export structured results ready for analysis, lead generation,

## Input

```json
{
  "search": "react",
  "sortBy": "optimal",
  "maxItems": 10
}
```

## Output

```json
{
  "name": {
    "label": "📦 Package Name",
    "format": "text"
  },
  "version": {
    "label": "🏷 Version",
    "format": "text"
  },
  "description": {
    "label": "📝 Description",
    "format": "text"
  },
  "author": {
    "label": "👤 Author",
    "format": "text"
  },
  "license": {
    "label": "📜 License",
    "format": "text"
  },
  "homepage": {
    "label": "🌐 Homepage",
    "format": "link"
  },
  "repository": {
    "label": "🗄 Repository",
    "format": "link"
  },
  "keywords": {
    "label": "🏷 Keywords",
    "format": "text"
  },
  "weeklyDownloads": {
    "label": "📊 Weekly Downloads",
    "format": "number"
  },
  "totalDownloads": {
    "label": "📈 Total Downloads",
    "format": "number"
  },
  "lastPublished": {
    "label": "📅 Last Published",
    "format": "date"
  },
  "url": {
    "label": "🔗 npm URL",
    "format": "link"
  },
  "scrapedAt": {
    "label": "🕒 Scraped At",
    "format": "date"
  },
  "error": {
    "label": "❌ Error",
    "format": "text"
  }
}
```

## About this Actor

This example demonstrates how to use [npm Registry Scraper - Search & Download Stats](https://apify.com/parseforge/npm-registry-scraper) with a specific input configuration. Visit the [Actor detail page](https://apify.com/parseforge/npm-registry-scraper) to learn more, explore other use cases, and run it yourself.