How to get the details from an externals website's form data to the ERPnext's doctype

I am trying to get the details from the external website to the ERPnexts doctype via API call. But it is showing error as not fetching. So anybody with the solution ?