{"id":13623472,"url":"https://github.com/Snazzah/duck-duck-scrape","last_synced_at":"2025-04-15T14:33:18.434Z","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":"2024-07-18T14:07:38.000Z","size":1602,"stargazers_count":138,"open_issues_count":2,"forks_count":18,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-10-30T01:47:47.945Z","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}},"created_at":"2018-04-07T18:44:24.000Z","updated_at":"2024-10-26T15:54:54.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":203,"total_committers":6,"mean_commits":"33.833333333333336","dds":0.5517241379310345,"last_synced_commit":"918241c3248d496c1effae6e452c48a0dd7f3f29"},"previous_names":[],"tags_count":16,"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":223677630,"owners_count":17184513,"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-08-01T21:01:32.218Z","updated_at":"2024-11-08T11:30:56.214Z","avatar_url":"https://github.com/Snazzah.png","language":"TypeScript","funding_links":[],"categories":["hacktoberfest"],"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"}