endpoints / trade
Trade Quote API
What a buy or sell of this coin gets you right now: expected amount, price impact, route and fees.
POST/v1/memecoin/quote
- Price
- $0.002 / call
- Free
- first 100 calls a day
- Freshness
- live, every call
- Auth
- Bearer key
Try it
A real call, charged like any other. Edit anything and run it.
Response
{
"amount": 0.1,
"mint": "8o9YbJHdhhpJgyPoWDRZBqvJkKCiKZYuVkW6Qpccpump",
"side": "buy",
"amount_in": 0.1,
"in_unit": "SOL",
"expected_out": 506340.116307,
"out_unit": "tokens",
"min_out": 481023.110492,
"price_impact_pct": 0,
"slippage_bps": 500,
"route": [
"Pump.fun Amm"
],
"fees": {
"route_fee_sol": 0,
"network_fee_sol": 0.000005,
"crypto2api_fee_usd": 0
},
"value_usd": 7.04320234448262,
"price_usd": 0.000013910022369652108,
"source": "Jupiter's public quote API, which routes pump.fun curves and PumpSwap pools directly."
}What the example answered when this page was built, shortened. Run it for a live answer.
Copy it
Runs as-is with your key in place of c2a_your_key. The snippets follow the inputs above.
curl https://api.crypto2api.com/v1/memecoin/quote \
-H "Authorization: Bearer c2a_your_key" \
-H "Content-Type: application/json" \
-d '{
"mint": "8o9YbJHdhhpJgyPoWDRZBqvJkKCiKZYuVkW6Qpccpump",
"amount": 0.1,
"side": "buy",
"slippage_bps": 500
}'Parameters
| Name | In | Type | Required | What it is | Example |
|---|---|---|---|---|---|
| mint | body | string | yes | The coin's mint address. | 8o9YbJHdhhpJgyPoWDRZBqvJkKCiKZYuVkW6Qpccpump |
| amount | body | number | yes | SOL to spend for a buy; tokens to sell for a sell. | 0.1 |
| side | body | string | default buy | "buy" (spend SOL) or "sell" (sell tokens). | buy |
| slippage_bps | body | number | default 500 | Most the price may move before the swap fails, in basis points (100 = 1 %). | 500 |
The answer
Always { data, cost_usd, balance_usd, cached, request_id }. cost_usd is what this call was charged (0 while you are inside the free 100); cached: true means the answer was shared with another caller. A fact the API could not read is left out or named, never estimated.