Is there Script API function that duplicates the functionality of the "/v2/remoting/url/entities" endpoint?

Using REST API request I can get information about the content by providing only a URL to it. Is there a similar solution using Script API?