https://github.com/kingwill101/duckduckgo_search
Search using the DuckDuckGo api
https://github.com/kingwill101/duckduckgo_search
dartlang duckduckgo duckduckgo-search
Last synced: 23 days ago
JSON representation
Search using the DuckDuckGo api
- Host: GitHub
- URL: https://github.com/kingwill101/duckduckgo_search
- Owner: kingwill101
- License: mit
- Created: 2024-06-01T00:56:59.000Z (over 1 year ago)
- Default Branch: master
- Last Pushed: 2025-05-02T01:12:30.000Z (6 months ago)
- Last Synced: 2025-10-07T10:54:06.547Z (about 1 month ago)
- Topics: dartlang, duckduckgo, duckduckgo-search
- Language: Dart
- Homepage: https://pub.dev/packages/duckduckgo_search
- Size: 60.5 KB
- Stars: 7
- Watchers: 1
- Forks: 3
- Open Issues: 2
-
Metadata Files:
- Readme: README.md
- Changelog: CHANGELOG.md
- License: LICENSE
Awesome Lists containing this project
README
# DuckDuckGo Search
A Dart package for DuckDuckGo search API. Supports text, image, video, and news search with filters.
## Features
- Text search
- Image search with filters (size, color, type, layout, license)
- Video search with filters (resolution, duration, license)
- News search with filters (time limit, region)
- Search suggestions and instant answers
- Rate limit protection and error handling
## Installation
Add the following dependency to your `pubspec.yaml` file:
```yaml
dependencies:
duckduckgo_search: ^0.2.0
```
Then, run `flutter pub get` or `dart pub get` to install the package.
## Usage
```dart
final search = DuckDuckGoSearch();
// Text search
final results = await search.text('dart programming');
// Image search
final images = await search.images('nature',
size: 'Wallpaper',
color: 'Green',
layout: 'Wide'
);
// Video search
final videos = await search.videos('tutorials',
resolution: 'high',
duration: 'long'
);
// News search
final news = await search.news('technology',
timelimit: 'd', // last 24 hours
region: 'wt-wt'
);
// Suggestions
final suggestions = await search.suggestions('dart');
// Instant answers
final answer = await search.answers('population of france');
```
### Contributing
Contributions are welcome! Please open an issue or submit a pull request on GitHub.
### License
This project is licensed under the MIT License. See the LICENSE file for details.
Changelog
See the CHANGELOG file for version history.
### Acknowledgements
This library is a Dart port of the Python [duckduckgo_search](https://github.com/deedy5/duckduckgo_search/) library.