{"id":18005258,"url":"https://github.com/snazzah/duck-duck-scrape","last_synced_at":"2025-04-15T02:01:08.438Z","repository":{"id":37940731,"uuid":"128557907","full_name":"Snazzah/duck-duck-scrape","owner":"Snazzah","description":"🔎 Search from DuckDuckGo and utilize its spice APIs in Node","archived":false,"fork":false,"pushed_at":"2025-03-20T00:07:41.000Z","size":1661,"stargazers_count":189,"open_issues_count":5,"forks_count":24,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-04-15T01:59:56.490Z","etag":null,"topics":["api-client","duckduckgo","hacktoberfest","search"],"latest_commit_sha":null,"homepage":"https://duck-duck-scrape.js.org","language":"TypeScript","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/Snazzah.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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,"zenodo":null},"funding":{"github":"Snazzah","liberapay":"Snazzah","ko_fi":"Snazzah"}},"created_at":"2018-04-07T18:44:24.000Z","updated_at":"2025-04-12T03:24:50.000Z","dependencies_parsed_at":"2023-01-30T19:01:17.360Z","dependency_job_id":"0e89cc82-3627-463b-b4e4-abd410c441a2","html_url":"https://github.com/Snazzah/duck-duck-scrape","commit_stats":{"total_commits":219,"total_committers":6,"mean_commits":36.5,"dds":0.5251141552511416,"last_synced_commit":"a60901578c3ee0b46afb838a9860c54cb51752ee"},"previous_names":[],"tags_count":18,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snazzah%2Fduck-duck-scrape","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snazzah%2Fduck-duck-scrape/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snazzah%2Fduck-duck-scrape/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Snazzah%2Fduck-duck-scrape/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Snazzah","download_url":"https://codeload.github.com/Snazzah/duck-duck-scrape/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248991546,"owners_count":21194894,"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":["api-client","duckduckgo","hacktoberfest","search"],"created_at":"2024-10-30T00:18:49.958Z","updated_at":"2025-04-15T02:01:08.413Z","avatar_url":"https://github.com/Snazzah.png","language":"TypeScript","funding_links":["https://github.com/sponsors/Snazzah","https://liberapay.com/Snazzah","https://ko-fi.com/Snazzah"],"categories":[],"sub_categories":[],"readme":"\u003cdiv align=\"center\"\u003e\n\n[![](https://get.snaz.in/45RrSvq.png)](https://duck-duck-scrape.js.org/)\n\n[![NPM version](https://img.shields.io/npm/v/duck-duck-scrape?maxAge=3600?\u0026color=3498db)](https://www.npmjs.com/package/duck-duck-scrape) [![NPM downloads](https://img.shields.io/npm/dt/duck-duck-scrape?maxAge=3600\u0026color=3498db)](https://www.npmjs.com/package/duck-duck-scrape) [![ESLint status](https://github.com/Snazzah/duck-duck-scrape/workflows/ESLint/badge.svg)](https://github.com/Snazzah/duck-duck-scrape/actions?query=workflow%3A%22ESLint%22) [![DeepScan grade](https://deepscan.io/api/teams/11596/projects/16764/branches/365136/badge/grade.svg)](https://deepscan.io/dashboard#view=project\u0026tid=11596\u0026pid=16764\u0026bid=365136)\n\n`npm install duck-duck-scrape` - `yarn add duck-duck-scrape`\n\n\nSearch from DuckDuckGo and utilize its spice APIs for things such as stocks, weather, currency conversion and more!\n\n\u003c/div\u003e\n\n### Available Features\n- Search\n  - Regular search\n  - Image search\n  - Video search\n  - News search\n- Stocks (via Xignite)\n- Time for Location API (via timeanddate.com)\n- Currency Conversion (via XE)\n- Forecast (via Dark Sky)\n- Dictionary\n  - Definition\n  - Audio\n  - Pronunciation\n  - Hyphenation\n\n### Quickstart\n#### JavaScript\n```js\nconst DDG = require('duck-duck-scrape');\nconst searchResults = await DDG.search('node.js', {\n  safeSearch: DDG.SafeSearchType.STRICT\n});\n\n// DDG.stocks('aapl')\n// DDG.currency('usd', 'eur', 1)\n// DDG.dictionaryDefinition('happy')\n\nconsole.log(searchResults);\n/**\n\n{\n  noResults: false,\n  vqd: '3-314...',\n  results: [\n    {\n      title: 'Node.js® is a JavaScript runtime built on Chrome\u0026#x27;s V8 JavaScript...',\n      ...\n      url: 'https://nodejs.org/',\n      bang: {\n        prefix: 'node',\n        title: 'node.js docs',\n        domain: 'nodejs.org'\n      }\n    },\n    ...\n  ]\n}\n\n*/\n```\n#### TypeScript\n\n```js\nimport { search, SafeSearchType } from 'duck-duck-scrape';\n// import * as DDG from 'duck-duck-scrape';\n\nconst searchResults = await search('node.js', {\n  safeSearch: SafeSearchType.STRICT\n});\n```\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnazzah%2Fduck-duck-scrape","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsnazzah%2Fduck-duck-scrape","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsnazzah%2Fduck-duck-scrape/lists"}