Option Chain API

Is there any API available for OPTION CHAIN? Any one please suggest.

Actually, You can make a wrapper of NSEAPI. Here is the link - aeron7/nsepython I made this for my own use when I created the Stock Options Dashboard


Link - Stock Options Open Interest

You need to remember the core of the theory that, Maxpain Changes !! It is not the alchemy you’re looking for. But it is definitely an underrated tool that works far better than overrated tools like moving average.

  • It updates every 30 mins.
  • It updates the IV, 1SD Range, PCR, Highest, and 2nd Highest OI of both Call and Put side.
  • Lower and Upper Range as per the implementation of OI We follow as seen here at How to trade options using Max Pain Theory?.

Actually there are lots of more tools using Option Chain. Like Open Interest Dashboard


Zerodha API also gives OI data but I am more habituated with NSE APIs and their output format.


@unofficed thanks for the response.
Is there any limitations on API call?

So far none.

Usually, they used to do block IPs that scan within 3 minutes.

Is there any subscription available to purchase the API? As our presentation is totally depend on the API, & I need result at every call.


this api does not return result at every API call.

@unofficed API return result at localhost but not on the main server.

Around 1.5Lish. Check their website.

Request method is blocked.

You can use curl. It will work and then use sub process.

What I gave you in not API but a wrapper to the API which is already in their site and calling the functions to populate their site.

1 Like

@unofficed thanks for response.

I am using curl in php and via curl calling API;


result is coming at localhost; but when I hosted the code at server; It returns empty result.

As you have mentioned Request is blocked; How can I make it available? please guide.

I wrote it -

You can use curl. It will work and then use subprocess.

Yes Sir, I am using curl and It works well in localhost; but not in server.
On server showing a Internal server error (500).

Um… See I told you because I am sure it works via curl. You must be doing mistakes somewhere.

Did you add the headers?

Sir, follwing header information; I am passing.

‘Connection: keep-alive’,
‘Cache-Control: max-age=0’,
‘User-Agent: Mozilla/5.0 (Windows NT 10.0; Win64; x64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/79.0.3945.79 Safari/537.36’,
‘Sec-Fetch-User: ?1’,
‘Accept: text/html,application/xhtml+xml,application/xml;q=0.9,image/webp,image/apng,/;q=0.8,application/signed-exchange;v=b3;q=0.9’,
‘Sec-Fetch-Site: none’,
‘Sec-Fetch-Mode: navigate’,
‘Accept-Language: en-US,en;q=0.9,hi;q=0.8’

@unofficed Can you please help?

Its very basic. Hire someone. You must be doing some mistake in doing curl. Just cross check with chrome response.

Unless You paste the entire Curl request dot to dot. How can I tell…

Also copy the API as CURL: https://techtldr.com/copy-any-api-call-as-curl-request-with-chrome-developer-tools/

1 Like

headers: {

        "Accept-Encoding": "gzip",

        "Connection": "keep-alive",