duckduckgo_search 0.1.2 copy "duckduckgo_search: ^0.1.2" to clipboard
duckduckgo_search: ^0.1.2 copied to clipboard

DuckDuckGo Search API for Dart

example/duckduckgo_search_example.dart

import 'package:duckduckgo_search/duckduckgo_search.dart';

void main() {
  var search = DuckDuckGoSearch();
  search.text('reddit.com/r/dartlang', maxResults: 1).then((value) {
    for (var entry in value) {
      print("Title: ${entry.title}");
      print("Link: ${entry.link}");
      print("Body: ${entry.body}");
    }
  });
}