百度知道 OPEN API 接口规范文档 v1.0
目 录
1 背景................................................................................................................................................................6
2 规范适用对象说明........................................................................................................................................6
3 名词解释........................................................................................................................................................6
4 请求数据包格式规范....................................................................................................................................6
4.1 URL.....................................................................................................................................................6
4.2 参数.....................................................................................................................................................7
4.2.1 系统级参数.............................................................................................................................7
4.2.2 业务级参数的通用约定.........................................................................................................7
4.2.3 参数签名算法.........................................................................................................................7
5 响应数据包格式规范....................................................................................................................................8
5.1 XML 输出格式...................................................................................................................................8
5.2 json 输出格式.....................................................................................................................................9
5.3 错误响应输出格式............................................................................................................................9
6 错误码定义..................................................................................................................................................10
7 API 接口细则...............................................................................................................................................10
7.1 baidu.zhidao.getQuestionList...........................................................................................................10
7.1.1 功能........................................................................................................................................10
7.1.2 参数........................................................................................................................................11
7.1.3 返回值....................................................................................................................................11
7.2 baidu.zhidao.getQuestionSearch.......................................................................................................11
7.2.1 功能........................................................................................................................................11
7.2.2 参数........................................................................................................................................12
7.2.3 返回值....................................................................................................................................12
7.3 baidu.zhidao.getQuestionInfo...........................................................................................................12
7.3.1 功能........................................................................................................................................12
7.3.2 参数........................................................................................................................................13
7.3.3 返回值....................................................................................................................................13
7.4 baidu.zhidao.getQuestionAnswer.....................................................................................................14
7.4.1 功能........................................................................................................................................14
7.4.2 参数........................................................................................................................................14
7.4.3 返回值....................................................................................................................................14
7.5 baidu.zhidao.question.......................................................................................................................15
7.5.1 功能........................................................................................................................................15
7.5.2 参数........................................................................................................................................15
7.5.3 返回值....................................................................................................................................15
7.6 baidu.zhidao.answer..........................................................................................................................15
7.6.1 功能........................................................................................................................................15
7.6.2 参数........................................................................................................................................16
7.6.3 返回值....................................................................................................................................16
8 第三方提供 API 接口细则.........................................................................................................................16
9 附件及参考资料..........................................................................................................................................18
百度在线网络技术(北京)有限公司 - 4 -