Set WebGL Metadata from API

  • Created

In this article we are going to show you how to change WebGL Metadata during the creation of your virtual browser profile through the Local API Clients.

To learn more about WebGL and how Kameleo is spoofing it in order to let you bypass anti-bot systems during your web-scraping or browser automation projects please read the following articles:


During the CreateProfile request

POST /profiles/new

you can pass the CreateProfileRequest object that has a WebglMetaSpoofingType property. This can be used to set up WebGL Metadata. Possible values are

  • automatic: The vendor and renderer values comes from the base profile
  • manual: Manually set the vendor and renderer values. In this case the unmasked vendor and unmasked renderer must be passed in the WebglMetaSpoofingOptions object
  • off: Turn off the spoofing, use the original settings

We suggest you to use the automatic settings that are included in the set recommended defaults call.

For your convenience this is all wrapped by the Builder for Create Profile in the Local API Clients.


  • const createProfileRequest = BuilderForCreateProfile
          vendor: 'Google Inc. (AMD)',
          renderer: 'ANGLE (AMD Radeaon (TM) RX 560 Direct3D11 vs_5_0),
    const profile = await client.createProfile({ body: createProfileRequest });
  • from kameleo.local_api_client.models import WebglMetaSpoofingOptions
    create_profile_request = BuilderForCreateProfile \
      .for_base_profile(base_profiles[0].id) \
      .set_recommended_defaults() \
      .set_webgl_meta('manual', WebglMetaSpoofingOptions(vendor='Google Inc. (AMD)', renderer='ANGLE (AMD Radeaon (TM) RX 560 Direct3D11 vs_5_0)')) \
    profile = client.create_profile(body=create_profile_request)

Was this article helpful?

0 out of 0 found this helpful