How do I get my DHAN HQ API key?

How do I get my DHAN HQ API key To use it for fetching historical data from inside a python script file ?
is it different from client_id and access_token ?

Hello @Swagatika009

Welcome to Dhan Community!

No, you only need client_id and access_token to fetch any details or call any API. For Historical Data, do make sure you are subscribed to Data APIs.