Then you may use the Web Component to communicate with the API.
Resources:
Web component
Connectivity
ThingSpeak API
https://www.mathworks.com/help/thingspeak/writedata.html
https://www.mathworks.com/help/thingspeak/rest-api.html
WEB Component with API Tutorial (Click to open)