OKX Market Scraper avatar

OKX Market Scraper

Pricing

from $3.50 / 1,000 results

Go to Apify Store
OKX Market Scraper

OKX Market Scraper

Scrape live market data for all OKX spot and futures (swap) instruments in one run β€” last price, 24h change, high/low, volume, bid/ask and more. Schedule it for a continuously fresh price feed.

Pricing

from $3.50 / 1,000 results

Rating

0.0

(0)

Developer

Logiover

Logiover

Maintained by Community

Actor stats

0

Bookmarked

5

Total users

0

Monthly active users

9 hours ago

Last modified

Share

🟒 OKX Market Scraper β€” Live OKX Spot & Futures Prices, Volume & Market Data

Scrape live market data from OKX β€” one of the world's leading cryptocurrency exchanges β€” straight from its official public API. This OKX scraper delivers a clean, structured snapshot of every OKX spot and futures (swap) instrument: last price, 24h change, high/low, 24h volume and bid/ask spread. Export to JSON, CSV or Excel.

Crypto prices move every second, so this Actor is built for scheduled, recurring use to keep a continuously fresh OKX market feed. No login and no OKX API key required.

✨ What this Actor does / Key features

  • πŸ“‘ Pulls live OKX market data directly from the official OKX public API β€” fast, reliable and fully structured
  • 🌐 Complete market coverage β€” every OKX SPOT and SWAP (perpetual futures) instrument in a single run, plus FUTURES and OPTION support
  • πŸ’Ή Rich data per pair β€” last price, 24h open/high/low, 24h price change %, base and quote volume, bid and ask price
  • πŸ”’ Sort instruments by quote volume, base volume, 24h price change or last price
  • πŸ” Filter out low-volume instruments with a minimum 24h volume threshold
  • ♾️ Leave the limit empty to pull every available pair, or cap the run with maxPairs
  • πŸ€– No API key, no login, no blocking β€” ideal for scheduled recurring runs
  • πŸ“€ Structured output ready for JSON, CSV and Excel export

πŸ” Input

FieldTypeDescription
instTypesarrayWhich OKX markets to scrape: SPOT, SWAP (perpetual futures), FUTURES, OPTION.
minVolumeUsdintegerDrop instruments with 24h quote volume below this value. 0 = no filter.
sortBystring (select)Rank instruments by volCcy24h (quote volume), vol24h (base volume), priceChangePercent24h or lastPrice.
maxPairsintegerMaximum number of instruments to save. 0 = all.

πŸš€ Example input

{
"instTypes": ["SPOT", "SWAP"],
"minVolumeUsd": 100000,
"sortBy": "volCcy24h",
"maxPairs": 0
}

πŸ“¦ Output

Each instrument is saved as one structured record.

FieldDescription
instIdInstrument ID (e.g. BTC-USDT, ETH-USDT-SWAP)
instTypeInstrument type β€” SPOT, SWAP, FUTURES or OPTION
lastPriceMost recent traded price
open24hPrice 24 hours ago
high24hHighest price in the last 24 hours
low24hLowest price in the last 24 hours
priceChangePercent24h24-hour price change as a percentage
volume24hTrading volume in the last 24h (base currency)
volumeCcy24hTrading volume in the last 24h (quote currency)
bidPriceCurrent best bid price
askPriceCurrent best ask price
timestampExchange timestamp of the ticker data
scrapedAtWhen the Actor scraped this record

Sample record

{
"instId": "BTC-USDT",
"instType": "SPOT",
"lastPrice": 64235.1,
"open24h": 63010.0,
"high24h": 64880.0,
"low24h": 62700.0,
"priceChangePercent24h": 1.94,
"volume24h": 12850.4,
"volumeCcy24h": 821400000.0,
"bidPrice": 64234.9,
"askPrice": 64235.2,
"timestamp": "2026-05-14T09:00:00.000Z",
"scrapedAt": "2026-05-14T09:00:01.250Z"
}

πŸ’‘ Use cases

  • Traders & trading bots β€” feed live OKX prices and spreads into strategies, screeners and dashboards.
  • Market researchers & analysts β€” track volume, volatility and 24h trends across the entire OKX exchange.
  • Price monitoring & alerts β€” watch specific pairs on a schedule and trigger alerts on price moves.
  • Quant & data science teams β€” build a historical OKX market-data archive by running the Actor on a recurring schedule.
  • Portfolio & PnL tools β€” pull current prices to value crypto holdings in real time.

❓ Frequently Asked Questions

Do I need an OKX account or API key? No. The Actor uses the official OKX public market API β€” no login, no API key and no authentication required.

Is this legal? The Actor reads publicly available market data from OKX's official public API. Use the data responsibly and in line with OKX's terms of service.

How much data can I get in one run? Leave maxPairs at 0 to pull every available instrument for the selected instTypes β€” that can be thousands of spot and swap pairs in a single run.

Can I filter and sort the results? Yes. Use minVolumeUsd to drop low-volume instruments and sortBy to rank results by quote volume, base volume, 24h price change or last price.

How fresh is the data? Each run pulls a live snapshot from OKX. Because crypto prices change constantly, schedule the Actor to run every few minutes for a near-real-time feed.

Can I scrape only futures or only spot? Yes. Set instTypes to just ["SPOT"], just ["SWAP"], or any combination of SPOT, SWAP, FUTURES and OPTION.

What output formats are supported? Results are stored in an Apify dataset and can be exported as JSON, CSV, Excel, XML or HTML, or pulled via the Apify API.

⏰ Scheduling & integration

Schedule this Actor on Apify to run every few minutes, hourly or daily for a continuously updated OKX market dataset with zero manual work. Export to JSON, CSV or Excel, call it via the Apify API, or push results to Google Sheets, databases and webhooks through Apify integrations.