{"id":23394295,"url":"https://github.com/outscraper/outscraper-node","last_synced_at":"2025-04-11T12:53:30.440Z","repository":{"id":48325367,"uuid":"516792202","full_name":"outscraper/outscraper-node","owner":"outscraper","description":"The library provides convenient access to the Outscraper API from applications written in server-side JavaScript. Allows using Outscraper's services from your code.","archived":false,"fork":false,"pushed_at":"2025-04-02T00:15:29.000Z","size":42,"stargazers_count":5,"open_issues_count":3,"forks_count":0,"subscribers_count":0,"default_branch":"main","last_synced_at":"2025-04-02T00:27:23.635Z","etag":null,"topics":["google-maps-api","google-rating-api","google-reviews-api","google-scraping","google-serp-api","scraping","scraping-websites","serp-api"],"latest_commit_sha":null,"homepage":"","language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/outscraper.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2022-07-22T15:02:57.000Z","updated_at":"2025-04-01T23:33:26.000Z","dependencies_parsed_at":"2024-01-03T20:28:32.250Z","dependency_job_id":"c8238b79-3ff9-44c3-ad51-8392cdae3b09","html_url":"https://github.com/outscraper/outscraper-node","commit_stats":{"total_commits":22,"total_committers":3,"mean_commits":7.333333333333333,"dds":0.2272727272727273,"last_synced_commit":"4b09ddb0d0c289521d3628a672c94d0b6730cd8c"},"previous_names":[],"tags_count":9,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscraper%2Foutscraper-node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscraper%2Foutscraper-node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscraper%2Foutscraper-node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/outscraper%2Foutscraper-node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/outscraper","download_url":"https://codeload.github.com/outscraper/outscraper-node/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248403607,"owners_count":21097553,"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":["google-maps-api","google-rating-api","google-reviews-api","google-scraping","google-serp-api","scraping","scraping-websites","serp-api"],"created_at":"2024-12-22T06:14:20.218Z","updated_at":"2025-04-11T12:53:30.429Z","avatar_url":"https://github.com/outscraper.png","language":"JavaScript","readme":"# Outscraper Node Library\n\nThe library provides convenient access to the [Outscraper API](https://app.outscraper.com/api-docs) from applications written in server-side JavaScript. Allows using [Outscraper's services](https://outscraper.com/services/) from your code.\n\n![screencast](https://media.giphy.com/media/v1.Y2lkPTc5MGI3NjExNWVjMGIxNjlmZGMwYjAwMzc5M2QxZjI5ZmIzNzc0ZWQxYWQ2M2Q2ZiZjdD1n/2Z85rUMT0D9e8qslj8/giphy.gif)\n\n## Installation\n\nInstall the package with:\n```bash\nnpm install outscraper --save\n# Or\nyarn add outscraper\n```\n\n[Link to the NPM package page](https://www.npmjs.com/package/outscraper)\n\n## Initialization\n```js\nconst Outscraper = require('outscraper');\n// Or using ES modules:\nimport Outscraper from 'outscraper';\n\nlet client = new Outscraper('SECRET_API_KEY');\n\n```\n[Link to the profile page to create the API key](https://app.outscraper.com/profile)\n\n## Usage\n\n```js\n// Search for businesses in specific locations:\nclient.googleMapsSearch(['restaurants brooklyn usa'], limit=20, language='en', region='us').then(response =\u003e {\n    console.log(response);\n});\n\n// Or using ES modules and async/await:\n(async () =\u003e {\n  const response = await client.googleMapsSearch(['restaurants brooklyn usa'], limit=20, language='en', region='us');\n  console.log(response);\n})();\n\n// Get data of the specific place by id\nclient.googleMapsSearch(['rChIJrc9T9fpYwokRdvjYRHT8nI4'], language='en').then(response =\u003e {\n    console.log(response);\n});\n\n// Get reviews of the specific place by id\nclient.googleMapsReviews(['rChIJrc9T9fpYwokRdvjYRHT8nI4'], reviewsLimit=20, language='en').then(response =\u003e {\n    console.log(response);\n});\n\n// Get reviews of the specific place by id using async mode\nclient.googleMapsReviews(\n    ['rChIJrc9T9fpYwokRdvjYRHT8nI4'],\n    reviewsLimit=20,\n    limit=1,\n    sort='most_relevant',\n    skip=0,\n    start=null,\n    cutoff=null,\n    cutoffRating=null,\n    ignoreEmpty=false,\n    language='en',\n    region=null,\n    reviewsQuery=null,\n    lastPaginationId=null,\n    asyncRequest=true // Enable async mode\n).then(response =\u003e {\n    console.log('Request ID:', response.requestId);\n    // You can use the requestId to check the status of the request later\n    client.getRequestArchive(response.requestId).then(status =\u003e {\n        console.log('Request Status:', status);\n    });\n});\n\n// Search contacts from website\nclient.emailsAndContacts(['outscraper.com']).then(response =\u003e {\n    console.log(response);\n});\n```\n\n[More examples](https://github.com/outscraper/outscraper-node/tree/master/examples)\n\n## Contributing\nBug reports and pull requests are welcome on GitHub at https://github.com/outscraper/outscraper-node.\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutscraper%2Foutscraper-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Foutscraper%2Foutscraper-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Foutscraper%2Foutscraper-node/lists"}