English | 简体中文 | 繁體中文 | 日本語 | 한국어 | Русский | Deutsch | Français | Español | Italiano | Português
(この言語のドキュメントはAIによって翻訳されています。不明な点があれば、簡体字中国語または英語のドキュメントを参照してください)
LessAPI-DuckDuckGo は、搜索引擎APIサービスです。 playwright と DuckDuckGo 検索エンジンを基に、単純なAPIインターフェースを実装しています。 シンプルで軽量、信頼性が高く、Dockerによるデプロイメントと保守が容易です。
実験的に開発中であり、本番環境での使用は推奨されていません。
リクエストパラメータ:
- keyword: 検索キーワード(必須)
- region: 地域(任意) en-US, fr-FR, zh-CN, ru-RU, など。デフォルト値は en-US
- maxCount: 最大返信数(任意) デフォルト値は 20
- viaProxyUrl: ブラウザが使用するプロキシのアドレス(任意) 例: http://proxy.server:3000 デフォルト値は空
リクエスト例:
curl 'http://127.0.0.1:8080/search/text?keyword=hello&maxCount=2'
レスポンス例:
{
"code": "success",
"data": {
"results": [
{
"order": 1,
"title": "Adele - Hello (Official Music Video) - YouTube",
"url": "https://www.youtube.com/watch?v=YQHsXMglC9A",
"description": "Listen to \"Easy On Me\" here: http://Adele.lnk.to/EOMPre-order Adele's new album \"30\" before its release on November 19: https://www.adele.comShop the \"Adele..."
},
{
"order": 2,
"title": "Hello Definition & Meaning - Merriam-Webster",
"url": "https://www.merriam-webster.com/dictionary/hello",
"description": "Learn the origin, usage, and synonyms of the word hello, an expression or gesture of greeting. See examples of hello in sentences and related words from the dictionary."
}
]
}
}