API and Three.js

HI, I have to visualize the data from json.
I have an API that returns all the necessary information to me.
My question is how best to connect API and modular Three.js?

Could you explain what you are struggling with exactly? Three is not fundamentally different from any other JS script so once you have data from your api, it’s just a matter of assigning values to objects generated by Three and rendering updates. If you know and like React you may want to look into React three fiber which allows you to use react abstractions with Three.