Tools to Capture and Convert the Web

URL to Rendered HTML API with GrabzItURL to Rendered HTML API

Use GrabzIt’s Rendered HTML API to execute a URL or HTML snippet in a browser instance and return the processed HTML to your code for further processing.

Do you need to get the result of a web page after JavaScript has been executed? Perhaps because you have written an app to scrape the web and need to return the rendered HTML that a browser will produce. Rather than just the raw HTML of a web page. Then this is the API for you! You can also use this feature in our Screenshot Tool allowing you to get rendered HTML without writing any code.

Remember you may need to use a delay to give any JavaScript on the page time to render.

Try the demo below to see how our API converts any URL to rendered HTML Just enter the URL of a web page and click GrabzIt. Then once complete a HTML file containing the rendered HTML of that web page will be automatically downloaded.

Rendered HTML API

Like all of GrabzIt's API's the Rendered HTML API supports nine programming languages. Just select the required language from the options below to see a code snippet and instructions on how to implement it in your app.

The example code below shows how easy it is to use our API to render HTML using C#, although GrabzIt's ASP.NET library is compatible with any .NET language. To start creating PDF's just download the ASP.NET Library, get your key and secret and then use the demo contained within. Then check out the API documentation for ASP.NET to find out all the ways you can use GrabzIt's API.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")%>");
grabzIt.URLToRenderedHTML("https://www.bbc.com/"); 
grabzIt.SaveTo("result.html");

You can of course customize the HTML rendering using the HTMLOptions class in a similar way to the other conversion methods.

The example code below shows how easy it is to use our Rendered HTML Java Library. To start creating rendered HTML just download the Java Library, get your key and secret and then use the demo contained within. Then check out the API documentation for Java to find out all the ways you can use GrabzIt's API.

GrabzItClient grabzIt = new GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")%>");
grabzIt.URLToRenderedHTML("https://www.bbc.com/"); 
grabzIt.SaveTo("result.html");

You can of course customize the HTML rendering using the HTMLOptions class in a similar way to the other conversion methods.

The example code below shows how easy it is to use our API to convert URL's to rendered HTML using JavaScript. To start creating rendered HTML download GrabzIt's JavaScript Library. Then get your key and secret, add the domain you want to use the JavaScript on and then check out the API documentation for JavaScript to find out all the ways you can use GrabzIt's API.

<script src="https://cdn.jsdelivr.net/npm/@grabzit/js@<%= APIVersion.JavaScript %>/grabzit.min.js"></script>
<script>
GrabzIt("Sign in to view your Application Key").ConvertURL("https://www.bbc.com/",
{"format": "html"}).Create();
</script>

You can of course customize the HTML rendering using the options property in a similar way to what is available for the other formats.

The example code below shows how easy it is to use our API to perform an URL to rendered HTML conversion using Node.js. To start creating PDF's just download the Node.js Package, get your key and secret and then use the demo contained within. Then check out the API documentation for Node.js to find out all the ways you can use GrabzIt's API.

var grabzit = require('grabzit');

var client = new grabzit("Sign in to view your Application Key", "Sign in to view your Application Secret")%>");
client.url_to_rendered_html("https://www.bbc.com/");
client.save_to("result.html", function (error, id){
    if (error != null){
        throw error;
    }
});

You can of course customize the HTML rendering using the options property in a similar way to the other conversion methods.

The example code below shows how easy it is to use our API to convert URL's to rendered HTML using Perl. To start creating rendered HTML just download the Perl Library, get your key and secret and then use the demo contained within. Then check out the API documentation for Perl to find out all the ways you can use GrabzIt's API.

#!/usr/bin/perl

use GrabzItClient;

$grabzIt = GrabzItClient->new("Sign in to view your Application Key", "Sign in to view your Application Secret")%>");
$grabzIt->URLToRenderedHTML("https://www.bbc.com/");
$grabzIt->SaveTo("result.html");

You can of course customize the HTML rendering using the GrabzItHTMLOptions class in a similar way to the other conversion methods.

The example code below shows how easy it is to use our API to convert URL's to rendered HTML using PHP. To start creating rendered HTML just download the PHP Library, get your key and secret and then use the demo contained within. Then check out the API documentation for PHP to find out all the ways you can use GrabzIt's API.

include("GrabzItClient.php");

$grabzIt = new \GrabzIt\GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")%>");
$grabzIt->URLToRenderedHTML("https://www.bbc.com/"); 
$grabzIt->SaveTo("result.html");

You can of course customize the HTML rendering using the GrabzItHTMLOptions class in a similar way to the other conversion methods.

The example code below shows how easy it is to use our API to convert URL's to rendered HTML using Python. To start creating rendered HTML just download the Python Library, get your key and secret and then use the demo contained within. Then check out the API documentation for Python to find out all the ways you can use GrabzIt's API.

from GrabzIt import GrabzItClient

grabzIt = GrabzItClient.GrabzItClient("Sign in to view your Application Key", "Sign in to view your Application Secret")%>")
grabzIt.URLToRenderedHTML("https://www.bbc.com/") 
grabzIt.SaveTo("result.html") 

You can of course customize the HTML rendering using the GrabzItHTMLOptions class in a similar way to the other conversion methods.

The example code below shows how easy it is to use our RESTful API to convert URL's to rendered HTML.

https://api.grabz.it/services/convert?key=Sign in to view your Application Key&format=html&url=https%3A%2F%2Fwww.bbc.com%2F

You can of course customize the HTML rendering using the parameters in a similar way to the other conversion methods.

The example code below shows how easy it is to use our API to convert URL's to rendered HTML using Ruby. To start creating rendered HTML just download the Ruby Gem, get your key and secret and then use the demo contained within. Then check out the API documentation for Ruby to find out all the ways you can use GrabzIt's API.

require 'grabzit'

grabzItClient = GrabzIt::Client.new("Sign in to view your Application Key", "Sign in to view your Application Secret")%>")
grabzItClient.url_to_rendered_html("https://www.bbc.com/")	
grabzItClient.save_to("result.html")  	

You can of course customize the HTML rendering using the HTMLOptions class in a similar way to the other conversion methods.