The post doesn't include enough details, and it's unclear why it constains the google-apps-script tag.
What do you mean by "receives data input externally"?
Is the data input appended as new rows?
What triggers the HTTP request? Is there any chance that a request occurs at the same time as the spreadsheet receiving data input?