@Nanday_Das, welcome to the community!
You’ll have to provide more details if you hope to get responses that are helpful. Addressing unknowns such as loading via the API into what exactly? A web page? A map? How about the scale? How much data? The nature of the data?
The answers vary and they vary based on these requirements.