# Top Crypto Data Scraper (`clothefobia/top-crypto-data-scraper`) Actor

Top Crypto Data Scraper : Scrap all Top Crypto Currency Data with current price, Volume and other changes level.

- **URL**: https://apify.com/clothefobia/top-crypto-data-scraper.md
- **Developed by:** [clothe fobia](https://apify.com/clothefobia) (community)
- **Categories:** Automation, Lead generation, Other
- **Stats:** 1 total users, 0 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

from $300.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

## Top Crypto Data Scraper

**clothefobia/top-crypto-data-scraper**

A simple scraper Actor for collecting data about the top-ranked cryptocurrencies: current price, volume, market cap, and other key metrics — all in one go.

***

### 🚀 What the Actor Does

This Actor scrapes a “top cryptocurrencies” list from a major coin-marketplace, and for each coin it collects:

- Rank
- Logo image link
- Name
- Symbol
- Price
- 1-hour price change
- 24-hour price change
- 7-day price change
- Market cap
- 24-hour volume
- Circulating supply
- 7-day chart image link

The output is stored in an Apify dataset, making it easy to consume via API or export (JSON/CSV) for analysis, dashboards, or widgets.

***

### 🎯 Use Cases

- Display a “Top Cryptocurrencies” widget on a website/dashboard
- Periodic data collection for market-trend analysis
- Use as a data feed for crypto-tracking apps, bots, or alerts
- Integration with BI tools, spreadsheets, or data pipelines

***

### 🧰 How to Use It

1. On the Apify console, launch the Actor by clicking **Start** — it will fetch the latest top-crypto data automatically.
2. Wait for the run to complete.
3. Navigate to the Actor’s default dataset to view or export your results.

Optionally, you can schedule the Actor to run periodically (e.g. hourly, daily) so you always have up-to-date data.

***

### 📄 Sample Output (JSON)

```json
[
  {
    "rank": 1,
    "logo": "https://.../bitcoin-logo.png",
    "name": "Bitcoin",
    "symbol": "BTC",
    "price": "30000.00",
    "change_1h": "-0.2%",
    "change_24h": "+1.5%",
    "change_7d": "+3.8%",
    "market_cap": "600,000,000,000",
    "volume_24h": "35,000,000,000",
    "circulating_supply": "19,000,000",
    "chart_7d": "https://.../bitcoin-7d-chart.png"
  },
  {
    "...": "..."
  }
  // more coins …
]
```

*(Note: This is a representative example; actual field formats may vary.)*

***

### ❗ Notes & Considerations

- The Actor depends on the target website’s structure. If the website changes layout, scraping may break — in that case you’ll need to update the selector logic.
- Data reflects a snapshot in time (when run). For time-series or historical data you may need to run the Actor on a schedule and store results.
- Respect the target site’s terms of service and rate limits. Use responsibly — especially if scheduling frequent runs.

***

### 🙏 Contributing & Support

If you find issues or want to request features (e.g. include more data fields, alternative coin-lists, filtering, CSV export enhancements, scheduling wrappers), feel free to open an issue or submit a pull request.

# Actor input Schema

## `max_pages` (type: `integer`):

Number of Pages to scrape

## `proxySettings` (type: `object`):

Select proxies to be used by your crawler.

## Actor input object example

```json
{
  "max_pages": 1,
  "proxySettings": {
    "useApifyProxy": false
  }
}
```

# Actor output Schema

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

No description

# 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 = {
    "proxySettings": {
        "useApifyProxy": false
    }
};

// Run the Actor and wait for it to finish
const run = await client.actor("clothefobia/top-crypto-data-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 = { "proxySettings": { "useApifyProxy": False } }

# Run the Actor and wait for it to finish
run = client.actor("clothefobia/top-crypto-data-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 '{
  "proxySettings": {
    "useApifyProxy": false
  }
}' |
apify call clothefobia/top-crypto-data-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,clothefobia/top-crypto-data-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/M7RL8azH4Rj8Hp9db/builds/hAzSuJx7J5JZVof1x/openapi.json
