Broker APIs in India: free access, data costs and setup

A broker API, also called a trading or brokerage API, lets software access an authorised trading account. Depending on the broker and subscription, it can retrieve holdings and positions, stream market data, and place, modify or cancel orders. An API key identifies an app; an access token authorises a session for an account.

Which broker provides a free API in India?

Free trading access and free market data are different questions. Compare order access, live quotes, historical data and account eligibility separately. The following official sources were checked on 4 October 2026; confirm the current terms before subscribing.

BrokerTrading API accessData and setup details
ZerodhaPersonal API access is freeLive and historical data are on the paid Kite Connect plan; see official API plans
DhanTrading APIs are offered freeData API subscription is separate; see trading API offering and data subscription terms
FYERSAPI access is free for FYERS usersReview app permissions and data access; see FYERS API access

Free API access does not eliminate brokerage, taxes, exchange charges or hosting costs. It also does not mean anonymous access: broker onboarding and authentication still apply. For Upstox, start with its developer documentation and verify the plan and endpoints your application needs.

Official developer portals and setup guides

What should I check before choosing an API?

  1. Instrument coverage: the exchange, segment, expiry and order products your strategy needs.
  2. Data entitlement: live streaming and historical candles may have different subscriptions and limits.
  3. Authentication: login, token lifetime, permissions and approved static-IP requirements.
  4. Rate limits: apply endpoint-specific per-second and longer windows across all workers using the account.
  5. Execution handling: order IDs, status updates, partial fills and reconciliation after a timeout.
  6. Testing: use a documented sandbox where available or a local paper-trading adapter before live orders.

A successful read-only request confirms access to that endpoint, not permission to place orders. Check order-specific app and IP requirements separately.

Which API does this course use?

Examples use the Kite Connect Python SDK as the reference. Concepts such as order state, position sizing and tick buffering transfer to other brokers, but method names, product codes and instrument identifiers do not. Translate each example against the target broker's documentation rather than only changing credentials.

Continue with creating a Kite Connect app, API errors and rate limits, or the free algo trading course.

Next: Sign up for a trading and demat account.