API Overview
Kibot's Historical Data API is a plain-HTTP service for downloading tick, intraday, and end-of-day data for stocks, ETFs, futures, and forex from api.kibot.com. Because every command is expressed as a URL with query parameters, any HTTP client, a web browser, curl, a Python requests script, or an Excel WEBSERVICE cell, can drive it without an SDK or auth header. This article covers what the API does, who can call it, how access is gated, and what changed in the v2 release that introduced tick, NinjaTrader, and split-only adjustment support.
What the API is
The API is a standard interface that can be implemented on any platform, in any programming language, to download historical data. It follows the standard web-services model: the client issues an HTTP request, the server returns a formatted text stream, comma-separated for history, tab-separated for adjustments. There is no JSON or XML envelope; the body is the data. That choice makes the API trivial for non-programmers to call (you can paste a URL into the address bar) and trivial to parse from any language.
The same data is delivered through three other channels, direct download links, FTP archives, and the Kibot Agent desktop tool, and Agent itself is just a GUI wrapper around these API endpoints. Anything Agent can do is reproducible programmatically through the API, including scheduled updates.
Call it from a web browser
The API is callable without an account, without an SDK, and without writing any code. Three browser-only examples demonstrate the model:
https://api.kibot.com/?action=login&user=guest&password=guest
https://api.kibot.com/?action=history&symbol=MSFT&interval=daily&period=10
https://api.kibot.com/?action=history&symbol=MSFT&interval=daily&startdate=1/1/2014&attach=1
The first logs in as the public guest account. The second returns ten calendar days of MSFT daily bars as plain CSV in the response body. The third adds &attach=1, which sets the Content-Disposition header so the browser pops a file-save dialog instead of rendering the data inline. It is the simplest possible "click to download" workflow.
How to get access
Two access tiers exist. The free guest account (user=guest, password=guest) lets anyone test the API. It returns daily (end-of-day) data for any US stock or ETF, plus a few free intraday and tick samples (IBM, OIH, IVE, WDC); everything else is refused. Guest access is intended for evaluation, not production.
A Premium subscription unlocks the full API surface, including tick, intraday, and adjusted/unadjusted variants. Other subscription tiers (Professional, Standard, Basic, EOD) include the API for daily data only, and a new customer's first order without Premium includes 45 days of full API access to the purchased data, enabled automatically. The breakdown by tier and the monthly pricing are in Data updates. Premium includes 4 years of 1-minute and coarser history for all stocks, ETFs, futures, and forex; tick and aggregate bid/ask data are separate purchases, authorized per symbol.
Endpoints at a glance
The API exposes five commands. Three are session housekeeping, two return data:
| Command | Purpose | Article |
|---|---|---|
login |
Authenticate; returns 200 OK plus authorization list | API authentication |
logout |
Invalidate the current session | API authentication |
status |
Server health check; also keeps a session alive | API authentication |
history |
Download tick, intraday, or daily bars for a symbol | History request |
adjustments |
Splits and dividends for one symbol or all symbols | Adjustments request |
Every command takes the same shape: https://api.kibot.com/?action=<command>&<param>=<value>.... There is no separate "v2" host or path; the v2 features below are additive parameters on the existing endpoints.
API v2 features
The v2 release left the URL surface unchanged and added several parameters:
Aggregate bid/ask intervals. tickbidask1, tickbidask5, tickbidask15, and tickbidask30 return 1-, 5-, 15-, and 30-minute aggregated bid/ask bars. The format is covered in Data format reference.
Split-adjusted data. Setting &splitadjusted=1 returns prices adjusted for splits but not dividends, the same convention used by Yahoo Finance charts. Combined with &unadjusted=1, every symbol can be fetched in three forms: unadjusted, split-adjusted, and fully adjusted (splits and dividends, the default).
NinjaTrader format. Adding &ninjatrader=1 to any history URL emits the response in NinjaTrader's expected minute, daily, or tick layout.
30-minute delay during market hours. US stocks and ETFs minute and daily data is delayed by 30 minutes during the regular session and becomes immediately available after the close. This applies whether the data is fetched via API, Agent, or direct download, Kibot does not sell a real-time feed.
Tick data via API. All of Kibot's tick history, including the experimental millisecond variant, can be downloaded over the API. The interval values are tick, tickbidask, tick1sec, tick5sec, tick10sec, tick15sec, tick30sec, plus the experimental millisecond variants tickms and tickbidaskms.
Futures, forex, and indexes. The &type= parameter selects the instrument class: stocks (the default, also used for ETFs), forex, futures, indexes, or otc. Without it, the server assumes US stocks. Futures and forex use the same URL structure but require the type qualifier, e.g. &symbol=BO&interval=tickbidask&period=10&type=futures for soybean oil tick data. Indexes are the one exception: a $-prefixed symbol (e.g. $VIX) is recognized automatically, so &type=indexes is optional, though including it is still the explicit way to ask for one.
Unadjusted data. &unadjusted=1 returns prices as they originally printed at the exchange, with no back-adjustment for splits or dividends. Applies only to US stocks and ETFs.
Distributed server fleet. api.kibot.com is the single entry point but routes to multiple physical servers across geographies. From a caller's perspective the address never changes; from a rate-limit perspective the per-server ceilings discussed in Data updates still apply, and a misbehaving client can find itself pinned to a single back-end if it sends requests too fast.
Working with an HTTP and CSV API
The HTTP-plus-CSV design has a few practical consequences for anyone building against the API.
Use compression. Tick and intraday responses can be tens or hundreds of megabytes. The server returns gzipped responses when the request sends Accept-Encoding: gzip,deflate; calling code that does not decompress will see opaque bytes. See Server responses for the negotiation details and the sample code in API client examples for how to enable automatic decompression on HttpWebRequest.
Errors are response bodies, not HTTP status codes. Every API response, errors included, has HTTP status 200; only an infrastructure failure produces a real 5xx or a connection error. Authentication failures, missing symbols, and rate-limit trips all return a body that starts with one of a small set of codes (401, 402, 404, 405, etc.) followed by a human-readable message. Robust callers check the start of the body and key off the code. See Server responses for the full list.
Sessions are server-side. Login establishes a session keyed to the source IP; subsequent history/adjustments calls require it to be active. Sessions auto-expire after 20 minutes of inactivity. The "skip login" shortcut covered in API authentication sidesteps this entirely by appending credentials to every data URL, useful for stateless callers, slightly more wire traffic for chatty ones.
Open-source reference client. Kibot publishes a .NET sample application (source plus binaries) demonstrating the full login-and-fetch flow. Walkthrough and code live in API client examples.
Key Takeaways
- The API is plain HTTP: any client that can issue a GET request can drive it; no SDK, header, or token is required beyond the per-request URL.
- A free
guest/guestaccount returns daily data for US stocks and ETFs plus a few free samples; full tick and intraday access requires a Premium subscription or the 45 days of full API access that come with a new customer's first order. - Five commands cover the entire surface:
login,logout,statusfor sessions, andhistory,adjustmentsfor data. - v2 added tick, NinjaTrader, split-only adjustment, the
&type=instrument switch, and a multi-server back end behind the unchangedapi.kibot.comaddress. - Premium includes 4 years of 1-minute and coarser history for all stocks, ETFs, futures, and forex; tick and aggregate bid/ask data are separate purchases, authorized per symbol.
- Responses are gzip-compressed when the client sends
Accept-Encoding; decompression is the caller's responsibility.
Related
- API authentication: Login, logout, status, and session lifecycle.
- History request: The main
historyendpoint and every parameter it accepts. - Adjustments request: Splits and dividends, with the incremental-update pattern.
- Server responses: response codes and gzip negotiation.
- API client examples: VB.NET and C# reference code.
- Data updates: Where the API fits among Kibot's four delivery channels and which subscription tier unlocks it.
- Kibot agent: The free GUI that wraps these same endpoints for non-programmers.