noffily/duckduckgo-images-api
Composer 安装命令:
composer require noffily/duckduckgo-images-api
包简介
Duckduckgo unofficial images api for PHP.
README 文档
README
This is unofficial DuckDuckGo images API client and created just for fun.
Please, use that package carefully and only for education purposes.
The official API is https://duckduckgo.com/api
The code for this package is based on ideas from python package
Install
composer require noffily/duckduckgo-images-api
Example usage
use DuckDuckGoImages\Client; $client = new Client(); print_r($client->getImages('cars'));
Returns such as:
Array
(
[ads] =>
[next] => i.js?q=cars&o=json&p=-1&s=100&u=bing&f=,,,&l=wt-wt
[query] => cars
[queryEncoded] => cars
[response_type] => places
[results] => Array
(
[0] => Array
(
[height] => 1067
[image] => http://example.com/image.jpg
[source] => Bing
[thumbnail] => http://example.com/thumbnail.jpg
[title] => Awesome car
[url] => http://example.com/url
[width] => 1600
)
...
)
[vqd] => Array
(
[cars] => 3-47107992990464668095541999824506671634-149382371238630188221044527126906250971
)
)
License
统计信息
- 总下载量: 52
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 1
- 点击次数: 3
- 依赖项目数: 0
- 推荐数: 0
其他信息
- 授权协议: MIT
- 更新时间: 2021-10-13