# Token Social & Liquidity Snapshot Enricher (`afkdigital/new-token-social-liquidity-enricher`) Actor

Process your own Solana and Base token/pool snapshots: merge metadata and social links, deduplicate pools, flag stale timestamps and export structured data. Offline; no API keys or live data collection.

- **URL**: https://apify.com/afkdigital/new-token-social-liquidity-enricher.md
- **Developed by:** [AFK Digital](https://apify.com/afkdigital) (community)
- **Features:** Limited permissions
- **Stats:** 2 total users, 1 monthly users, 100.0% runs succeeded, 0 bookmarks
- **User rating**: No ratings yet

## Pricing

$5.00 / 1,000 token snapshot enrichments

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

## Token Social & Liquidity Snapshot Enricher

**Bring your own data. Offline processing for Solana and Base token/pool snapshots.**

AFK Digital's NEWAPI119 merges token metadata and social links with your supplied pool records, deduplicates pools, preserves timestamps and produces automation-ready JSON/CSV datasets. It does not discover tokens or fetch current prices, liquidity, metadata, social accounts or websites.

### What this Actor does

- Matches tokens by chain and address, never by symbol. Base addresses are canonicalized to lowercase; Solana case is preserved.
- Merges supplied name, symbol, decimals, website and social URLs.
- Deduplicates chain/pool copies; when copies conflict, uses the newest supplied providerTimestamp, then fetchedAt.
- Selects up to maxPoolsPerToken pools by reported liquidity, with no safety inference.
- Reports supplied USD price, pool liquidity and pool volume windows together with source and time limitations.
- Preserves plausible firstObservedAt from a previous snapshot without treating it as token creation.
- Flags stale, missing or future timestamps. Leaves unverified creation time null.
- Produces diagnostic rows for invalid addresses or absent pools without token event charges.

### What you provide

tokens: array of objects with chain (base or solana), tokenAddress, and optional name, symbol, decimals (0..255), websiteUrl and socialUrls.
poolSnapshots: array of objects with chain, tokenAddress, poolAddress, quoteAsset (address + optional symbol), liquidityUsd, priceUsd, volumeWindow (m5/h1/h6/h24 with USD values), providerTimestamp, fetchedAt, poolCreatedAt, provider and sourceUrl.
Decimals, metadata, provider names and timestamps remain customer assertions, not independently verified chain facts.

See examples/snapshot-input.json for the complete input format. authorizedProviderSnapshot is a compatibility adapter for customer-supplied pair exports with chainId, pairAddress, baseToken, quoteToken, priceUsd, liquidity, volume and optional info.websites/info.socials. No upstream provider is called.
optionalPoolAddresses filters supplied records; it does not fetch additional pools.

### Limits and demonstration

Default maxTokens: 5. Maximum: 50 input token objects.
Default maxPoolsPerToken: 3. Maximum: 10 returned pools per token.
Combined poolSnapshots + authorizedProviderSnapshot limit: 500 records.
optionalPreviousSnapshot: 500 rows. optionalPoolAddresses: 20 objects.
An empty/default-only input runs the clearly labeled self-authored synthetic demo (2 token identities, 4 synthetic pools). Demo addresses and values are illustrative and must not be treated as live observations.
When submitting custom tokens, also submit the corresponding records; addresses alone cannot produce live pool data.
checkWebsiteReachability must be false. True fails explicitly because offline mode makes no website calls.
Default cloud timeout is 240 seconds; the normal offline demo finishes in seconds.

### Output and timestamp meaning

One row per unique requested token/pool, plus diagnostic rows where applicable. Output includes chain, tokenAddress, name, symbol, decimals, firstObservedAt, verifiedCreationTime, metadataSource, websiteUrl, socialUrls, websiteReachability, poolAddress, quoteAsset, liquidityUsd, priceUsd, volumeWindow, poolCreatedAt, providerTimestamp, fetchedAt, processedAt, sourceUrl, provider, status and limitations.

- processedAt is this Actor's processing time.
- fetchedAt is the original retrieval time you supplied, or null. Processing time is never relabeled as fetch time.
- providerTimestamp is the supplied market timestamp, or null. Dates older than 5 minutes are flagged stale; missing dates leave freshness unknown. This does not independently verify a provider clock.
- firstObservedAt is this Actor's first observation or a plausible earlier matching snapshot value; never token creation.
- verifiedCreationTime is always null in this offline release.
- poolCreatedAt is only supplied pool creation, not token creation.
- liquidityUsd is supplied total pool liquidity; priceUsd is the supplied requested token price. volumeWindow is supplied pool USD volume by named window.
- sourceUrl and provider are customer-supplied provenance labels, not proof of origin.
- websiteReachability.status and socialActivity remain unknown; socialOfficialStatus remains unverified.
  Missing/invalid numbers remain null. No social account is assumed active or official. No website reachability or trust claim is made.

### No data-provider subscription or API key

The runtime has no RPC, website, token-discovery or external data-provider client. It sends no token/pool inputs to those services, requires no provider API keys, and contains no provider data feed for resale. Apify's normal storage/billing API calls remain necessary for Actor operation.
You must supply data you own or have the right to process and export. This software does not grant rights to third-party datasets you upload. No license purchase or provider contact is performed by the Actor.
Text and URLs are treated only as data; no instructions, HTML or scripts in them are executed.

### Pricing

$0.005 per successfully enriched unique chain + token address with at least one matching supplied pool ($5 per 1,000 tokens). Includes up to 10 pools per token; default 3.
No separate per-pool, per-row or startup event. Invalid addresses, duplicate token identities, missing pools and diagnostics have no token event.
The demo processes two token events when monetized. Budget is checked before result delivery; stored delivery/charge-intent state prevents duplicate billing on a restarted delivery.
Apify platform usage is included in the event price for this standard Actor. A run's maximum charge can be set in Console or via the API.

### n8n and Make

examples/n8n-workflow.json: import into n8n, set your Apify token in the environment/secure credentials, then provide your own token and pool records. No provider credential is needed.
examples/make-example.json: HTTP-module configuration recipe, not an importable Make blueprint. POST JSON input to the Actor synchronous Dataset endpoint; use your Apify token as a secure Bearer connection and iterate the returned rows.
Pass the prior SNAPSHOT output as optionalPreviousSnapshot to keep first-observed continuity.

No trading, wallet connection, signing, investment recommendations, safe-token labels or rug-pull guarantees.

# Actor input Schema

## `tokens` (type: `array`):

chain + tokenAddress identities and optional name, symbol, decimals, websiteUrl, socialUrls. No live lookup.

## `poolSnapshots` (type: `array`):

Supply up to 500 pool objects: chain, tokenAddress, poolAddress, quoteAsset, liquidityUsd, priceUsd, volumeWindow, providerTimestamp, fetchedAt, poolCreatedAt, provider, sourceUrl. No provider API is called.

## `authorizedProviderSnapshot` (type: `array`):

Compatibility format for your own permitted exported pair records. Max 500 combined with poolSnapshots. Does not authorize reuse of somebody else’s data. No live access.

## `maxTokens` (type: `integer`):

Process this many input token objects; duplicate chain/address identities are merged once.

## `maxPoolsPerToken` (type: `integer`):

Default 3, hard cap 10. One token event covers its selected pools.

## `optionalPoolAddresses` (type: `array`):

Filter supplied pool records by chain + poolAddress; no new pools are fetched. Up to 20 filter objects.

## `optionalPreviousSnapshot` (type: `array`):

Retain plausible firstObservedAt for matching chain/address. Does not establish token creation. Up to 500 rows.

## `checkWebsiteReachability` (type: `boolean`):

Must remain false. This Actor makes no website requests. True is rejected explicitly.

## Actor input object example

```json
{
  "tokens": [
    {
      "chain": "base",
      "tokenAddress": "0x4200000000000000000000000000000000000006",
      "name": "Synthetic Base Example",
      "symbol": "DEMO",
      "decimals": 18,
      "websiteUrl": "https://example.com",
      "socialUrls": [
        "https://example.com/community"
      ]
    },
    {
      "chain": "solana",
      "tokenAddress": "So11111111111111111111111111111111111111112",
      "name": "Synthetic Solana Example",
      "symbol": "DEMO",
      "decimals": 9
    }
  ],
  "maxTokens": 5,
  "maxPoolsPerToken": 3,
  "checkWebsiteReachability": false
}
```

# Actor output Schema

## `observations` (type: `string`):

No description

## `summary` (type: `string`):

No description

## `snapshot` (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 = {
    "tokens": [
        {
            "chain": "base",
            "tokenAddress": "0x4200000000000000000000000000000000000006",
            "name": "Synthetic Base Example",
            "symbol": "DEMO",
            "decimals": 18,
            "websiteUrl": "https://example.com",
            "socialUrls": [
                "https://example.com/community"
            ]
        },
        {
            "chain": "solana",
            "tokenAddress": "So11111111111111111111111111111111111111112",
            "name": "Synthetic Solana Example",
            "symbol": "DEMO",
            "decimals": 9
        }
    ]
};

// Run the Actor and wait for it to finish
const run = await client.actor("afkdigital/new-token-social-liquidity-enricher").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 = { "tokens": [
        {
            "chain": "base",
            "tokenAddress": "0x4200000000000000000000000000000000000006",
            "name": "Synthetic Base Example",
            "symbol": "DEMO",
            "decimals": 18,
            "websiteUrl": "https://example.com",
            "socialUrls": ["https://example.com/community"],
        },
        {
            "chain": "solana",
            "tokenAddress": "So11111111111111111111111111111111111111112",
            "name": "Synthetic Solana Example",
            "symbol": "DEMO",
            "decimals": 9,
        },
    ] }

# Run the Actor and wait for it to finish
run = client.actor("afkdigital/new-token-social-liquidity-enricher").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 '{
  "tokens": [
    {
      "chain": "base",
      "tokenAddress": "0x4200000000000000000000000000000000000006",
      "name": "Synthetic Base Example",
      "symbol": "DEMO",
      "decimals": 18,
      "websiteUrl": "https://example.com",
      "socialUrls": [
        "https://example.com/community"
      ]
    },
    {
      "chain": "solana",
      "tokenAddress": "So11111111111111111111111111111111111111112",
      "name": "Synthetic Solana Example",
      "symbol": "DEMO",
      "decimals": 9
    }
  ]
}' |
apify call afkdigital/new-token-social-liquidity-enricher --silent --output-dataset

```

## MCP server setup

```json
{
    "mcpServers": {
        "apify": {
            "type": "http",
            "url": "https://mcp.apify.com/?tools=fetch-actor-details,afkdigital/new-token-social-liquidity-enricher"
        }
    }
}
```

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/RGm95XTFxzInrLGBO/builds/mIyEbAPPEKES0NPuQ/openapi.json
