Skip to main content
Version: v2

Go (chromedp)

We offer beta support for the chromedp Go library.

Usage of the library remains similar to how you'd run your application locally, simply use the RemoteAllocator to connect to browserless API.

An example of navigating to the site, and getting the title, is listed below as a jumping off point:

package main

import (


func main() {
devtoolsWsURL := flag.String("devtools-ws-url", "wss://", "DevTools WebSsocket URL")

allocatorContext, cancel := chromedp.NewRemoteAllocator(context.Background(), *devtoolsWsURL,chromedp.NoModifyURL)
defer cancel()

ctx, cancel := chromedp.NewContext(allocatorContext)
defer cancel()

var title string
if err := chromedp.Run(ctx,
); err != nil {
log.Fatalf("Failed getting title of %v", err)

log.Println("Got title of:", title)

Be sure to let us know if you have questions or issues.