{
"items": [
{
"type": "post",
"id": "t3_g53lxf",
"title": "Lad wrote a Python script to download Alexa voice recordings, he didn't expect this email.",
"url": "https://www.reddit.com/r/Python/comments/g53lxf/lad_wrote_a_python_script_to_download_alexa_voice/",
"link_url": "https://i.redd.it/2s0dj8ob12u41.png",
"author": "iEslam",
"subreddit": "Python",
"score": 12343,
"comments_count": 133,
"created_at": "2020-04-20T23:11:39Z",
"domain": "i.redd.it",
"rank": 1,
"is_nsfw": false,
"is_promoted": false,
"is_spoiler": false,
"is_original_content": false,
"crossposts": 6,
"selftext": null,
"flair": "Discussion",
"author_fullname": "t2_g532u",
"position": 1,
"_type": "post",
"source": "reddit-scraper",
"platform": "reddit",
"fetched_at": "2026-10-02T10:07:17.035Z",
"short_id": "g53lxf",
"post_url": "https://www.reddit.com/r/Python/comments/g53lxf/lad_wrote_a_python_script_to_download_alexa_voice/",
"post_id": "g53lxf",
"text": "Lad wrote a Python script to download Alexa voice recordings, he didn't expect this email.",
"author_handle": "iEslam",
"author_id": "t2_g532u",
"posted_at": "2020-04-20T23:11:39Z",
"likes": 12343
},
{
"type": "post",
"id": "t3_hoolsm",
"title": "This post has:",
"url": "https://www.reddit.com/r/Python/comments/hoolsm/this_post_has/",
"link_url": "https://www.reddit.com/r/Python/comments/hoolsm/this_post_has/",
"author": "Krukerfluk",
"subreddit": "Python",
"score": 9232,
"comments_count": 429,
"created_at": "2020-07-10T13:06:13Z",
"domain": "self.Python",
"rank": 2,
"is_nsfw": false,
"is_promoted": false,
"is_spoiler": false,
"is_original_content": false,
"crossposts": 1,
"selftext": null,
"flair": "I Made This",
"author_fullname": "t2_4t5wv9jj",
"position": 2,
"_type": "post",
"source": "reddit-scraper",
"platform": "reddit",
"fetched_at": "2026-10-02T10:07:17.035Z",
"short_id": "hoolsm",
"post_url": "https://www.reddit.com/r/Python/comments/hoolsm/this_post_has/",
"post_id": "hoolsm",
"text": "This post has:",
"author_handle": "Krukerfluk",
"author_id": "t2_4t5wv9jj",
"posted_at": "2020-07-10T13:06:13Z",
"likes": 9232
}
],
"errors": [],
"partial": false,
"warnings": [],
"summary": {
"itemCount": 60,
"errorCount": 0,
"mode": "subreddit",
"pagesFetched": 3,
"postsReturned": 60,
"fetchedInSeconds": 10.99
},
"next_cursor": null
}
curl --location --request GET 'https://zylalabs.com/api/15170/reddit+scraper+api/40457/reddit+scraper+api+with+query+parameters?mode=subreddit&sort=hot&time=all&limit=50&retries=4' --header 'Authorization: Bearer YOUR_API_KEY'
{
"data": {
"items": [
{
"type": "post",
"id": "t3_g53lxf",
"title": "Lad wrote a Python script to download Alexa voice recordings, he didn't expect this email.",
"url": "https://www.reddit.com/r/Python/comments/g53lxf/lad_wrote_a_python_script_to_download_alexa_voice/",
"link_url": "https://i.redd.it/2s0dj8ob12u41.png",
"author": "iEslam",
"subreddit": "Python",
"score": 12339,
"comments_count": 133,
"created_at": "2020-04-20T23:11:39Z",
"domain": "i.redd.it",
"rank": 1,
"is_nsfw": false,
"is_promoted": false,
"is_spoiler": false,
"is_original_content": false,
"crossposts": 6,
"selftext": null,
"flair": "Discussion",
"author_fullname": "t2_g532u",
"position": 1,
"_type": "post",
"source": "reddit-scraper",
"platform": "reddit",
"fetched_at": "2026-11-21T11:14:06.044Z",
"short_id": "g53lxf",
"post_url": "https://www.reddit.com/r/Python/comments/g53lxf/lad_wrote_a_python_script_to_download_alexa_voice/",
"post_id": "g53lxf",
"text": "Lad wrote a Python script to download Alexa voice recordings, he didn't expect this email.",
"author_handle": "iEslam",
"author_id": "t2_g532u",
"posted_at": "2020-04-20T23:11:39Z",
"likes": 12339
},
{
"type": "post",
"id": "t3_hoolsm",
"title": "This post has:",
"url": "https://www.reddit.com/r/Python/comments/hoolsm/this_post_has/",
"link_url": "https://www.reddit.com/r/Python/comments/hoolsm/this_post_has/",
"author": "Krukerfluk",
"subreddit": "Python",
"score": 9232,
"comments_count": 429,
"created_at": "2020-07-10T13:06:13Z",
"domain": "self.Python",
"rank": 2,
"is_nsfw": false,
"is_promoted": false,
"is_spoiler": false,
"is_original_content": false,
"crossposts": 1,
"selftext": null,
"flair": "I Made This",
"author_fullname": "t2_4t5wv9jj",
"position": 2,
"_type": "post",
"source": "reddit-scraper",
"platform": "reddit",
"fetched_at": "2026-11-21T11:14:06.044Z",
"short_id": "hoolsm",
"post_url": "https://www.reddit.com/r/Python/comments/hoolsm/this_post_has/",
"post_id": "hoolsm",
"text": "This post has:",
"author_handle": "Krukerfluk",
"author_id": "t2_4t5wv9jj",
"posted_at": "2020-07-10T13:06:13Z",
"likes": 9232
},
{
"type": "post",
"id": "t3_gftejm",
"title": "I redesign the Python logo to make it more modern",
"url": "https://www.reddit.com/r/Python/comments/gftejm/i_redesign_the_python_logo_to_make_it_more_modern/",
"link_url": "https://i.redd.it/rxezjyf4ojx41.png",
"author": "jessjwilliamson",
"subreddit": "Python",
"score": 7870,
"comments_count": 262,
"created_at": "2020-05-08T13:39:09Z",
"domain": "i.redd.it",
"rank": 3,
"is_nsfw": false,
"is_promoted": false,
"is_spoiler": false,
"is_original_content": false,
"crossposts": 2,
"selftext": null,
"flair": "I Made This",
"author_fullname": "t2_2s1icki5",
"position": 3,
"_type": "post",
"source": "reddit-scraper",
"platform": "reddit",
"fetched_at": "2026-11-21T11:14:06.044Z",
"short_id": "gftejm",
"post_url": "https://www.reddit.com/r/Python/comments/gftejm/i_redesign_the_python_logo_to_make_it_more_modern/",
"post_id": "gftejm",
"text": "I redesign the Python logo to make it more modern",
"author_handle": "jessjwilliamson",
"author_id": "t2_2s1icki5",
"posted_at": "2020-05-08T13:39:09Z",
"likes": 7870
},
{
"type": "post",
"id": "t3_7kpme8",
"title": "Automate the boring stuff with python - tinder",
"url": "https://www.reddit.com/r/Python/comments/7kpme8/automate_the_boring_stuff_with_python_tinder/",
"link_url": "https://gfycat.com/PointlessSimplisticAmericanquarterhorse",
"author": "backprop88",
"subreddit": "Python",
"score": 6719,
"comments_count": 324,
"created_at": "2017-12-19T00:47:56Z",
"domain": "gfycat.com",
"rank": 4,
"is_nsfw": false,
"is_promoted": false,
"is_spoiler": false,
"is_original_content": false,
"crossposts": 3,
"selftext": null,
"flair": null,
"author_fullname": "t2_166doo",
"position": 4,
"_type": "post",
"source": "reddit-scraper",
"platform": "reddit",
"fetched_at": "2026-11-21T11:14:06.044Z",
"short_id": "7kpme8",
"post_url": "https://www.reddit.com/r/Python/comments/7kpme8/automate_the_boring_stuff_with_python_tinder/",
"post_id": "7kpme8",
"text": "Automate the boring stuff with python - tinder",
"author_handle": "backprop88",
"author_id": "t2_166doo",
"posted_at": "2017-12-19T00:47:56Z",
"likes": 6719
},
{
"type": "post",
"id": "t3_irh8l0",
"title": "I'm excited to share my first published book, Introduction to Python Programming for Business and Social Science Applications -- specifically geared towards students not specifically in computer science",
"url": "https://www.reddit.com/r/Python/comments/irh8l0/im_excited_to_share_my_first_published_book/",
"link_url": "https://i.redd.it/ebmh8z3c8rm51.png",
"author": "paulkaefer",
"subreddit": "Python",
"score": 6501,
"comments_count": 248,
"created_at": "2020-09-12T17:53:16Z",
"domain": "i.redd.it",
"rank": 5,
"is_nsfw": false,
"is_promoted": false,
"is_spoiler": false,
"is_original_content": false,
"crossposts": 1,
"selftext": null,
"flair": "Resource",
"author_fullname": "t2_bcj00",
"position": 5,
"_type": "post",
"source": "reddit-scraper",
"platform": "reddit",
"fetched_at": "2026-11-21T11:14:06.044Z",
"short_id": "irh8l0",
"post_url": "https://www.reddit.com/r/Python/comments/irh8l0/im_excited_to_share_my_first_published_book/",
"post_id": "irh8l0",
"text": "I'm excited to share my first published book, Introduction to Python Programming for Business and Social Science Applications -- specifically geared towards students not specifically in computer science",
"author_handle": "paulkaefer",
"author_id": "t2_bcj00",
"posted_at": "2020-09-12T17:53:16Z",
"likes": 6501
},
{
"type": "post",
"id": "t3_gn9add",
"title": "Drawing Mona Lisa with 256 circles using evolution [Github repo in comments]",
"url": "https://www.reddit.com/r/Python/comments/gn9add/drawing_mona_lisa_with_256_circles_using/",
"link_url": "https://v.redd.it/nyzyx7uyfwz41",
"author": "Itwist101",
"subreddit": "Python",
"score": 5719,
"comments_count": 117,
"created_at": "2020-05-20T10:58:14Z",
"domain": "v.redd.it",
"rank": 6,
"is_nsfw": false,
"is_promoted": false,
"is_spoiler": false,
"is_original_content": false,
"crossposts": 0,
"selftext": null,
"flair": "I Made This",
"author_fullname": "t2_1rvizv1g",
"position": 6,
"_type": "post",
"source": "reddit-scraper",
"platform": "reddit",
"fetched_at": "2026-11-21T11:14:06.044Z"
}
]
},
"_note": "Response truncated for documentation purposes"
}
curl --location --request POST 'https://zylalabs.com/api/15170/reddit+scraper+api/40458/reddit+scraper+api+with+a+json+request+body' --header 'Authorization: Bearer YOUR_API_KEY'
--data-raw '{"mode":"subreddit","subreddit":"python","sort":"top","time":"all","limit":60,"retries":4}'
Após se cadastrar, cada desenvolvedor recebe uma chave de acesso à API pessoal, uma combinação única de letras e dígitos para acessar nosso endpoint de API. Para autenticar com a Extrator do Reddit API basta incluir seu token Bearer no cabeçalho Authorization.
| Cabeçalho | Descrição |
|---|---|
Authorization
|
Obrigatório
Deve ser Bearer access_key. Veja "Sua chave de acesso à API" acima quando você estiver inscrito.
|
Sem compromisso de longo prazo. Faça upgrade, downgrade ou cancele a qualquer momento. O teste gratuito inclui até 50 requisições.
Coletar publicações de subreddits do Reddit, resultados de pesquisa e uma publicação com seus comentários visíveis, pontuações e links de resposta
A API retorna publicações de listagens de subreddits, resultados de pesquisa do Reddit e dados de publicações individuais com comentários visíveis. Os registros das publicações podem incluir títulos, texto, autores, nomes de subreddits, pontuações, contagens de comentários, links, marcações de tempo, domínios, flairs, sinalizações de conteúdo adulto ou spoiler e contagens de publicações cruzadas. .
A API oferece suporte a solicitações GET com parâmetros de consulta e solicitações POST com um corpo JSON. Ambos os métodos fornecem acesso a listagens de subreddits, pesquisas globais ou em comunidades e dados de publicações ou comentários
Use as opções de listagem para selecionar um subreddit, um método de classificação e um período. Esses controles permitem acessar diferentes visualizações do conteúdo da comunidade, como publicações classificadas de um período selecionado
A pesquisa pode ser realizada globalmente ou em uma comunidade específica. As solicitações de pesquisa oferecem suporte à paginação por cursor, permitindo solicitar conjuntos de resultados subsequentes usando o cursor retornado pela resposta anterior. .
Os resultados são retornados como linhas identificadas por um tipo, como `post` ou `comment` As publicações incluem links permanentes públicos e metadados do conteúdo, enquanto os comentários podem incluir texto visível, pontuações, autores e links ou relações de resposta .
As respostas GET expõem um array `items` no nível superior As respostas POST colocam o array `items` dentro de um objeto `data` Cada item é um registro estruturado e campos como `rank` e `position` podem indicar sua ordem nos resultados
`id` é o identificador do Reddit, `url` é o link permanente público do Reddit e `link_url` é a mídia ou o destino vinculado. `score` é a pontuação exibida, `comments_count` é o total de comentários, `created_at` é um registro de data e hora ISO 8601 e `is_nsfw`, `is_spoiler` e `is_promoted` são sinalizadores de conteúdo. .
Trate um array `items` vazio como nenhum registro correspondente ou disponível. Alguns campos podem ser nulos, como `selftext` em publicações com links. Verifique cada campo antes de usá-lo e use os cursores de paginação retornados para continuar as buscas quando houver mais resultados disponíveis.