APIs / Search engines / Baidu
1 credit per call8 endpoints9 datapointsChecked working 6 Dec 2026
Baidu API
Baidu API for web search, news, images, maps, trending, autocomplete and developer search results as JSON. 8 endpoints, 1 credit per successful call.
{
"search_parameters": {
"engine": "baidu_developer_search",
"query": "Laravel API",
"page": 1,
"limit": 10
},
"developer_results": [
{
"position": 1,
"title": "php - Laravel-API实践教程 - 个人文章 - SegmentFault 思否",
"link": "http://segmentfault.com/a/1190000039088907",
"snippet": "发布于 2021-01-26 概述 Laravel 是一个非常流行的 PHP 框架,我们可以使用它快速构建一个 WEB 应用程序。而现在 WEB 应用中多会采用前后端分离技术,所以我们经常会遇到使用 Laravel 搭建 API 项目的需求。 Laravel 在提供 API 这方面,很多地方都只",
"site": "segmentfault.com",
"full_site": "segmentfault.com",
"resource_type": "BLOG",
"published_at": "2021-01-26 00:00:00",
"up_votes": 0
},
{
"position": 2,
"title": "3分钟短文:太爽了,用Laravel写API接口! - 掘金",
"link": "http://juejin.cn/post/6884960930220736526",
"snippet": "引言 我们一直在讲,通过路由传达到控制器,处理好数据并渲染到视图,但是对于现代的应用,前后端分离的情况下,后端写个接口就完事儿了。本期为大家说一说用laravel写restful风格的API,看看能有多简单。以路由开端 写API接口,与传统的渲染前端模板页面有什么区别?少了视图,只需要准备好数据,并",
"site": "juejin.cn",
"full_site": "juejin.cn",
"resource_type": "BLOG",
"published_at": "2020-10-18 22:08:00",
"up_votes": 0
},
{
"position": 3,
"title": "详解Laravel制作API接口 - 编程宝库",
"link": "http://www.codebaoku.com/it-php/it-php-213714.html",
"snippet": "需要注意的是:API有它的具体用途,我们应该清楚它是干啥的。访问API的时候应该输入什么。访问过API过后应该得到什么。 在开始设计API时,我们应该注意这8点。后续的开发计划就围绕着这个进行了。 1.Restful设计原则 2.API的命名 3.API的安全性 4.API返回数据 5.图片的处理",
"site": "codebaoku.com",
"full_site": "www.codebaoku.com",
"resource_type": "TUTORIALS",
"published_at": "2021-09-27 00:09:09",
"up_votes": 0
}
],
"search_information": {
"query_displayed": "Laravel API",
"total_results": 100,
"results_on_page": 10,
"page": 1,
"limit": 10,
"upstream_page_size": 10
},
"pagination": {
"page": 1,
"limit": 10,
"results_on_page": 10,
"total_results": 100,
"has_more": true,
"next_page": 2
},
"results": {
"documents": {
"pageNum": 1,
"pageSize": 10,
"totalCount": 100,
"data": [
{
"techDocDigest": {
"url": "http://segmentfault.com/a/1190000039088907",
"title": "php - Laravel-API实践教程 - 个人文章 - SegmentFault 思否",
"summary": "发布于 2021-01-26 概述 Laravel 是一个非常流行的 PHP 框架,我们可以使用它快速构建一个 WEB 应用程序。而现在 WEB 应用中多会采用前后端分离技术,所以我们经常会遇到使用 Laravel 搭建 API 项目的需求。 Laravel 在提供 API 这方面,很多地方都只",
"upCount": 0,
"feedbackType": "CANCEL",
"weight": "0.9710",
"resourceType": "BLOG",
"publishTime": "2021-01-26 00:00:00",
"site": "segmentfault.com",
"fullSite": "segmentfault.com",
"similarId": "OOcDOi7x",
"similarWeight": "0.9",
"realTitle": "Laravel-API实践教程",
"score": 0.9960849285125732
}
},
{
"techDocDigest": {
"url": "http://juejin.cn/post/6884960930220736526",
"title": "3分钟短文:太爽了,用Laravel写API接口! - 掘金",
"summary": "引言 我们一直在讲,通过路由传达到控制器,处理好数据并渲染到视图,但是对于现代的应用,前后端分离的情况下,后端写个接口就完事儿了。本期为大家说一说用laravel写restful风格的API,看看能有多简单。以路由开端 写API接口,与传统的渲染前端模板页面有什么区别?少了视图,只需要准备好数据,并",
"upCount": 0,
"feedbackType": "CANCEL",
"weight": "0.9760",
"resourceType": "BLOG",
"publishTime": "2020-10-18 22:08:00",
"site": "juejin.cn",
"fullSite": "juejin.cn",
"similarId": "",
"similarWeight": "",
"realTitle": "3分钟短文:太爽了,用Laravel写API接口!",
"score": 0.9949394464492798
}
},
{
"techDocDigest": {
"url": "http://www.codebaoku.com/it-php/it-php-213714.html",
"title": "详解Laravel制作API接口 - 编程宝库",
"summary": "需要注意的是:API有它的具体用途,我们应该清楚它是干啥的。访问API的时候应该输入什么。访问过API过后应该得到什么。 在开始设计API时,我们应该注意这8点。后续的开发计划就围绕着这个进行了。 1.Restful设计原则 2.API的命名 3.API的安全性 4.API返回数据 5.图片的处理",
"upCount": 0,
"feedbackType": "CANCEL",
"weight": "",
"resourceType": "TUTORIALS",
"publishTime": "2021-09-27 00:09:09",
"site": "codebaoku.com",
"fullSite": "www.codebaoku.com",
"similarId": "",
"similarWeight": "",
"realTitle": "详解Laravel制作API接口",
"score": 0.994088888168335
}
}
],
"dataSize": 10
},
"wordseg": [
"laravel",
"api"
],
"source": "aurora"
},
"data": {
"status": "OK",
"message": "操作成功!",
"data": {
"documents": {
"pageNum": 1,
"pageSize": 10,
"totalCount": 100,
"data": [
{
"techDocDigest": "…"
},
{
"techDocDigest": "…"
},
{
"techDocDigest": "…"
}
],
"dataSize": 10
},
"wordseg": [
"laravel",
"api"
],
"source": "aurora"
}
},
"response_time_ms": 4581
}Sample data
What one call returns
A recorded run of developer-search: the fields and shapes you will get, shortened to 3 items.
| # | positioninteger | titlestring | linkurl | snippetstring | sitestring | full_sitestring | resource_typestring | published_atstring | up_votesinteger |
|---|---|---|---|---|---|---|---|---|---|
| 1 | 1 | php - Laravel-API实践教程 - 个人文章 - SegmentFault 思否 | http://segmentfault.com/a/1190000039088907 | 发布于 2021-01-26 概述 Laravel 是一个非常流行的 PHP 框架,我们可以使用它快速构建一个 WEB 应用程序。而现在 WEB 应用中多会采用前后端分离技术,所以我们经常会遇到使用 Laravel 搭建 API 项目的需求。 Laravel 在提供 API 这方面,很多地方都只 | segmentfault.com | segmentfault.com | BLOG | 2021-01-26 00:00:00 | 0 |
| 2 | 2 | 3分钟短文:太爽了,用Laravel写API接口! - 掘金 | http://juejin.cn/post/6884960930220736526 | 引言 我们一直在讲,通过路由传达到控制器,处理好数据并渲染到视图,但是对于现代的应用,前后端分离的情况下,后端写个接口就完事儿了。本期为大家说一说用laravel写restful风格的API,看看能有多简单。以路由开端 写API接口,与传统的渲染前端模板页面有什么区别?少了视图,只需要准备好数据,并 | juejin.cn | juejin.cn | BLOG | 2020-10-18 22:08:00 | 0 |
| 3 | 3 | 详解Laravel制作API接口 - 编程宝库 | http://www.codebaoku.com/it-php/it-php-213714.html | 需要注意的是:API有它的具体用途,我们应该清楚它是干啥的。访问API的时候应该输入什么。访问过API过后应该得到什么。 在开始设计API时,我们应该注意这8点。后续的开发计划就围绕着这个进行了。 1.Restful设计原则 2.API的命名 3.API的安全性 4.API返回数据 5.图片的处理 | codebaoku.com | www.codebaoku.com | TUTORIALS | 2021-09-27 00:09:09 | 0 |
[
{
"position": 1,
"title": "php - Laravel-API实践教程 - 个人文章 - SegmentFault 思否",
"link": "http://segmentfault.com/a/1190000039088907",
"snippet": "发布于 2021-01-26 概述 Laravel 是一个非常流行的 PHP 框架,我们可以使用它快速构建一个 WEB 应用程序。而现在 WEB 应用中多会采用前后端分离技术,所以我们经常会遇到使用 Laravel 搭建 API 项目的需求。 Laravel 在提供 API 这方面,很多地方都只",
"site": "segmentfault.com",
"full_site": "segmentfault.com",
"resource_type": "BLOG",
"published_at": "2021-01-26 00:00:00",
"up_votes": 0
},
{
"position": 2,
"title": "3分钟短文:太爽了,用Laravel写API接口! - 掘金",
"link": "http://juejin.cn/post/6884960930220736526",
"snippet": "引言 我们一直在讲,通过路由传达到控制器,处理好数据并渲染到视图,但是对于现代的应用,前后端分离的情况下,后端写个接口就完事儿了。本期为大家说一说用laravel写restful风格的API,看看能有多简单。以路由开端 写API接口,与传统的渲染前端模板页面有什么区别?少了视图,只需要准备好数据,并",
"site": "juejin.cn",
"full_site": "juejin.cn",
"resource_type": "BLOG",
"published_at": "2020-10-18 22:08:00",
"up_votes": 0
},
{
"position": 3,
"title": "详解Laravel制作API接口 - 编程宝库",
"link": "http://www.codebaoku.com/it-php/it-php-213714.html",
"snippet": "需要注意的是:API有它的具体用途,我们应该清楚它是干啥的。访问API的时候应该输入什么。访问过API过后应该得到什么。 在开始设计API时,我们应该注意这8点。后续的开发计划就围绕着这个进行了。 1.Restful设计原则 2.API的命名 3.API的安全性 4.API返回数据 5.图片的处理",
"site": "codebaoku.com",
"full_site": "www.codebaoku.com",
"resource_type": "TUTORIALS",
"published_at": "2021-09-27 00:09:09",
"up_votes": 0
}
]position,title,link,snippet,site,full_site,resource_type,published_at,up_votes 1,php - Laravel-API实践教程 - 个人文章 - SegmentFault 思否,http://segmentfault.com/a/1190000039088907,发布于 2021-01-26 概述 Laravel 是一个非常流行的 PHP 框架,我们可以使用它快速构建一个 WEB 应用程序。而现在 WEB 应用中多会采用前后端分离技术,所以我们经常会遇到使用 Laravel 搭建 API 项目的需求。 Laravel 在提供 API 这方面,很多地方都只,segmentfault.com,segmentfault.com,BLOG,2021-01-26 00:00:00,0 2,3分钟短文:太爽了,用Laravel写API接口! - 掘金,http://juejin.cn/post/6884960930220736526,引言 我们一直在讲,通过路由传达到控制器,处理好数据并渲染到视图,但是对于现代的应用,前后端分离的情况下,后端写个接口就完事儿了。本期为大家说一说用laravel写restful风格的API,看看能有多简单。以路由开端 写API接口,与传统的渲染前端模板页面有什么区别?少了视图,只需要准备好数据,并,juejin.cn,juejin.cn,BLOG,2020-10-18 22:08:00,0 3,详解Laravel制作API接口 - 编程宝库,http://www.codebaoku.com/it-php/it-php-213714.html,需要注意的是:API有它的具体用途,我们应该清楚它是干啥的。访问API的时候应该输入什么。访问过API过后应该得到什么。 在开始设计API时,我们应该注意这8点。后续的开发计划就围绕着这个进行了。 1.Restful设计原则 2.API的命名 3.API的安全性 4.API返回数据 5.图片的处理,codebaoku.com,www.codebaoku.com,TUTORIALS,2021-09-27 00:09:09,0
Recorded 12 Nov 2026 · 3 items shown · 9 datapoints per itemGET /v1/baidu/developer-search?query=Laravel+API
9 datapoints
Identity
- titlestring
- resource_typestring
Contact
- linkurl
Other
- positioninteger
- snippetstring
- sitestring
- full_sitestring
- published_atstring
- up_votesinteger
Playground
Run this API
curl "https://api.perceptlayer.com/v1/baidu/developer-search?query=Laravel+API" \
-H "X-API-Key: $API_KEY"Baidu · 8 endpoints
Endpoints
Every endpoint takes the same key. Open one for its parameters, the fields it returns and an example request.
| Endpoint | Required parameters | Returns | Cost |
|---|---|---|---|
GET/v1/baidu/autocomplete | query | pgslidqueryid | 1 credit |
GET/v1/baidu/developer-search | query+2 optional | data | 1 credit |
GET/v1/baidu/images | query+2 optional | queryEncqueryExtqueryFeatureaiEditDataSampleaigcEditBtnStylelistNum+7 more | 1 credit |
GET/v1/baidu/maps | querycity+1 optional | search_parameterslocal_resultspaginationresponse_time_ms | 1 credit |
GET/v1/baidu/news | query+2 optional | search_parametersnews_resultspaginationresponse_time_ms | 1 credit |
GET/v1/baidu/search | query+2 optional | formatfeed | 1 credit |
GET/v1/baidu/translation-suggestions | query | errnodatalogid | 1 credit |
GET/v1/baidu/trending | none+1 optional | JSON | 1 credit |
Overview
About the Baidu API
What you can get
The Baidu API returns Baidu results as JSON through 8 endpoints. Each one takes a query.
- Web:
searchanddeveloper-searchtake aquery. - News:
newstakes aquery, withpageandperiod(hour, day, week, month or year). - Images:
imagestakes aquery. - Maps:
mapstakes aqueryand acity, withpage. - Keywords:
autocomplete,trendingandtranslation-suggestionstake aquery.
How a call works
Run a search: GET /v1/baidu/search?query=artificial%20intelligence with your key in the X-API-Key header. news and maps page with page. Every successful call costs 1 credit; failed calls cost nothing.
More search engines APIs
Use cases
Check what Baidu returns for your brand or product keywords
Use the Baidu API to check what Baidu returns for your brand or product keywordsFollow Baidu News coverage of a topic over the past day, week or month
Use the Baidu API to follow Baidu News coverage of a topic over the past day, week or monthSearch Baidu Maps for places by keyword in a given city
Use the Baidu API to search Baidu Maps for places by keyword in a given cityCollect autocomplete suggestions for Chinese keyword research
Use the Baidu API to collect autocomplete suggestions for Chinese keyword researchFAQ
Questions
Do I need a Baidu API key?
No. You call this Baidu API with your Perceptlayer key in the `X-API-Key` header, so there's no Baidu developer account to register.
How much does the Baidu API cost?
Each successful call costs one credit. New accounts get free credits to start, and credit packs bring the price down as you scale.
What format are responses in?
Every endpoint returns JSON, with no HTML parsing on your side.
Can I filter Baidu News by date?
Yes. `news` takes a `period` of hour, day, week, month or year.
Is this the official Baidu API?
No. Perceptlayer is an independent service and is not affiliated with Baidu. It returns Baidu data as JSON with a Perceptlayer key, so there is no Baidu developer account, app review or partner approval to get first. It only reads data: if Baidu has an official API and you need to act on your own Baidu account, such as posting, managing orders or reading private data, use that one.
Should I build a Baidu scraper instead?
You can, but a Baidu scraper is code you maintain: page changes break it, requests get blocked, and Baidu's terms govern how you collect data. The Baidu API gives you 8 endpoints of named JSON fields for 1 credit per successful call, and failed calls cost nothing. A scraper makes sense only for data these endpoints don't return, so check the response in the playground on this page first.
Try the Baidu API with 100 free credits
No credit card. Failed calls are never billed.