Reddit post comments by post id
justoneapi.x.reddit-get-post-comments-v1Retrieves comments for a Reddit post with pagination-token support.
- Price
- $0.01476/successPelo preço do provedor
- Success rate
- —Ainda não há dados da taxa de sucessoLast 30 days · 2 calls
- Latency p50
- ——
- Last verified
- 28 de jul. de 2026Verified working
GEThttps://toolswitch.dev/v1/tools/justoneapi.x.reddit-get-post-comments-v1?cursor=0&postId=post_sortPreviewTry onlineEm breveProvider docs ↗
- Uses platform quota
- Synchronous response
- Reads public data
Parâmetros
| Parâmetro | Tipo | Obrigatório | Descrição | Exemplo |
|---|---|---|---|---|
| Parâmetros de consulta | ||||
cursor | string | Opcional | Pagination token for the next page of results. | |
postId | string | Obrigatório | The unique identifier of the Reddit post. | post_sort |
- Parâmetros de consulta
cursorstringOpcionalPagination token for the next page of results.
postIdstringObrigatórioThe unique identifier of the Reddit post.
Exemplo:
post_sort
Exemplos de código
Substitua $TOOLSWITCH_KEY pela chave criada no console.
Preview
curl -X GET 'https://toolswitch.dev/v1/tools/justoneapi.x.reddit-get-post-comments-v1?cursor=0&postId=post_sort' \
-H "X-Toolswitch-Key: $TOOLSWITCH_KEY"import os
import requests
response = requests.request(
"GET",
"https://toolswitch.dev/v1/tools/justoneapi.x.reddit-get-post-comments-v1?cursor=0&postId=post_sort",
headers={"X-Toolswitch-Key": os.environ["TOOLSWITCH_KEY"]},
)
response.raise_for_status()
print(response.text)const response = await fetch("https://toolswitch.dev/v1/tools/justoneapi.x.reddit-get-post-comments-v1?cursor=0&postId=post_sort", {
method: "GET",
headers: {
"X-Toolswitch-Key": process.env.TOOLSWITCH_KEY ?? "",
},
});
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
console.log(await response.text());Esta API de gateway está em prévia; a URL e a autenticação podem mudar. Os parâmetros do exemplo são dados de amostra. As chamadas são cobradas a $0.01476/success, incluindo a taxa de serviço.