List Instagram comment replies
curl --request GET \
--url https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"aisa_pagination": {
"has_more": true,
"next_cursor": "<string>",
"next_param": "cursor"
}
}Instagram
List Instagram comment replies
Lists the replies to an Instagram comment, oldest first. Results are paged: when data.page.nextCursor is present, send it as cursor to get the next page. data.page.hasMore can be null when the response cannot tell whether more results exist.
GET
https://api.aisa.one
/
apis
/
v1
/
instagram
/
media
/
{media}
/
comments
/
{commentId}
/
replies
List Instagram comment replies
curl --request GET \
--url https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies \
--header 'Authorization: Bearer <token>'import requests
url = "https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies"
headers = {"Authorization": "Bearer <token>"}
response = requests.get(url, headers=headers)
print(response.text)const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};
fetch('https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies', options)
.then(res => res.json())
.then(res => console.log(res))
.catch(err => console.error(err));<?php
$curl = curl_init();
curl_setopt_array($curl, [
CURLOPT_URL => "https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies",
CURLOPT_RETURNTRANSFER => true,
CURLOPT_ENCODING => "",
CURLOPT_MAXREDIRS => 10,
CURLOPT_TIMEOUT => 30,
CURLOPT_HTTP_VERSION => CURL_HTTP_VERSION_1_1,
CURLOPT_CUSTOMREQUEST => "GET",
CURLOPT_HTTPHEADER => [
"Authorization: Bearer <token>"
],
]);
$response = curl_exec($curl);
$err = curl_error($curl);
curl_close($curl);
if ($err) {
echo "cURL Error #:" . $err;
} else {
echo $response;
}package main
import (
"fmt"
"net/http"
"io"
)
func main() {
url := "https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies"
req, _ := http.NewRequest("GET", url, nil)
req.Header.Add("Authorization", "Bearer <token>")
res, _ := http.DefaultClient.Do(req)
defer res.Body.Close()
body, _ := io.ReadAll(res.Body)
fmt.Println(string(body))
}HttpResponse<String> response = Unirest.get("https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies")
.header("Authorization", "Bearer <token>")
.asString();require 'uri'
require 'net/http'
url = URI("https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies")
http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true
request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'
response = http.request(request)
puts response.read_body{
"aisa_pagination": {
"has_more": true,
"next_cursor": "<string>",
"next_param": "cursor"
}
}
请求示例待验证。 此接口的请求示例尚未在生产环境验证。静态示例用于说明请求格式,请替换为自己的参数。正式调用前,可用免费的报价模式(X-AISA-Cost-Mode: quote)查看预估费用。
请求规范
- 方法与路径: GET /apis/v1/instagram/media/{media}/comments/{commentId}/replies
- 可用状态: enabled
- 请求 URL 模板:
https://api.aisa.one/apis/v1/instagram/media/{media}/comments/{commentId}/replies - commentId: path; 必填
- media: path; 必填
- cursor: query; 可选
{
"operationId": "instagram.media.media.comments.commentId.replies",
"method": "GET",
"path": "/apis/v1/instagram/media/{media}/comments/{commentId}/replies",
"servers": [
{
"url": "https://api.aisa.one"
}
],
"parameters": [
{
"in": "path",
"name": "commentId",
"required": true,
"schema": {
"description": "Id of the parent comment, from the comments endpoint.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "path",
"name": "media",
"required": true,
"schema": {
"description": "Shortcode, post or Reel URL, or numeric media id.",
"maxLength": 4096,
"minLength": 1,
"type": "string"
}
},
{
"in": "query",
"name": "cursor",
"required": false,
"schema": {
"description": "`nextCursor` from the previous page.",
"maxLength": 16384,
"minLength": 1,
"type": "string"
}
}
],
"security": [
{
"bearerAuth": []
}
],
"x-aisa-status": "enabled",
"components": {
"securitySchemes": {
"bearerAuth": {
"scheme": "bearer",
"type": "http"
}
}
}
}
费用与请求规则
按实际用量收费。 默认请求预估费用:$0.014 USD。 最终费用以实际用量为准。 账户适用价格可能不同;支持报价的接口可按实际请求获取报价。翻页
- 把
aisa_pagination.next_cursor作为cursor(查询参数)传入即可获取下一页;aisa_pagination.has_more为 false 时停止。 - 响应头
X-AISA-Has-More与X-AISA-Next-Cursor返回相同的值。
响应时间
- 通常 10 秒内返回。