Listed below are some code examples.
curl -X POST https://html2json.com/api/v1 -d "<h1>Some html</h1><img src=\"/path/to/img.jpg\">"
<?php $ch = curl_init('https://html2json.com/api/v1'); curl_setopt( $ch, CURLOPT_POST, 1); curl_setopt( $ch, CURLOPT_POSTFIELDS, '<h1>Some HTML</h1>'); curl_setopt( $ch, CURLOPT_RETURNTRANSFER, 1); print curl_exec( $ch ); ?>