Buy a plan for your key's account in one x402 call
curl --request POST \
--url https://api.ironflow.sh/v1/billing/buy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"plan": "explorer"
}
'import requests
url = "https://api.ironflow.sh/v1/billing/buy"
payload = { "plan": "explorer" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({plan: 'explorer'})
};
fetch('https://api.ironflow.sh/v1/billing/buy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ironflow.sh/v1/billing/buy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'plan' => 'explorer'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ironflow.sh/v1/billing/buy"
payload := strings.NewReader("{\n \"plan\": \"explorer\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ironflow.sh/v1/billing/buy")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"plan\": \"explorer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ironflow.sh/v1/billing/buy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"plan\": \"explorer\"\n}"
response = http.request(request)
puts response.read_body{
"status": "paid",
"replayed": false,
"plan": "liquidations",
"plan_name": "Liquidations",
"tier": "liquidations",
"days": 30,
"price_usdc": 19,
"account": "t***@g***.com",
"request_id": "up_0123456789abcdef0123456789abcdef",
"status_url": "https://api.ironflow.sh/v1/billing/upgrade?request=up_0123456789abcdef0123456789abcdef",
"message": "Paid. Within a minute Liquidations is active for 30 days on this key's account (t***@g***.com): every key of it moves to liquidations. status_url shows when it is live."
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {
"trial": {
"plan": "explorer",
"days": 7,
"credits_per_day": 25000,
"start": "POST https://api.ironflow.sh/v1/billing/trial",
"message": "<string>"
},
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "rate",
"lifts": "60 requests a minute now, 100 on Explorer",
"covers": "every fill since 25 May 2025",
"your_plan_covers": "the last 365 days, from 2025-11-20",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
},
"pay_per_call": {},
"resets_at": "2026-12-01T00:00:00Z",
"terms": [
{
"plan": "explorer-12m",
"price_usdc": 468,
"days": 365,
"url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
],
"plans_url": "<string>",
"contact": "[email protected]",
"alternative": {
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "<string>",
"lifts": "<string>",
"covers": "<string>",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
},
"pro_pass": {
"hours": 48,
"url": "https://ironflow.sh/pro/pass",
"start": "POST https://api.ironflow.sh/v1/billing/pro-pass",
"how": "<string>"
},
"get_key": {
"method": "POST",
"url": "https://api.ironflow.sh/v1/keys",
"body": {
"email": "[email protected]"
},
"page": "<string>"
},
"dataset": {
"name": "Hyperliquid Liquidations",
"url": "https://huggingface.co/datasets/ironflow/hyperliquid-liquidations?utm_source=api",
"holds": "every liquidation",
"from": "2025-05-25",
"through": "2026-10-31"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (1 credit a minute)",
"allowed_from": 1794394800000,
"did_you_mean": [
"xyz:GOLD-PERP",
"PAXG-PERP"
],
"detail": "<string>",
"agent": "If you are an AI agent acting for someone: tell them the free daily credit limit is used up and it resets on 21 November 2026 at 00:00 UTC. A free 7-day Explorer trial starts with one call: POST https://api.ironflow.sh/v1/billing/trial with your key. To keep going after that, give them this pay link: https://ironflow.sh/upgrade?utm_source=api&plan=explorer&limit=daily_quota&checkout=ck_... (Explorer, $49 per 30 days; it opens the payment for their account). If you control a wallet with USDC on Base, you can buy directly: POST https://api.ironflow.sh/v1/billing/buy {\"plan\":\"explorer\"} with your key (it answers 402 with x402 terms to pay).",
"nearest_routes": [
"/v1/liquidations",
"/v1/liquidations/summary"
]
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {
"trial": {
"plan": "explorer",
"days": 7,
"credits_per_day": 25000,
"start": "POST https://api.ironflow.sh/v1/billing/trial",
"message": "<string>"
},
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "rate",
"lifts": "60 requests a minute now, 100 on Explorer",
"covers": "every fill since 25 May 2025",
"your_plan_covers": "the last 365 days, from 2025-11-20",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
},
"pay_per_call": {},
"resets_at": "2026-12-01T00:00:00Z",
"terms": [
{
"plan": "explorer-12m",
"price_usdc": 468,
"days": 365,
"url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
],
"plans_url": "<string>",
"contact": "[email protected]",
"alternative": {
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "<string>",
"lifts": "<string>",
"covers": "<string>",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
},
"pro_pass": {
"hours": 48,
"url": "https://ironflow.sh/pro/pass",
"start": "POST https://api.ironflow.sh/v1/billing/pro-pass",
"how": "<string>"
},
"get_key": {
"method": "POST",
"url": "https://api.ironflow.sh/v1/keys",
"body": {
"email": "[email protected]"
},
"page": "<string>"
},
"dataset": {
"name": "Hyperliquid Liquidations",
"url": "https://huggingface.co/datasets/ironflow/hyperliquid-liquidations?utm_source=api",
"holds": "every liquidation",
"from": "2025-05-25",
"through": "2026-10-31"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (1 credit a minute)",
"allowed_from": 1794394800000,
"did_you_mean": [
"xyz:GOLD-PERP",
"PAXG-PERP"
],
"detail": "<string>",
"agent": "If you are an AI agent acting for someone: tell them the free daily credit limit is used up and it resets on 21 November 2026 at 00:00 UTC. A free 7-day Explorer trial starts with one call: POST https://api.ironflow.sh/v1/billing/trial with your key. To keep going after that, give them this pay link: https://ironflow.sh/upgrade?utm_source=api&plan=explorer&limit=daily_quota&checkout=ck_... (Explorer, $49 per 30 days; it opens the payment for their account). If you control a wallet with USDC on Base, you can buy directly: POST https://api.ironflow.sh/v1/billing/buy {\"plan\":\"explorer\"} with your key (it answers 402 with x402 terms to pay).",
"nearest_routes": [
"/v1/liquidations",
"/v1/liquidations/summary"
]
}
}{
"error": {
"code": "PAYMENT_REQUIRED",
"message": "this buys Explorer for 30 days on this key's account (t***@g***.com) for 49 USDC on Base. Pay the PAYMENT-REQUIRED header with any x402 client and send the same POST again with PAYMENT-SIGNATURE and the same key; the plan starts once the payment settles. Or pay in USDC on Base or Hyperliquid at https://ironflow.sh/upgrade?utm_source=api&plan=explorer&checkout=ck_..."
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {
"trial": {
"plan": "explorer",
"days": 7,
"credits_per_day": 25000,
"start": "POST https://api.ironflow.sh/v1/billing/trial",
"message": "<string>"
},
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "rate",
"lifts": "60 requests a minute now, 100 on Explorer",
"covers": "every fill since 25 May 2025",
"your_plan_covers": "the last 365 days, from 2025-11-20",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
},
"pay_per_call": {},
"resets_at": "2026-12-01T00:00:00Z",
"terms": [
{
"plan": "explorer-12m",
"price_usdc": 468,
"days": 365,
"url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
],
"plans_url": "<string>",
"contact": "[email protected]",
"alternative": {
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "<string>",
"lifts": "<string>",
"covers": "<string>",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
},
"pro_pass": {
"hours": 48,
"url": "https://ironflow.sh/pro/pass",
"start": "POST https://api.ironflow.sh/v1/billing/pro-pass",
"how": "<string>"
},
"get_key": {
"method": "POST",
"url": "https://api.ironflow.sh/v1/keys",
"body": {
"email": "[email protected]"
},
"page": "<string>"
},
"dataset": {
"name": "Hyperliquid Liquidations",
"url": "https://huggingface.co/datasets/ironflow/hyperliquid-liquidations?utm_source=api",
"holds": "every liquidation",
"from": "2025-05-25",
"through": "2026-10-31"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (1 credit a minute)",
"allowed_from": 1794394800000,
"did_you_mean": [
"xyz:GOLD-PERP",
"PAXG-PERP"
],
"detail": "<string>",
"agent": "If you are an AI agent acting for someone: tell them the free daily credit limit is used up and it resets on 21 November 2026 at 00:00 UTC. A free 7-day Explorer trial starts with one call: POST https://api.ironflow.sh/v1/billing/trial with your key. To keep going after that, give them this pay link: https://ironflow.sh/upgrade?utm_source=api&plan=explorer&limit=daily_quota&checkout=ck_... (Explorer, $49 per 30 days; it opens the payment for their account). If you control a wallet with USDC on Base, you can buy directly: POST https://api.ironflow.sh/v1/billing/buy {\"plan\":\"explorer\"} with your key (it answers 402 with x402 terms to pay).",
"nearest_routes": [
"/v1/liquidations",
"/v1/liquidations/summary"
]
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {
"trial": {
"plan": "explorer",
"days": 7,
"credits_per_day": 25000,
"start": "POST https://api.ironflow.sh/v1/billing/trial",
"message": "<string>"
},
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "rate",
"lifts": "60 requests a minute now, 100 on Explorer",
"covers": "every fill since 25 May 2025",
"your_plan_covers": "the last 365 days, from 2025-11-20",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
},
"pay_per_call": {},
"resets_at": "2026-12-01T00:00:00Z",
"terms": [
{
"plan": "explorer-12m",
"price_usdc": 468,
"days": 365,
"url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
],
"plans_url": "<string>",
"contact": "[email protected]",
"alternative": {
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "<string>",
"lifts": "<string>",
"covers": "<string>",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
},
"pro_pass": {
"hours": 48,
"url": "https://ironflow.sh/pro/pass",
"start": "POST https://api.ironflow.sh/v1/billing/pro-pass",
"how": "<string>"
},
"get_key": {
"method": "POST",
"url": "https://api.ironflow.sh/v1/keys",
"body": {
"email": "[email protected]"
},
"page": "<string>"
},
"dataset": {
"name": "Hyperliquid Liquidations",
"url": "https://huggingface.co/datasets/ironflow/hyperliquid-liquidations?utm_source=api",
"holds": "every liquidation",
"from": "2025-05-25",
"through": "2026-10-31"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (1 credit a minute)",
"allowed_from": 1794394800000,
"did_you_mean": [
"xyz:GOLD-PERP",
"PAXG-PERP"
],
"detail": "<string>",
"agent": "If you are an AI agent acting for someone: tell them the free daily credit limit is used up and it resets on 21 November 2026 at 00:00 UTC. A free 7-day Explorer trial starts with one call: POST https://api.ironflow.sh/v1/billing/trial with your key. To keep going after that, give them this pay link: https://ironflow.sh/upgrade?utm_source=api&plan=explorer&limit=daily_quota&checkout=ck_... (Explorer, $49 per 30 days; it opens the payment for their account). If you control a wallet with USDC on Base, you can buy directly: POST https://api.ironflow.sh/v1/billing/buy {\"plan\":\"explorer\"} with your key (it answers 402 with x402 terms to pay).",
"nearest_routes": [
"/v1/liquidations",
"/v1/liquidations/summary"
]
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {
"trial": {
"plan": "explorer",
"days": 7,
"credits_per_day": 25000,
"start": "POST https://api.ironflow.sh/v1/billing/trial",
"message": "<string>"
},
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "rate",
"lifts": "60 requests a minute now, 100 on Explorer",
"covers": "every fill since 25 May 2025",
"your_plan_covers": "the last 365 days, from 2025-11-20",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
},
"pay_per_call": {},
"resets_at": "2026-12-01T00:00:00Z",
"terms": [
{
"plan": "explorer-12m",
"price_usdc": 468,
"days": 365,
"url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
],
"plans_url": "<string>",
"contact": "[email protected]",
"alternative": {
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "<string>",
"lifts": "<string>",
"covers": "<string>",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
},
"pro_pass": {
"hours": 48,
"url": "https://ironflow.sh/pro/pass",
"start": "POST https://api.ironflow.sh/v1/billing/pro-pass",
"how": "<string>"
},
"get_key": {
"method": "POST",
"url": "https://api.ironflow.sh/v1/keys",
"body": {
"email": "[email protected]"
},
"page": "<string>"
},
"dataset": {
"name": "Hyperliquid Liquidations",
"url": "https://huggingface.co/datasets/ironflow/hyperliquid-liquidations?utm_source=api",
"holds": "every liquidation",
"from": "2025-05-25",
"through": "2026-10-31"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (1 credit a minute)",
"allowed_from": 1794394800000,
"did_you_mean": [
"xyz:GOLD-PERP",
"PAXG-PERP"
],
"detail": "<string>",
"agent": "If you are an AI agent acting for someone: tell them the free daily credit limit is used up and it resets on 21 November 2026 at 00:00 UTC. A free 7-day Explorer trial starts with one call: POST https://api.ironflow.sh/v1/billing/trial with your key. To keep going after that, give them this pay link: https://ironflow.sh/upgrade?utm_source=api&plan=explorer&limit=daily_quota&checkout=ck_... (Explorer, $49 per 30 days; it opens the payment for their account). If you control a wallet with USDC on Base, you can buy directly: POST https://api.ironflow.sh/v1/billing/buy {\"plan\":\"explorer\"} with your key (it answers 402 with x402 terms to pay).",
"nearest_routes": [
"/v1/liquidations",
"/v1/liquidations/summary"
]
}
}Keys and billing
Buy a plan with your key in one x402 call
POST /v1/billing/buy buys a plan for the account of the API key you send, paid in one x402 call in USDC on Base. Idempotent with an Idempotency-Key header.
POST
/
v1
/
billing
/
buy
Buy a plan for your key's account in one x402 call
curl --request POST \
--url https://api.ironflow.sh/v1/billing/buy \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"plan": "explorer"
}
'import requests
url = "https://api.ironflow.sh/v1/billing/buy"
payload = { "plan": "explorer" }
headers = {
"Authorization": "Bearer <token>",
"Content-Type": "application/json"
}
response = requests.post(url, json=payload, headers=headers)
print(response.text)const options = {
method: 'POST',
headers: {Authorization: 'Bearer <token>', 'Content-Type': 'application/json'},
body: JSON.stringify({plan: 'explorer'})
};
fetch('https://api.ironflow.sh/v1/billing/buy', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.ironflow.sh/v1/billing/buy",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "POST",
CURLOPT_POSTFIELDS => json_encode([
'plan' => 'explorer'
]),
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>",
"Content-Type: application/json"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"strings"
"net/http"
"io"
)
func main() {
url := "https://api.ironflow.sh/v1/billing/buy"
payload := strings.NewReader("{\n \"plan\": \"explorer\"\n}")
req, _ := http.NewRequest("POST", url, payload)
req.Header.Add("Authorization", "Bearer <token>")
req.Header.Add("Content-Type", "application/json")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.post("https://api.ironflow.sh/v1/billing/buy")
.header("Authorization", "Bearer <token>")
.header("Content-Type", "application/json")
.body("{\n \"plan\": \"explorer\"\n}")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.ironflow.sh/v1/billing/buy")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Post.new(url)
request["Authorization"] = 'Bearer <token>'
request["Content-Type"] = 'application/json'
request.body = "{\n \"plan\": \"explorer\"\n}"
response = http.request(request)
puts response.read_body{
"status": "paid",
"replayed": false,
"plan": "liquidations",
"plan_name": "Liquidations",
"tier": "liquidations",
"days": 30,
"price_usdc": 19,
"account": "t***@g***.com",
"request_id": "up_0123456789abcdef0123456789abcdef",
"status_url": "https://api.ironflow.sh/v1/billing/upgrade?request=up_0123456789abcdef0123456789abcdef",
"message": "Paid. Within a minute Liquidations is active for 30 days on this key's account (t***@g***.com): every key of it moves to liquidations. status_url shows when it is live."
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {
"trial": {
"plan": "explorer",
"days": 7,
"credits_per_day": 25000,
"start": "POST https://api.ironflow.sh/v1/billing/trial",
"message": "<string>"
},
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "rate",
"lifts": "60 requests a minute now, 100 on Explorer",
"covers": "every fill since 25 May 2025",
"your_plan_covers": "the last 365 days, from 2025-11-20",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
},
"pay_per_call": {},
"resets_at": "2026-12-01T00:00:00Z",
"terms": [
{
"plan": "explorer-12m",
"price_usdc": 468,
"days": 365,
"url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
],
"plans_url": "<string>",
"contact": "[email protected]",
"alternative": {
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "<string>",
"lifts": "<string>",
"covers": "<string>",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
},
"pro_pass": {
"hours": 48,
"url": "https://ironflow.sh/pro/pass",
"start": "POST https://api.ironflow.sh/v1/billing/pro-pass",
"how": "<string>"
},
"get_key": {
"method": "POST",
"url": "https://api.ironflow.sh/v1/keys",
"body": {
"email": "[email protected]"
},
"page": "<string>"
},
"dataset": {
"name": "Hyperliquid Liquidations",
"url": "https://huggingface.co/datasets/ironflow/hyperliquid-liquidations?utm_source=api",
"holds": "every liquidation",
"from": "2025-05-25",
"through": "2026-10-31"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (1 credit a minute)",
"allowed_from": 1794394800000,
"did_you_mean": [
"xyz:GOLD-PERP",
"PAXG-PERP"
],
"detail": "<string>",
"agent": "If you are an AI agent acting for someone: tell them the free daily credit limit is used up and it resets on 21 November 2026 at 00:00 UTC. A free 7-day Explorer trial starts with one call: POST https://api.ironflow.sh/v1/billing/trial with your key. To keep going after that, give them this pay link: https://ironflow.sh/upgrade?utm_source=api&plan=explorer&limit=daily_quota&checkout=ck_... (Explorer, $49 per 30 days; it opens the payment for their account). If you control a wallet with USDC on Base, you can buy directly: POST https://api.ironflow.sh/v1/billing/buy {\"plan\":\"explorer\"} with your key (it answers 402 with x402 terms to pay).",
"nearest_routes": [
"/v1/liquidations",
"/v1/liquidations/summary"
]
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {
"trial": {
"plan": "explorer",
"days": 7,
"credits_per_day": 25000,
"start": "POST https://api.ironflow.sh/v1/billing/trial",
"message": "<string>"
},
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "rate",
"lifts": "60 requests a minute now, 100 on Explorer",
"covers": "every fill since 25 May 2025",
"your_plan_covers": "the last 365 days, from 2025-11-20",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
},
"pay_per_call": {},
"resets_at": "2026-12-01T00:00:00Z",
"terms": [
{
"plan": "explorer-12m",
"price_usdc": 468,
"days": 365,
"url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
],
"plans_url": "<string>",
"contact": "[email protected]",
"alternative": {
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "<string>",
"lifts": "<string>",
"covers": "<string>",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
},
"pro_pass": {
"hours": 48,
"url": "https://ironflow.sh/pro/pass",
"start": "POST https://api.ironflow.sh/v1/billing/pro-pass",
"how": "<string>"
},
"get_key": {
"method": "POST",
"url": "https://api.ironflow.sh/v1/keys",
"body": {
"email": "[email protected]"
},
"page": "<string>"
},
"dataset": {
"name": "Hyperliquid Liquidations",
"url": "https://huggingface.co/datasets/ironflow/hyperliquid-liquidations?utm_source=api",
"holds": "every liquidation",
"from": "2025-05-25",
"through": "2026-10-31"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (1 credit a minute)",
"allowed_from": 1794394800000,
"did_you_mean": [
"xyz:GOLD-PERP",
"PAXG-PERP"
],
"detail": "<string>",
"agent": "If you are an AI agent acting for someone: tell them the free daily credit limit is used up and it resets on 21 November 2026 at 00:00 UTC. A free 7-day Explorer trial starts with one call: POST https://api.ironflow.sh/v1/billing/trial with your key. To keep going after that, give them this pay link: https://ironflow.sh/upgrade?utm_source=api&plan=explorer&limit=daily_quota&checkout=ck_... (Explorer, $49 per 30 days; it opens the payment for their account). If you control a wallet with USDC on Base, you can buy directly: POST https://api.ironflow.sh/v1/billing/buy {\"plan\":\"explorer\"} with your key (it answers 402 with x402 terms to pay).",
"nearest_routes": [
"/v1/liquidations",
"/v1/liquidations/summary"
]
}
}{
"error": {
"code": "PAYMENT_REQUIRED",
"message": "this buys Explorer for 30 days on this key's account (t***@g***.com) for 49 USDC on Base. Pay the PAYMENT-REQUIRED header with any x402 client and send the same POST again with PAYMENT-SIGNATURE and the same key; the plan starts once the payment settles. Or pay in USDC on Base or Hyperliquid at https://ironflow.sh/upgrade?utm_source=api&plan=explorer&checkout=ck_..."
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {
"trial": {
"plan": "explorer",
"days": 7,
"credits_per_day": 25000,
"start": "POST https://api.ironflow.sh/v1/billing/trial",
"message": "<string>"
},
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "rate",
"lifts": "60 requests a minute now, 100 on Explorer",
"covers": "every fill since 25 May 2025",
"your_plan_covers": "the last 365 days, from 2025-11-20",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
},
"pay_per_call": {},
"resets_at": "2026-12-01T00:00:00Z",
"terms": [
{
"plan": "explorer-12m",
"price_usdc": 468,
"days": 365,
"url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
],
"plans_url": "<string>",
"contact": "[email protected]",
"alternative": {
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "<string>",
"lifts": "<string>",
"covers": "<string>",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
},
"pro_pass": {
"hours": 48,
"url": "https://ironflow.sh/pro/pass",
"start": "POST https://api.ironflow.sh/v1/billing/pro-pass",
"how": "<string>"
},
"get_key": {
"method": "POST",
"url": "https://api.ironflow.sh/v1/keys",
"body": {
"email": "[email protected]"
},
"page": "<string>"
},
"dataset": {
"name": "Hyperliquid Liquidations",
"url": "https://huggingface.co/datasets/ironflow/hyperliquid-liquidations?utm_source=api",
"holds": "every liquidation",
"from": "2025-05-25",
"through": "2026-10-31"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (1 credit a minute)",
"allowed_from": 1794394800000,
"did_you_mean": [
"xyz:GOLD-PERP",
"PAXG-PERP"
],
"detail": "<string>",
"agent": "If you are an AI agent acting for someone: tell them the free daily credit limit is used up and it resets on 21 November 2026 at 00:00 UTC. A free 7-day Explorer trial starts with one call: POST https://api.ironflow.sh/v1/billing/trial with your key. To keep going after that, give them this pay link: https://ironflow.sh/upgrade?utm_source=api&plan=explorer&limit=daily_quota&checkout=ck_... (Explorer, $49 per 30 days; it opens the payment for their account). If you control a wallet with USDC on Base, you can buy directly: POST https://api.ironflow.sh/v1/billing/buy {\"plan\":\"explorer\"} with your key (it answers 402 with x402 terms to pay).",
"nearest_routes": [
"/v1/liquidations",
"/v1/liquidations/summary"
]
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {
"trial": {
"plan": "explorer",
"days": 7,
"credits_per_day": 25000,
"start": "POST https://api.ironflow.sh/v1/billing/trial",
"message": "<string>"
},
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "rate",
"lifts": "60 requests a minute now, 100 on Explorer",
"covers": "every fill since 25 May 2025",
"your_plan_covers": "the last 365 days, from 2025-11-20",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
},
"pay_per_call": {},
"resets_at": "2026-12-01T00:00:00Z",
"terms": [
{
"plan": "explorer-12m",
"price_usdc": 468,
"days": 365,
"url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
],
"plans_url": "<string>",
"contact": "[email protected]",
"alternative": {
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "<string>",
"lifts": "<string>",
"covers": "<string>",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
},
"pro_pass": {
"hours": 48,
"url": "https://ironflow.sh/pro/pass",
"start": "POST https://api.ironflow.sh/v1/billing/pro-pass",
"how": "<string>"
},
"get_key": {
"method": "POST",
"url": "https://api.ironflow.sh/v1/keys",
"body": {
"email": "[email protected]"
},
"page": "<string>"
},
"dataset": {
"name": "Hyperliquid Liquidations",
"url": "https://huggingface.co/datasets/ironflow/hyperliquid-liquidations?utm_source=api",
"holds": "every liquidation",
"from": "2025-05-25",
"through": "2026-10-31"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (1 credit a minute)",
"allowed_from": 1794394800000,
"did_you_mean": [
"xyz:GOLD-PERP",
"PAXG-PERP"
],
"detail": "<string>",
"agent": "If you are an AI agent acting for someone: tell them the free daily credit limit is used up and it resets on 21 November 2026 at 00:00 UTC. A free 7-day Explorer trial starts with one call: POST https://api.ironflow.sh/v1/billing/trial with your key. To keep going after that, give them this pay link: https://ironflow.sh/upgrade?utm_source=api&plan=explorer&limit=daily_quota&checkout=ck_... (Explorer, $49 per 30 days; it opens the payment for their account). If you control a wallet with USDC on Base, you can buy directly: POST https://api.ironflow.sh/v1/billing/buy {\"plan\":\"explorer\"} with your key (it answers 402 with x402 terms to pay).",
"nearest_routes": [
"/v1/liquidations",
"/v1/liquidations/summary"
]
}
}{
"error": {
"code": "RATE_LIMIT_EXCEEDED",
"message": "Rate limit exceeded. Retry after 60 seconds.",
"upgrade": {
"trial": {
"plan": "explorer",
"days": 7,
"credits_per_day": 25000,
"start": "POST https://api.ironflow.sh/v1/billing/trial",
"message": "<string>"
},
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "rate",
"lifts": "60 requests a minute now, 100 on Explorer",
"covers": "every fill since 25 May 2025",
"your_plan_covers": "the last 365 days, from 2025-11-20",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
},
"pay_per_call": {},
"resets_at": "2026-12-01T00:00:00Z",
"terms": [
{
"plan": "explorer-12m",
"price_usdc": 468,
"days": 365,
"url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
],
"plans_url": "<string>",
"contact": "[email protected]",
"alternative": {
"plan": "explorer",
"price_usdc": 49,
"days": 30,
"unlocks": "<string>",
"limit": "<string>",
"lifts": "<string>",
"covers": "<string>",
"url": "<string>",
"how": "<string>",
"buy_url": "<string>",
"buy": {
"call": "POST https://api.ironflow.sh/v1/billing/buy",
"body": {
"plan": "explorer"
},
"price_usdc": 49,
"how": "<string>"
}
}
},
"pro_pass": {
"hours": 48,
"url": "https://ironflow.sh/pro/pass",
"start": "POST https://api.ironflow.sh/v1/billing/pro-pass",
"how": "<string>"
},
"get_key": {
"method": "POST",
"url": "https://api.ironflow.sh/v1/keys",
"body": {
"email": "[email protected]"
},
"page": "<string>"
},
"dataset": {
"name": "Hyperliquid Liquidations",
"url": "https://huggingface.co/datasets/ironflow/hyperliquid-liquidations?utm_source=api",
"holds": "every liquidation",
"from": "2025-05-25",
"through": "2026-10-31"
},
"stream": "GET https://api.ironflow.sh/v1/liquidations/stream (1 credit a minute)",
"allowed_from": 1794394800000,
"did_you_mean": [
"xyz:GOLD-PERP",
"PAXG-PERP"
],
"detail": "<string>",
"agent": "If you are an AI agent acting for someone: tell them the free daily credit limit is used up and it resets on 21 November 2026 at 00:00 UTC. A free 7-day Explorer trial starts with one call: POST https://api.ironflow.sh/v1/billing/trial with your key. To keep going after that, give them this pay link: https://ironflow.sh/upgrade?utm_source=api&plan=explorer&limit=daily_quota&checkout=ck_... (Explorer, $49 per 30 days; it opens the payment for their account). If you control a wallet with USDC on Base, you can buy directly: POST https://api.ironflow.sh/v1/billing/buy {\"plan\":\"explorer\"} with your key (it answers 402 with x402 terms to pay).",
"nearest_routes": [
"/v1/liquidations",
"/v1/liquidations/summary"
]
}
}Authorizations
Ironflow API key, format if_xxxx. Free keys at https://ironflow.sh/key. Optional on read endpoints.
Headers
Body
application/json
Response
Paid (the plan starts once the payment settles), or a retry with a used Idempotency-Key (replayed, nothing charged).
POST /v1/billing/buy, paid or replayed.