# Tensor Scraper (`dadhalfdev/tensor-scraper`) Actor

Scrape Solana NFT collections from tensor.trade. Use filters or paste a Tensor URL — the URL wins when set. Returns floor, volume, sales, and listed count.

- **URL**: https://apify.com/dadhalfdev/tensor-scraper.md
- **Developed by:** [Marco Rodrigues](https://apify.com/dadhalfdev) (community)
- **Categories:**
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $3.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.
Since this Actor supports Apify Store discounts, the price gets lower the higher subscription plan you have.

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

## What's an Apify Actor?

Actors are web data automations that power AI and operations. They run on the Apify platform to scrape websites, process data, connect APIs, and automate workflows.
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.
Actors are written with capital "A".

## 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.
The best way to integrate Actors is as follows.

- **AI agents and MCP clients** — the [Apify MCP server](https://docs.apify.com/integrations/mcp.md) at `https://mcp.apify.com` (remote, streamable HTTP, OAuth on first use).
- **Agentic workflows and local Actor development** — [Agent Skills](https://apify.com/.well-known/agent-skills/index.json) with the [Apify CLI](https://docs.apify.com/cli/docs.md): `npm install -g apify-cli`, then `apify login`.
- **JavaScript/TypeScript projects** — the official [JS/TS client](https://docs.apify.com/api/client/js/docs.md): `npm install apify-client`.
- **Python projects** — the official [Python client](https://docs.apify.com/api/client/python/docs.md): `pip install apify-client`.
- **Any other language** — the [REST API](https://docs.apify.com/api/v2.md).

For usage examples, see the [API](#api) section below.

For more details, see Apify documentation as [Markdown index](https://docs.apify.com/llms.txt) and [Markdown full-text](https://docs.apify.com/llms-full.txt).

# README

## 🟣 Tensor Scraper

Want [Tensor](https://www.tensor.trade/) Solana NFT collections in a spreadsheet? This scraper makes it easy.

Use **structured filters** (trending vs new mints, 1h/24h/7d, floor, volume) — structured filters work better for AI agents — **or** paste an **`input_url`** from Tensor once you've already filtered in the browser. When `input_url` is set it overrides the filters below.

Tensor currently has about **38,000 collections**. This actor returns up to 2000 rows per run.

### 💡 Perfect for...

- **Traders:** Export floor, 24h volume, and listed count across Solana collections.
- **Dashboards:** Track Tensor homepage rankings without clicking through the table.
- **Market research:** Slice collections by compressed NFTs, whitelist, or volume window.
- **Data analysts:** Export structured Tensor collection rows with public trade URLs.
- **🤖 AI Agents:** Power bots and OpenClaw workflows with live Tensor results.
- **📚 RAG Systems:** Feed collection titles, floors, and volumes into retrieval pipelines.
- **🔗 AI Workflows:** Plug into LangChain, AutoGPT, CrewAI, and similar stacks.

### ✨ Why you'll love this scraper

- 🔗 **Input URL or Filters:** Paste a Tensor homepage URL (`input_url`) if you already filtered in the browser, or use structured filters (better for AI agents). `input_url` always wins when set.
- 🎯 **Website-Matched Filters:** Same TRENDING / NEW MINTS tabs and 1h / 24h / 7d chips as tensor.trade.
- 🌐 **Solana NFT catalog:** Floor, volume, sales, listed count, and ~38k collections.

### 📦 What's inside the data?

Every row includes all of these fields:

- **Core:** `id`, `url`, `title`, `slug`, `slug_display`, `slug_magic_eden`, `description`, `image_url`, `symbol`, `token_standard`
- **Flags:** `verified`, `whitelisted`, `compressed`, `hidden`, `royalty_bps`
- **Prices:** `floor_sol`, `floor_lamports`, `bid_sol`
- **Volume:** `volume_1h_sol`, `volume_24h_sol`, `volume_7d_sol`, `volume_all_sol`
- **Activity:** `sales_1h`, `sales_24h`, `sales_7d`, `sales_all`, `listed`, `mints`, `pct_listed`, `num_bids`, `market_cap_sol`
- **Deltas:** `floor_change_1h`, `floor_change_24h`, `floor_change_7d`
- **Links / dates:** `twitter`, `discord`, `website`, `created_at`, `first_listed_at`

### 🚀 Quick start

**Option A — Input URL**

1. Open [tensor.trade](https://www.tensor.trade/), apply filters, copy the URL — e.g. `https://www.tensor.trade/?q=mad&period=24h&sort=volume`.
2. Paste it into `input_url`.
3. Set `max_results` and click **Start**.

**Option B — Structured filters (better for AI agents)**

1. Leave `input_url` empty.
2. Optionally pick Trending vs New mints, 1h/24h/7d, and floor / volume bounds.
3. Set `max_results` (up to 2000) and click **Start**.

***

#### Tech details for developers 🧑‍💻

**Input Example (filters):**

```json
{
  "tab": "trending",
  "period": "24h",
  "sort": "volume",
  "listed_only": true,
  "max_results": 100
}
```

**Input Example (URL override):**

```json
{
  "input_url": "https://www.tensor.trade/?q=mad&period=7d&sort=volume",
  "max_results": 50
}
```

**Output Example:**

```json
{
  "id": "bd366797-5599-417a-be03-1e43a7e3fb90",
  "url": "https://www.tensor.trade/trade/madlads",
  "title": "Mad Lads",
  "slug": "bd366797-5599-417a-be03-1e43a7e3fb90",
  "slug_display": "madlads",
  "slug_magic_eden": "mad_lads",
  "description": "Fock it.",
  "image_url": "https://prod-tensor-creators-s3.s3.us-east-1.amazonaws.com/image-59c7bcf2-bcb3-4cd3-9301-68ee6a474926",
  "symbol": "MAD",
  "token_standard": "PROGRAMMABLE_NON_FUNGIBLE",
  "verified": true,
  "whitelisted": true,
  "compressed": false,
  "hidden": false,
  "royalty_bps": 420,
  "floor_sol": 9.3856,
  "floor_lamports": 9385600000,
  "bid_sol": 8.91,
  "volume_1h_sol": 0,
  "volume_24h_sol": 262.8,
  "volume_7d_sol": 828.7,
  "volume_all_sol": 3572343.89,
  "sales_1h": 0,
  "sales_24h": 29,
  "sales_7d": 93,
  "sales_all": 47635,
  "listed": 297,
  "mints": 9968,
  "pct_listed": 2.98,
  "num_bids": 25,
  "market_cap_sol": 93555.66,
  "floor_change_1h": 0.0105,
  "floor_change_24h": 0.0665,
  "floor_change_7d": 0.146,
  "twitter": "https://www.twitter.com/MadLads",
  "discord": "https://discord.com/invite/madlads",
  "website": "https://www.madlads.com/",
  "created_at": "2023-04-19T22:46:26.819000+00:00",
  "first_listed_at": "2023-04-22T01:12:28+00:00"
}
```

**Output fields:**

| Field | Description |
|-------|-------------|
| `id` | Tensor collection id. |
| `url` | Public Tensor trade page. |
| `title` | Collection name. |
| `slug` | Tensor collection slug / id. |
| `slug_display` | Display slug used in `/trade/{slug}`. |
| `slug_magic_eden` | Magic Eden slug when Tensor provides it. |
| `description` | Collection description. |
| `image_url` | Collection image. |
| `symbol` | Token symbol. |
| `token_standard` | Metaplex token standard. |
| `verified` | Tensor verified flag. |
| `whitelisted` | Tensor whitelist flag. |
| `compressed` | True for compressed NFTs (cNFTs). |
| `hidden` | Hidden from the marketplace. |
| `royalty_bps` | Seller royalty in basis points. |
| `floor_sol` | Buy-now floor in SOL. |
| `floor_lamports` | Buy-now floor in lamports. |
| `bid_sol` | Best bid / sell-now price in SOL. |
| `volume_1h_sol` / `volume_24h_sol` / `volume_7d_sol` / `volume_all_sol` | Volume in SOL. |
| `sales_1h` / `sales_24h` / `sales_7d` / `sales_all` | Sale counts. |
| `listed` | Active listings. |
| `mints` | Collection size. |
| `pct_listed` | Percent of supply listed. |
| `num_bids` | Active bids. |
| `market_cap_sol` | Market cap in SOL. |
| `floor_change_1h` / `floor_change_24h` / `floor_change_7d` | Floor change ratios from Tensor. |
| `twitter` / `discord` / `website` | Social links. |
| `created_at` | When Tensor indexed the collection. |
| `first_listed_at` | First listing timestamp. |

### 📋 Input reference (detailed)

| Parameter | Type | Required | Default | Description |
|-----------|------|----------|---------|-------------|
| `input_url` | string | No | — | Paste a Tensor homepage or `/trade/{slug}` URL; overrides filters when set. |
| `search` | string | No | — | Collection name / slug search. |
| `tab` | string enum | No | `trending` | `trending` or `new` (New mints). |
| `period` | string enum | No | `24h` | `1h`, `24h`, or `7d`. |
| `sort` | string enum | No | `volume` | `volume`, `floor`, `sales`, `listed`, `market_cap`, `total_volume`, `newest`, `recently_listed`, `name`. |
| `sort_direction` | string enum | No | `desc` | `desc` or `asc`. |
| `min_floor_sol` / `max_floor_sol` | number | No | — | Floor bounds in SOL. |
| `min_volume_sol` / `max_volume_sol` | number | No | — | Volume bounds in SOL for the selected window. |
| `listed_only` | boolean | No | `false` | Only collections with at least one listing. |
| `whitelisted` | string enum | No | all | `true` or `false`. |
| `compressed` | string enum | No | all | `compressed` or `uncompressed`. |
| `max_results` | integer | No | `50` | Maximum rows (`1`–`2000`). |

#### Notes on filters

- Prefer exact enum strings from the Apify input dropdowns (same labels as tensor.trade).
- `input_url` always wins over filters when provided.
- Homepage query params such as `q=mad`, `period=24h`, `sort=volume`, and `tab=new` are mapped automatically.
- A `/trade/madlads` URL returns that collection (one row, unless you raise `max_results` and Tensor returns more matches).

# Actor input Schema

## `input_url` (type: `string`):

Paste a Tensor homepage URL (e.g. https://www.tensor.trade/?q=mad\&period=24h\&sort=volume) or a collection URL like https://www.tensor.trade/trade/madlads. Overrides every filter when set.

## `search` (type: `string`):

Same idea as Filter by collection on tensor.trade. Ignored when input\_url is set.

## `tab` (type: `string`):

Same TRENDING / NEW MINTS tabs as the homepage table. Ignored when input\_url is set.

## `period` (type: `string`):

Same 1h / 24h / 7d chips as on tensor.trade. Changes volume and sales columns. Ignored when input\_url is set.

## `sort` (type: `string`):

Same idea as clicking a homepage column (volume, floor, sales, listed, market cap).

## `sort_direction` (type: `string`):

High to low or low to high.

## `min_floor_sol` (type: `number`):

Only collections with a buy-now floor at or above this SOL amount. Ignored when input\_url is set.

## `max_floor_sol` (type: `number`):

Only collections with a buy-now floor at or below this SOL amount. Ignored when input\_url is set.

## `min_volume_sol` (type: `number`):

Minimum volume in the selected time window, in SOL. Ignored when input\_url is set.

## `max_volume_sol` (type: `number`):

Maximum volume in the selected time window, in SOL. Ignored when input\_url is set.

## `listed_only` (type: `boolean`):

Only collections that currently have at least one listing. Ignored when input\_url is set.

## `whitelisted` (type: `string`):

Tensor collection whitelist. Ignored when input\_url is set.

## `compressed` (type: `string`):

cNFT vs regular collections. Ignored when input\_url is set.

## `max_results` (type: `integer`):

How many rows to return (1–2000). Tensor has about 38,000 collections.

## Actor input object example

```json
{
  "tab": "trending",
  "period": "24h",
  "sort": "volume",
  "sort_direction": "desc",
  "listed_only": false,
  "whitelisted": "",
  "compressed": "",
  "max_results": 50
}
```

# Actor output Schema

## `overview` (type: `string`):

Table view of scraped collections using the dataset 'overview' view.

## `results` (type: `string`):

All scraped collections from the default dataset without view transformation.

# 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 = {};

// Run the Actor and wait for it to finish
const run = await client.actor("dadhalfdev/tensor-scraper").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 = {}

# Run the Actor and wait for it to finish
run = client.actor("dadhalfdev/tensor-scraper").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 '{}' |
apify call dadhalfdev/tensor-scraper --silent --output-dataset

```

## MCP server setup

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

```

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/EYgBtZetFHq8KsR1x/builds/ZSikiZk1dTAO95Qrz/openapi.json
