Docs / Endpoints
Support & resistance
POST/v1/levelsunits: 2intraday
Support and resistance levels from clustered swing highs and lows, with touches and distance from the last close, plus pivot points and the position in the range.
Add "async": true to run it as a job, and "webhook_url" to be called when it finishes (Jobs & async). Calls estimated above 1,000 units run as jobs automatically. Supports interval for intraday bars at 5× the units (Intraday).
Parameters
| Field | Type | Default | Description |
|---|---|---|---|
symbolrequired | string | — | Ticker. |
lookback_bars | integer | 120 | How many bars to search for swing points. |
interval | string | "1day" | "1day" | "1hour" | "30min" | "15min" | "5min" | "1min". Intraday costs 5× the units; see Intraday. |
Example request
Where are SPY's support and resistance levels? Read the walkthrough →
Request
POST /v1/levels{ "symbol": "SPY", "lookback_bars": 250 }
The same call with curl, Python and JavaScript
curl https://clickapis.com/v1/levels \
-H "Authorization: Bearer $CLICKAPIS_KEY" \
-H "Content-Type: application/json" \
-d '{"symbol":"SPY","lookback_bars":250}'import os, requests
r = requests.post(
"https://clickapis.com/v1/levels",
headers={"Authorization": f"Bearer {os.environ['CLICKAPIS_KEY']}"},
json={
"symbol": "SPY",
"lookback_bars": 250
},
timeout=60,
)
print(r.json()["data"])const r = await fetch("https://clickapis.com/v1/levels", {
method: "POST",
headers: {
"Authorization": `Bearer ${process.env.CLICKAPIS_KEY}`,
"Content-Type": "application/json",
},
body: JSON.stringify({
"symbol": "SPY",
"lookback_bars": 250
}),
});
console.log((await r.json()).data);Example response
Response 200 OK
{ "ok": true, "data": { "symbol": "SPY", "as_of": "2026-11-12", "close": 756.35, "pivot_basis": { "date": "2026-11-12", "high": 763.03, "low": 753.7, "close": 756.35, "partial_bar_skipped": false }, "pivots": { "classic": { "r3": 771.0167, "r2": 767.0233, "r1": 761.6867, "p": 757.6933, "s1": 752.3567, "s2": 748.3633, "s3": 743.0267 }, "fibonacci": { "r3": 767.0233, "r2": 763.4593, "r1": 761.2574, "p": 757.6933, "s1": 754.1293, "s2": 751.9274, "s3": 748.3633 }, "camarilla": { "r4": 761.4815, "r3": 758.9158, "r2": 758.0605, "r1": 757.2052, "p": 757.6933, "s1": 755.4948, "s2": 754.6395, "s3": 753.7843, "s4": 751.2185 } }, "lookback_bars": 250, "lookback_range": { "high": 781.62, "high_date": "2026-10-06", "low": 627.6669, "low_date": "2026-03-30" }, "resistance": [ { "price": 775.767, "touches": 9, "last_touch": "2026-11-04", "distance": 0.025672 } ], "support": [ { "price": 754.8275, "touches": 13, "last_touch": "2026-10-30", "distance": -0.002013 }, { "price": 734.4976, "touches": 6, "last_touch": "2026-11-05", "distance": -0.028892 }, { "price": 718.6585, "touches": 2, "last_touch": "2026-06-26", "distance": -0.049833 }, { "price": 708.5612, "touches": 2, "last_touch": "2026-04-29", "distance": -0.063183 }, { "price": 700.4858, "touches": 1, "last_touch": "2026-04-23", "distance": -0.07386 } ], "range_52w": { "high": 781.62, "high_date": "2026-10-06", "low": 627.6669, "low_date": "2026-03-30", "dist_from_high": -0.03233, "dist_from_low": 0.205018, "position": 0.835859 }, "atr14": 10.9458, "notes": [ "Swing levels: fractal highs/lows (3 bars each side) merged when within 5.4729 (max of 0.5% and half an ATR)." ], "interval": "1day" }, "meta": { "op": "levels", "units": 2, "cost_usd": 0.0, "billing": "internal", "free_call": false, "free_calls_left": 0, "balance_usd": 5.0, "ms": 5, "interval": "1day", "data_as_of": "2026-11-12", "partial_last_bar": false } }
Every response has the same envelope: ok, data and meta (op, units, cost_usd, ms, interval, billing, balance_usd, data_as_of, partial_last_bar). Numbers are decimals (0.05 = 5%), dates ISO, and a value that cannot be computed is null.