{"id":28998557,"url":"https://github.com/luminati-io/bright-data-web-unlocker-nodejs-project","last_synced_at":"2025-07-24T16:02:41.749Z","repository":{"id":292005395,"uuid":"979462144","full_name":"luminati-io/bright-data-web-unlocker-nodejs-project","owner":"luminati-io","description":"Bright Data Web Unlocker Nodejs boilerplate code","archived":false,"fork":false,"pushed_at":"2025-07-21T20:32:01.000Z","size":20,"stargazers_count":2,"open_issues_count":0,"forks_count":3,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-07-21T22:27:02.414Z","etag":null,"topics":["brightdata","scraping","unlocker"],"latest_commit_sha":null,"homepage":"https://brightdata.com/products/web-unlocker","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/luminati-io.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null,"zenodo":null}},"created_at":"2025-05-07T14:46:35.000Z","updated_at":"2025-07-21T20:32:05.000Z","dependencies_parsed_at":"2025-07-21T22:13:07.349Z","dependency_job_id":"1e4a5055-a8b7-497c-85b9-77c3ec83ad6e","html_url":"https://github.com/luminati-io/bright-data-web-unlocker-nodejs-project","commit_stats":null,"previous_names":["anil-bd/bright-data-web-unlocker-nodejs-project","luminati-io/bright-data-web-unlocker-nodejs-project"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/luminati-io/bright-data-web-unlocker-nodejs-project","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminati-io%2Fbright-data-web-unlocker-nodejs-project","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminati-io%2Fbright-data-web-unlocker-nodejs-project/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminati-io%2Fbright-data-web-unlocker-nodejs-project/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminati-io%2Fbright-data-web-unlocker-nodejs-project/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luminati-io","download_url":"https://codeload.github.com/luminati-io/bright-data-web-unlocker-nodejs-project/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luminati-io%2Fbright-data-web-unlocker-nodejs-project/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":266868293,"owners_count":23997848,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","status":"online","status_checked_at":"2025-07-24T02:00:09.469Z","response_time":99,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["brightdata","scraping","unlocker"],"created_at":"2025-06-25T07:09:11.957Z","updated_at":"2025-07-24T16:02:41.697Z","avatar_url":"https://github.com/luminati-io.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Bright Data Web Unlocker Nodejs project\n[![Bright Data Promo](https://github.com/luminati-io/LinkedIn-Scraper/raw/main/Proxies%20and%20scrapers%20GitHub%20bonus%20banner.png)](https://brightdata.com/)\n\n[Edit in StackBlitz editor ⚡️](https://stackblitz.com/~/github.com/luminati-io/bright-data-web-unlocker-nodejs-project?file=index.js)\n\n## Bright Data Web Unlocker API Example\n\nThis project demonstrates how to use Bright Data's [Unlocker API](https://brightdata.com/products/web-unlocker) to access websites through Bright Data [Unlocker API](https://brightdata.com/products/web-unlocker).\n\n## Overview\n\nThis script helps you access websites with anti-bot protection or CAPTCHAs by using Bright Data's Web Unlocker to automatically bypass these obstacles.\n\n\n### Using environment variables in StackBlitz\n\n1. Select the `.env` file\n2. Add the following variables:\n   - `BRIGHT_DATA_API_TOKEN`: Your Bright Data [API Token](https://docs.brightdata.com/general/account/api-token)\n   - `BRIGHT_DATA_ZONE`: Your Bright Data [Zone](https://brightdata.com/cp/zones) name (e.g., `web_unlocker1`)\n\n### Direct configuration\n\nAlternatively, edit the CONFIG object directly in the script:\n\n```javascript\nconst CONFIG = {\n  apiToken: process.env.BRIGHT_DATA_API_TOKEN || 'YOUR_API_TOKEN', // Replace with your actual token\n  zone: process.env.BRIGHT_DATA_ZONE || 'web_unlocker1',           // Replace with your zone\n  targetUrl: 'https://geo.brdtest.com/welcome.txt'                 // Replace with your target URL\n};\n```\n\n## Running the example\n\n1. Make sure you've configured your `API token` and `zone`\n2. Run `node index.js` in the terminal\n3. Check the console output for the results\n\n## How it works?\n\n1. The script makes a POST request to Bright Data's Unlocker API endpoint\n2. It includes your authentication token and target URL\n3. Bright Data's Web Unlocker accesses the target URL\n4. The response is returned to your script and displayed in the console\n\n## Troubleshooting\n\nIf you encounter errors:\n\n- Verify your API token is correct\n- Check that your zone name is valid\n- Ensure your target URL is properly formatted\n\n## Modifying the example\n\nTo request a different URL:\n1. Update the `targetUrl` in the CONFIG object\n2. Run the script again\n\n## Additional resources\n\n- [Bright Data Web Unlocker API](https://docs.brightdata.com/scraping-automation/web-unlocker/introduction)\n- [Get an API Token](https://docs.brightdata.com/general/account/api-token)\n- [Manage Zones](https://brightdata.com/cp/zones)\n\n**Note:** This is an example implementation for educational purposes. For production use, consider adding additional error handling, logging, and security measures.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluminati-io%2Fbright-data-web-unlocker-nodejs-project","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluminati-io%2Fbright-data-web-unlocker-nodejs-project","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluminati-io%2Fbright-data-web-unlocker-nodejs-project/lists"}