How do I import data into Google Sheets from the web?

How do I send data from HTML to Google Sheets?

Is there a way using Google Sheets API V4?

How to use Google sheet API v4? If that is not possible, then what about using Google Scripts?

I'm posting this as answer since it covers some ground that isn't in your question. If you're only allowing specific characters, you can do that with either the query parameters, an HTML form POST/GET, or JavaScript.
// Form.

.