## 历史上的今天 >[danger]### 免费接口,每日100次免费调用,会员可不限次数调用,购买[API会员](https://market.topthink.com/product/210) ![](https://img.kancloud.cn/41/42/41422266a056892645fb7280943058bb_213x208.png =120x) > 回顾历史的长河,历史是生活的一面镜子 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ## 接口1:根据日期查询事件 ### 请求地址 ``` GET https://api.topthink.com/today/event ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | appCode| 是| string|用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | |  date| 是 | string | 日期,格式:月/日 如:1/1,/10/1,12/12 如月或者日小于10,前面无需加0 | ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | day | string | 日期 | | date | string | 事件日期 | | e\_id | int | 事件id,即下一接口中所用的eId | | title | string | 事件标题 | ### SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->todayEvent() ->withDate('8/1') ->request(); dump($result); ``` ## 接口2:根据事件id查询详细信息 ### 请求地址 ``` https://api.topthink.com/today/detail ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | |  eId| 是 | int | 事件id| ### 返回`data`参数 | 名称 | 类型 | 说明 | | --- | --- | --- | | e\_id | string | 事件id | | content | string | 事件详情 | | picNo | string | 图片数量 | | picUrl | string | 图片地址 | | title | string | 事件标题 | ### SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->todayDetail() ->withEId('事件id') ->request(); dump($result); ```