{"id":21944880,"url":"https://github.com/browserstack/speedlab-code-samples","last_synced_at":"2025-04-22T21:06:49.909Z","repository":{"id":38020957,"uuid":"464504585","full_name":"browserstack/speedlab-code-samples","owner":"browserstack","description":"Demonstrates the workflow of SpeedLab APIs","archived":false,"fork":false,"pushed_at":"2024-01-09T19:12:23.000Z","size":136,"stargazers_count":3,"open_issues_count":5,"forks_count":4,"subscribers_count":6,"default_branch":"main","last_synced_at":"2025-04-22T21:06:45.424Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"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/browserstack.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}},"created_at":"2022-02-28T14:01:02.000Z","updated_at":"2023-06-10T14:55:00.000Z","dependencies_parsed_at":"2022-07-12T17:04:49.977Z","dependency_job_id":null,"html_url":"https://github.com/browserstack/speedlab-code-samples","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fspeedlab-code-samples","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fspeedlab-code-samples/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fspeedlab-code-samples/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/browserstack%2Fspeedlab-code-samples/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/browserstack","download_url":"https://codeload.github.com/browserstack/speedlab-code-samples/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":250324688,"owners_count":21411946,"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","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":[],"created_at":"2024-11-29T04:17:19.561Z","updated_at":"2025-04-22T21:06:49.884Z","avatar_url":"https://github.com/browserstack.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# SpeedLab-API-demo\nDemonstrates the workflow of SpeedLab APIs\n\n# How to run scripts\n  ## Node\n  1. Inside node directory: `npm install`\n  2. In `config.js` replace `browserstack_access_key` with `YOUR_USERNAME` and `browserstack_selenium_key` with `YOUR_ACCESS_KEY`\n  3. To run the test: `node index.js [TEST_URL]`\n  4. You will get a `job_id` from this script. Add it in `config.js`\n  5. To see the report status and result, run `node get_report.js` after some time ( ~60 seconds). Make sure you add the correct `job_id` in `config.js` to get proper results.\n\n  ## Postman Collection\n  1. Import `speedlab-api.postman_collection.json` in your postman\n  2. Under `SpeedlabAPI.Authorization` replace `browserstack_access_key` with `YOUR_USERNAME` and `browserstack_selenium_key` with `YOUR_ACCESS_KEY`\n  3. Now you can access all the endpoints\n  4. Make sure to update the `PathVariables.id` wherever required with the relevant `report_id` that you get from `POST: /generate` endpoint\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fspeedlab-code-samples","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fbrowserstack%2Fspeedlab-code-samples","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fbrowserstack%2Fspeedlab-code-samples/lists"}