# Discourses API get just the number of search results

**URL:** <https://meta.discourse.org/t/discourses-api-get-just-the-number-of-search-results/76548>\
**Category:** Development\
**Tags:** rest-api\
**Created:** [2017 年12 月 21 日 10:18 UTC](https://meta.discourse.org/t/discourses-api-get-just-the-number-of-search-results/76548 "2017-12-21T10:18:45Z")\
**Posts on this page:** 1\
**Showing post:** 8

<div class="post-metadata">

作者： ![vsoch](https://sea3.discourse-cdn.com/meta/user_avatar/meta.discourse.org/vsoch/32/124967_2.png) [@vsoch](https://meta.discourse.org/u/vsoch)\
发布日期： [2019 年10 月 19 日 15:41 UTC](https://meta.discourse.org/t/discourses-api-get-just-the-number-of-search-results/76548/8 "2019-10-19T15:41:36Z")

</div>

谢谢！这完全奏效了，而且用 Python 的 requests 库做起来_太_轻松了（我故意把 Ruby 搞复杂些，以便更熟悉它，但那个客户端缺少我需要的功能）。导出工作基本完成了，我还没开始做机器学习相关的事，不过如果有人对我调用的 API 感兴趣，我的快速脚本在这里：[https://github.com/hpsee/discourse-cluster。希望很快能做一些很酷的聚类分析！](https://github.com/hpsee/discourse-cluster%E3%80%82%E5%B8%8C%E6%9C%9B%E5%BE%88%E5%BF%AB%E8%83%BD%E5%81%9A%E4%B8%80%E4%BA%9B%E5%BE%88%E9%85%B7%E7%9A%84%E8%81%9A%E7%B1%BB%E5%88%86%E6%9E%90%EF%BC%81)

---

_[View the full topic](https://meta.discourse.org/t/discourses-api-get-just-the-number-of-search-results/76548)._
