## 中文同义词/反义词查询 >[danger]### 免费接口,每日100次免费调用,会员可不限次数调用,购买[API会员](https://market.topthink.com/product/210) ![](https://img.kancloud.cn/58/03/5803ad99b63b6fdef91f7f98dc4a34b8_171x165.png) > 查询词语的同义词、反义词。 ## 接口调用([调用须知](https://docs.topthink.com/think-api/1835086)) ### 请求地址 ``` GET https://api.topthink.com/xinhua/resemble ``` ### 请求参数 | 名称 | 必填 | 类型 | 说明 | | --- | --- | --- | --- | | appCode| 是 |string| 用户授权码,参考[API调用](https://docs.topthink.com/think-api/1835086) | | word | 是 | string | 要查询的词语,如:希望 | | type | 否 | string | 查询类型,1:同义词 2:反义词,默认1 | ### 返回`data`参数 | 名称 | 类型 | 示例值 | 描述 | | --- | --- | --- | --- | |见返回示例 ## SDK调用 ``` $client = new Client("YourAppCode"); $result = $client->xinhuaResemble() ->withWord('伤心') ->withType(1) ->request(); dump($result); ``` 返回数据示例: ~~~ { "message": "查询成功", "data": { "type": "2", "words": [ "失望", "绝望" ] }, "code": 0 } ~~~