# GMGN Trenches Scraper (`muhammetakkurtt/gmgn-trenches-scraper`) Actor

Powerful GMGN.ai Trenches scraper for Solana & BSC. Extracts real-time data for new, completing, and completed tokens. Use advanced filters for market cap, liquidity, holder counts, and social metrics to automate your crypto market analysis and find new opportunities.

- **URL**: https://apify.com/muhammetakkurtt/gmgn-trenches-scraper.md
- **Developed by:** [Muhammet Akkurt](https://apify.com/muhammetakkurtt) (community)
- **Categories:** Developer tools, Automation, Other
- **Stats:** 74 total users, 2 monthly users, 100.0% runs succeeded, 3 bookmarks
- **User rating**: 5.00 out of 5 stars

## Pricing

Pay per event

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/platform/actors/running/actors-in-store#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

![GMGN Trenches Scraper](https://i.postimg.cc/0NFQ8H74/gmgn-banner.png)

## GMGN Trenches Scraper

GMGN Trenches Scraper is a powerful web scraping tool developed for the Apify platform. This tool automatically extracts, analyzes, and allows you to monitor token data from the trenches section on the [GMGN.ai](https://gmgn.ai/) platform. Operating on Solana and BSC blockchain networks, it collects comprehensive information about tokens in different stages: newly created, near completion, and completed tokens.

### Why Use GMGN Trenches Scraper?

GMGN Trenches Scraper saves you hours by automating manual data collection processes and provides access to the most up-to-date token data from GMGN's trenches. This tool offers you the following advantages:

- **Time Saving**: Saves hours by automating manual data collection processes
- **Comprehensive Data**: Complete dataset including transaction counts, liquidity information, and risk metrics
- **Multi-Blockchain Support**: Works on Solana and BSC networks
- **Advanced Filtering**: Extensive filtering options with min/max values for various metrics

### Features

- Comprehensively extracts token data from GMGN.ai trenches section
- **Multiple Data Types**: Support for new creation, near completion, and completed tokens
- **Advanced Filtering**: Extensive filtering options including metric filters and social filters
- **Platform Filtering**: Filter by specific launchpad platforms on Solana and BSC networks
- **Range-based Filters**: Set minimum and maximum values for various metrics (liquidity, market cap, volume, holder count, etc.)
- **Social Media Filters**: Filter tokens based on social media presence and engagement
- **Multi-Network Support**: Works on Solana and BSC blockchain networks
- Stores collected data in the Apify data repository and provides the ability to export in various formats (JSON, CSV, Excel)
- Offers faster and more reliable results with proxy support

### Use Cases

- **New Token Tracking**: Monitor newly launched tokens in the crypto market
- **Early Discovery**: Early detection of rapidly popularizing new tokens
- **Risk Assessment**: Risk assessment of token profiles and creating investment strategies
- **Market Research**: Researching the performance of crypto assets across different blockchains
- **Data Science Projects**: Creating comprehensive statistical datasets for crypto markets

### Usage

1. Run this actor in the Apify console.
2. Provide the necessary inputs:
   - **chain**: Blockchain network to scan (sol, bsc)
   - **dataType**: Data type (new\_creation, near\_completion, completed)
   - **limit**: Result limit (default: 80, max: 10000)
   - **launchpadPlatforms**: Launchpad platforms for Solana network (Pump.fun, LetsBonk, Moonshot, Sugar, etc.)
   - **bscPlatforms**: DEX platforms for BSC network (FourMeme, Flap, Binance, PancakeSwap, Uniswap)
   - **bscQuoteTokens**: Quote tokens for BSC network (BNB, USD1, USDT, ASTER, CAKE, lisUSD)
   - **solQuoteTokens**: Quote tokens for Solana network (SOL, USDC, USD1)
   - **metricFilters**: Metric filters to apply to the results.
   - **Note on Filters**: The availability of metric filters depends on the selected Blockchain Network and Data Type:
     - **Solana (All Data Types)**: Supports 'Offchain', 'Onchain' for all data types. BSC-specific filters like 'Not Honeypot', 'Open Source', 'Owner Renounced' are not available.
     - **BSC (New Creation)**: Supports BSC-specific filters like 'Not Honeypot', 'Open Source', 'Owner Renounced'. Solana-specific filters like 'Offchain', 'Onchain' are not available.
     - **BSC (Completed/Near Completion)**: Limited filter set. BSC-specific filters like 'Not Honeypot', 'Open Source', 'Owner Renounced' are not available for these data types.
   - **socialFilters**: Social media filters (With at least 1 social, Only Tweet, Dex AD Paid, X, Telegram, Website, etc.)
   - **excludeVampedFilters**: Exclude tokens created with vamped tools (Exclude Uxento, Exclude RapidLaunch)
   - **Range Filters**: Min/max values for various metrics:
     - **Liquidity**: min\_pool\_size, max\_pool\_size
     - **Progress**: min\_completion\_rate, max\_completion\_rate
     - **Market Cap**: min\_market\_value, max\_market\_value
     - **Volume**: min\_trading\_volume, max\_trading\_volume
     - **Token Age**: min\_token\_age, max\_token\_age (in minutes)
     - **Holder Rates**: min\_whale\_percentage, max\_whale\_percentage
     - **Dev Holdings**: min\_dev\_allocation, max\_dev\_allocation
     - **Bot/Trading**: min\_auto\_traders, max\_auto\_traders
     - **Bot Trader Hold**: min\_bot\_trader\_hold, max\_bot\_trader\_hold
     - **Fresh Wallet**: min\_fresh\_wallet, max\_fresh\_wallet
     - **Image Duplication**: min\_image\_dup\_count, max\_image\_dup\_count
     - **Net Buy 1h**: min\_net\_buy\_1h, max\_net\_buy\_1h
     - **Start Live Time**: min\_start\_live\_time, max\_start\_live\_time
     - **Bundler Rate**: min\_batch\_percentage, max\_batch\_percentage (Solana only)
     - **Total Fees**: min\_network\_cost, max\_network\_cost (Solana only)
     - **And many more metric filters...**
     - **Note**: Some parameters are network-specific. BSC and Solana support different sets of min/max filters.
   - **proxyConfiguration**: Proxy configuration

#### Example Input

```json
{
  "chain": "sol",
  "dataType": "new_creation",
  "limit": 80,
  "launchpadPlatforms": [
    "Pump.fun",
    "letsbonk", 
    "moonshot_app",
    "bags",
    "sugar",
    "believe",
    "jup_studio",
    "gofundmeme",
    "boop"
  ],
  "metricFilters": [
    "creator_close",
    "token_burnt",
    "img_not_duplicate",
    "not_wash_trading",
    "offchain",
    "onchain"
  ],
  "socialFilters": [
    "has_social",
    "has_twitter",
    "has_telegram"
  ],
  "excludeVampedFilters": [
    "uxento",
    "rapid"
  ],
  "min_pool_size": 1000,
  "max_pool_size": 50000,
  "min_market_value": 5000,
  "max_market_value": 100000,
  "min_total_holders": 10,
  "max_total_holders": 1000,
  "min_whale_percentage": 0,
  "max_whale_percentage": 50,
  "min_bot_trader_hold": 3,
  "max_bot_trader_hold": 33,
  "min_fresh_wallet": 12,
  "max_fresh_wallet": 22,
  "min_image_dup_count": 2,
  "max_image_dup_count": 10,
  "min_net_buy_1h": 1000,
  "max_net_buy_1h": 50000,
  "min_start_live_time": 2,
  "max_start_live_time": 60,
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}
```

### Output

The collected data is saved to the Apify dataset. The output data includes the following fields:

#### Basic Token Information

- `address`: Token contract address
- `pool_address`: Liquidity pool contract address
- `quote_address`: Quote token address (usually SOL for Solana network)
- `symbol`: Token symbol
- `name`: Token name
- `logo`: URL to the token logo image
- `total_supply`: Total supply of the token
- `progress`: Completion progress (for pump.fun tokens)

#### Platform & Launch Information

- `launchpad`: Launchpad platform name
- `launchpad_platform`: Full launchpad platform name
- `exchange`: Exchange/platform identifier
- `created_timestamp`: Token creation timestamp
- `open_timestamp`: Trading opening timestamp

#### Market Data

- `usd_market_cap`: Market capitalization in USD
- `market_cap`: Market capitalization value
- `liquidity`: Total liquidity value in USD
- `volume_1h`: Trading volume in the last hour
- `swaps_1h`: Number of swaps in the last hour
- `buys_1h`: Number of buy transactions in the last hour
- `sells_1h`: Number of sell transactions in the last hour

#### Holder & Distribution Analysis

- `holder_count`: Total number of token holders
- `top_10_holder_rate`: Percentage owned by top 10 holders
- `creator_balance_rate`: Percentage of tokens held by creator
- `dev_team_hold_rate`: Percentage held by development team
- `suspected_insider_hold_rate`: Percentage held by suspected insiders
- `top70_sniper_hold_rate`: Percentage held by top 70 snipers

#### Creator & Development Information

- `creator`: Creator wallet address
- `creator_token_status`: Creator's token status
- `creator_created_count`: Total tokens created by this creator
- `creator_created_open_count`: Number of successful tokens by creator
- `creator_created_open_ratio`: Creator's success ratio
- `dev_token_burn_amount`: Amount of tokens burned by developer
- `dev_token_burn_ratio`: Ratio of tokens burned by developer

#### Risk & Security Metrics

- `rug_ratio`: Rug pull risk ratio
- `burn_status`: Token burn status
- `renounced_mint`: Whether minting capability is renounced
- `renounced_freeze_account`: Whether freeze account capability is renounced
- `is_wash_trading`: Whether wash trading is detected
- `entrapment_ratio`: Entrapment/phishing ratio
- `is_token_live`: Whether the token is currently active

#### Trading & Bot Analysis

- `bot_degen_count`: Number of bot transactions detected
- `sniper_count`: Number of sniper transactions
- `renowned_count`: Number of renowned/KOL holders
- `rat_trader_amount_rate`: Novice trader amount ratio
- `bundler_trader_amount_rate`: Bundler trader amount ratio

#### Social Media & Marketing

- `has_at_least_one_social`: Whether token has at least one social media link
- `twitter`: Twitter/X profile link
- `website`: Website URL
- `telegram`: Telegram group link
- `twitter_is_tweet`: Whether Twitter account has tweets
- `twitter_rename_count`: Number of Twitter profile name changes
- `twitter_create_token_count`: Number of tokens promoted on Twitter
- `twitter_del_post_token_count`: Number of deleted token posts

#### DEXScreener & Advertising

- `dexscr_ad`: Whether DEXScreener ads are paid
- `dexscr_update_link`: Whether DEXScreener link is updated
- `dexscr_trending_bar`: Whether DEXScreener trending bar is paid
- `dexscr_boost_fee`: DEXScreener boost fee amount

#### Additional Metrics

- `total_fee`: Total transaction fees
- `priority_fee`: Priority fee amount
- `tip_fee`: Tip fee amount
- `buy_tips`: Buy tip count
- `new_wallet_volume`: Volume from new wallets
- `fund_from`: Funding source
- `fund_from_ts`: Funding timestamp
- `cto_flag`: CTO (Community Take Over) flag
- `image_dup`: Image duplication score
- `status`: Token status code

### Example Output

```json
{
  "address": "GS3vxQ8mTNG19gFo6J2psSq2b1HiU1vgV3xi37YCsmzm",
  "pool_address": "B7fVvoZkLqUWqAggyCC9vbMKHLGkLNM2RzikVA9LFEXW",
  "quote_address": "So11111111111111111111111111111111111111112",
  "logo": "https://gmgn.ai/external-res/4f562da9c6cb6f579355a3269b058479.webp",
  "symbol": "BROS",
  "name": "Cock Bros",
  "launchpad": "Pump.fun",
  "launchpad_platform": "Pump.fun",
  "exchange": "pump_amm",
  "creator_token_status": "creator_close",
  "dev_token_burn_amount": 0,
  "dev_token_burn_ratio": 0,
  "progress": 0,
  "total_supply": 999999999,
  "usd_market_cap": 86665.86591333413,
  "market_cap": 86665.86591333413,
  "swaps_1h": 3168,
  "volume_1h": 204360.5889447,
  "top_10_holder_rate": 0.186763,
  "creator_balance_rate": 0,
  "rat_trader_amount_rate": 0,
  "bundler_trader_amount_rate": 0.0088119308,
  "renowned_count": 1,
  "sniper_count": 6,
  "bot_degen_count": 63,
  "holder_count": 703,
  "liquidity": 33409.67152812164,
  "creator": "3Mzwdx1UFem1KFBRJpymBoTYQ4GHE9amoBHyzMzdoyL4",
  "creator_created_open_count": 1,
  "creator_created_open_ratio": 1,
  "creator_created_count": 1,
  "fund_from": "",
  "fund_from_ts": 1754772341,
  "rug_ratio": 0,
  "buys_1h": 1924,
  "sells_1h": 1244,
  "created_timestamp": 1754772700,
  "open_timestamp": 1754774756,
  "buy_tips": 0,
  "total_fee": 12.345750279166666,
  "priority_fee": 2.1722533491666667,
  "tip_fee": 3.120482001,
  "new_wallet_volume": 0,
  "entrapment_ratio": 0,
  "is_wash_trading": false,
  "renounced_mint": false,
  "renounced_freeze_account": false,
  "burn_status": "",
  "dev_team_hold_rate": 0,
  "suspected_insider_hold_rate": 0,
  "is_token_live": false,
  "top70_sniper_hold_rate": 0,
  "has_at_least_one_social": true,
  "twitter_is_tweet": false,
  "twitter": "i/communities/1954259026394411347",
  "website": "",
  "telegram": "",
  "dexscr_ad": false,
  "dexscr_update_link": false,
  "dexscr_trending_bar": false,
  "dexscr_boost_fee": 0,
  "cto_flag": false,
  "twitter_rename_count": 0,
  "twitter_del_post_token_count": 0,
  "twitter_create_token_count": 2,
  "image_dup": 0,
  "status": 1
}
```

This example output shows comprehensive data for a single token. The actual output will be a list of similar objects for all processed tokens.

### Notes

- The collected data is stored in Apify's default data store.

# Actor input Schema

## `chain` (type: `string`):

Blockchain network to scan

## `dataType` (type: `string`):

Type of data to retrieve

## `limit` (type: `integer`):

Maximum number of new pairs to retrieve

## `launchpadPlatforms` (type: `array`):

Select launchpad platforms to filter by. Note: 'pool\_pump\_amm', 'pool\_ray', 'pool\_meteora', and 'pool\_orca' are only available for the New Creation data type.

## `bscPlatforms` (type: `array`):

Select DEX platforms if you have chosen the Binance Smart Chain (BSC) network. Note: PancakeSwap and Uniswap are only available for New Creation data type.

## `bscQuoteTokens` (type: `array`):

Select quote tokens to filter by if you have chosen the Binance Smart Chain (BSC) network.

## `solQuoteTokens` (type: `array`):

Select quote tokens to filter by if you have chosen the Solana network.

## `metricFilters` (type: `array`):

Filter availability depends on the selected Blockchain Network and Data Type.

- Solana (All Data Types): Supports most filters including 'Offchain', 'Onchain'. Excludes 'lisUSD Pair', 'Not Honeypot', 'Open Source', 'Owner Renounced'. (New Creation also supports 'NoMint', 'Blacklist', 'LP Burnt')
- BSC (New Creation): Supports BSC-specific filters including 'Not Honeypot', 'Open Source', 'Owner Renounced'. Excludes 'NoMint', 'Blacklist', 'LP Burnt', 'Exclude Wash Trading', 'Only Live', 'Only Ended', 'Offchain', 'Onchain'.
- BSC (Completed / Near Completion): Limited set. Excludes 'NoMint', 'Blacklist', 'LP Burnt', 'Exclude Wash Trading', 'Only Live', 'Only Ended', 'Offchain', 'Onchain', 'Not Honeypot', 'Open Source', 'Owner Renounced'.

## `socialFilters` (type: `array`):

Social media filters to apply (select multiple)

## `excludeVampedFilters` (type: `array`):

Exclude tokens created with vamped tools

## `min_pool_size` (type: `integer`):

Minimum liquidity value in USD.

## `max_pool_size` (type: `integer`):

Maximum liquidity value in USD.

## `min_completion_rate` (type: `integer`):

Minimum progress value.

## `max_completion_rate` (type: `integer`):

Maximum progress value.

## `min_whale_percentage` (type: `integer`):

Minimum top 10 holding rate.

## `max_whale_percentage` (type: `integer`):

Maximum top 10 holding rate.

## `min_dev_allocation` (type: `integer`):

Minimum dev holding rate.

## `max_dev_allocation` (type: `integer`):

Maximum dev holding rate.

## `min_batch_percentage` (type: `integer`):

Minimum bundler rate. Only available for Solana network.

## `max_batch_percentage` (type: `integer`):

Maximum bundler rate. Only available for Solana network.

## `min_trap_ratio` (type: `integer`):

Minimum entrapment ratio.

## `max_trap_ratio` (type: `integer`):

Maximum entrapment ratio.

## `min_early_buyer_rate` (type: `integer`):

Minimum sniper hold rate.

## `max_early_buyer_rate` (type: `integer`):

Maximum sniper hold rate.

## `min_scam_risk` (type: `integer`):

Minimum rug ratio.

## `max_scam_risk` (type: `integer`):

Maximum rug ratio.

## `min_network_cost` (type: `integer`):

Minimum total fees in SOL. Only available for Solana network.

## `max_network_cost` (type: `integer`):

Maximum total fees in SOL. Only available for Solana network.

## `min_influencer_count` (type: `integer`):

Minimum number of renowned users (KOLs).

## `max_influencer_count` (type: `integer`):

Maximum number of renowned users (KOLs).

## `min_dev_success_count` (type: `integer`):

Minimum number of tokens migrated by creator.

## `max_dev_success_count` (type: `integer`):

Maximum number of tokens migrated by creator.

## `min_dev_success_ratio` (type: `integer`):

Minimum creator created open ratio.

## `max_dev_success_ratio` (type: `integer`):

Maximum creator created open ratio.

## `min_total_holders` (type: `integer`):

Minimum number of token holders.

## `max_total_holders` (type: `integer`):

Maximum number of token holders.

## `min_auto_traders` (type: `integer`):

Minimum number of bot degens.

## `max_auto_traders` (type: `integer`):

Maximum number of bot degens.

## `min_bot_trader_hold` (type: `integer`):

Minimum bot trader hold rate.

## `max_bot_trader_hold` (type: `integer`):

Maximum bot trader hold rate.

## `min_fresh_wallet` (type: `integer`):

Minimum fresh wallet rate.

## `max_fresh_wallet` (type: `integer`):

Maximum fresh wallet rate.

## `min_image_dup_count` (type: `integer`):

Minimum image duplication count.

## `max_image_dup_count` (type: `integer`):

Maximum image duplication count.

## `min_net_buy_1h` (type: `integer`):

Minimum net buy volume in 1 hour.

## `max_net_buy_1h` (type: `integer`):

Maximum net buy volume in 1 hour.

## `min_start_live_time` (type: `integer`):

Minimum start live time in minutes.

## `max_start_live_time` (type: `integer`):

Maximum start live time in minutes.

## `min_privileged_ratio` (type: `integer`):

Minimum insider ratio.

## `max_privileged_ratio` (type: `integer`):

Maximum insider ratio.

## `min_profile_changes` (type: `integer`):

Minimum number of Twitter renames.

## `max_profile_changes` (type: `integer`):

Maximum number of Twitter renames.

## `min_dev_launches` (type: `integer`):

Minimum number of tokens launched by creator.

## `max_dev_launches` (type: `integer`):

Maximum number of tokens launched by creator.

## `min_transactions` (type: `integer`):

Minimum number of swaps in 1 hour.

## `max_transactions` (type: `integer`):

Maximum number of swaps in 1 hour.

## `min_hourly_buys` (type: `integer`):

Minimum number of buys in 1 hour.

## `max_hourly_buys` (type: `integer`):

Maximum number of buys in 1 hour.

## `min_hourly_sells` (type: `integer`):

Minimum number of sells in 1 hour.

## `max_hourly_sells` (type: `integer`):

Maximum number of sells in 1 hour.

## `min_market_value` (type: `integer`):

Minimum market capitalization in USD.

## `max_market_value` (type: `integer`):

Maximum market capitalization in USD.

## `min_trading_volume` (type: `integer`):

Minimum trading volume in USD.

## `max_trading_volume` (type: `integer`):

Maximum trading volume in USD.

## `min_token_age` (type: `integer`):

Minimum token age in minutes

## `max_token_age` (type: `integer`):

Maximum token age in minutes

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

Using a proxy is recommended for faster and more reliable results

## Actor input object example

```json
{
  "chain": "sol",
  "dataType": "new_creation",
  "limit": 80,
  "launchpadPlatforms": [
    "Pump.fun",
    "letsbonk",
    "bags",
    "moonshot_app",
    "heaven",
    "sugar",
    "token_mill",
    "believe",
    "jup_studio",
    "Moonshot",
    "boop",
    "ray_launchpad",
    "meteora_virtual_curve",
    "xstocks"
  ],
  "bscPlatforms": [
    "fourmeme"
  ],
  "bscQuoteTokens": [
    "bsc_bnb",
    "bsc_usd1",
    "bsc_usdt",
    "bsc_aster",
    "bsc_cake",
    "bsc_lisusd"
  ],
  "solQuoteTokens": [
    "sol_sol",
    "sol_usdc",
    "sol_usd1"
  ],
  "metricFilters": [],
  "socialFilters": [],
  "excludeVampedFilters": [
    "uxento",
    "rapid"
  ],
  "proxyConfiguration": {
    "useApifyProxy": true,
    "apifyProxyGroups": []
  }
}
```

# 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("muhammetakkurtt/gmgn-trenches-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("muhammetakkurtt/gmgn-trenches-scraper").call(run_input=run_input)

# Fetch and print Actor results from the run's dataset (if there are any)
print("💾 Check your data here: https://console.apify.com/storage/datasets/" + run["defaultDatasetId"])
for item in client.dataset(run["defaultDatasetId"]).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 muhammetakkurtt/gmgn-trenches-scraper --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "command": "npx",
            "args": [
                "mcp-remote",
                "https://mcp.apify.com/?tools=muhammetakkurtt/gmgn-trenches-scraper",
                "--header",
                "Authorization: Bearer <YOUR_API_TOKEN>"
            ]
        }
    }
}

```

## OpenAPI specification

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