gpt4 book ai didi

Instagram API/媒体/搜索最大计数参数?

转载 作者:行者123 更新时间:2023-12-01 13:45:55 27 4
gpt4 key购买 nike

当使用 Python 向 Instagram API 发出 GET 请求时,传递所需的变量,如下所示

photos = api.media_search(lat=latitude, lng=longitude, distance=distance, count=count)

我尝试将计数参数设置为超过 100,但 API 最多返回 100 个结果。

这是为 API 设置的限制还是我做错了什么?

最佳答案

Instagram API 文档说每个端点的 count 都有一个最大值,来自 docs :

On views where pagination is present, we also support the "count" parameter. Simply set this to the number of items you'd like to receive. Note that the default values should be fine for most applications - but if you decide to increase this number there is a maximum value defined on each endpoint.

但是,我在文档中找不到该数字的任何指示,media 也没有找到请求或其他请求。所以我假设他们不保证任何具体数字。

他们确实指定如果应用程序在 sandbox mode 中, 数据仅限于 20 个最近的媒体。

关于Instagram API/媒体/搜索最大计数参数?,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/36228087/

27 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com