Website Integration

Implement BitLabs rewarded surveys into your web app via iframe or a simple link to our offerwall.

Sign up for a new developer account and create a new App.

Server to Server Callbacks

On the dashboard, you can also set up your callbacks. Learn how to set them up in our server-to-server callback guide.

For Websites: Open BitLabs URL in a new tab

Only open surveys in a new tab

It is possible to embed the offerwall in an iFrame. Please note that a new tab will be opened for the user to take the survey if you choose to do so.

The Offer Wall will open in their browser where they can complete surveys in exchange for your virtual currency.

Open https://web.bitlabs.ai/?uid=[UUID]&token=[YOUR_API_TOKEN]

JavaScript Example:
window.open('https://web.bitlabs.ai/?uid=test1234&token=5fec306d-039a-41f3-94be-56ae3e74b41f', '_blank');

Embed the URL in a WebView on iOS

For best performance, please do not do this. Instead, have a look at how to integrate our iOS SDK. If you would still like to use a WebView, this is how to do it:

If you would like the user to take the survey in a native iOS app, please embed the URL in a WebView. If you are unfamiliar with this process, you can find out more about WebViews on iOS here.

import UIKit
import WebKit
class ViewController: UIViewController, WKUIDelegate {

   var webView: WKWebView!

   override func loadView() {
       let webConfiguration = WKWebViewConfiguration()
       webView = WKWebView(frame: .zero, configuration: webConfiguration)
       webView.uiDelegate = self
       view = webView
   }
   override func viewDidLoad() {
       super.viewDidLoad()

       let myURL = URL(string:"https://web.bitlabs.ai/?uid=[UUID]&token=[YOUR_API_TOKEN]")
       let myRequest = URLRequest(url: myURL!)
       webView.load(myRequest)
   }}

Embed URL in Webview on Android

For best performance, please do not do this. Instead, have a look at how to integrate our Android SDK. If you would still like to use a WebView, this is how to do it:

WebView myWebView = new WebView(activityContext);
setContentView(myWebView);


// Enable JavaScript to support all kinds of Surveys
WebSettings webSettings = myWebView.getSettings();
webSettings.setJavaScriptEnabled(true);


// Load the OfferWall URL with your token included
myWebView.loadUrl("https://web.bitlabs.ai/?uid=[UUID]&token=[YOUR_API_TOKEN]");

Ready to get started?

Get Started