Is there any options that I can load graphs through api calls?

Is there any options that I can load graphs through API calls? I want to load graphs without any data source. For each graph I want to assign different endpoints of API. is there any way to do that?