Which file contains API link?

I’m working on sidewidget - Insights but I can’t find the API link from which data is been fetched in sidebar widget.
Since all the data is stored in variable “string”. where can I find the main file where the API link is written.

Does this help you?

Or the new version