curl --request POST \
--url https://api.brightdata.com/datasets/v3/scrape \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": [
{
"url": "<string>"
}
]
}
'[
{
"post_id": "1asdf12",
"url": "https://www.reddit.com/r/learnpython/comments/1asdf12/how_do_i_start_learning_python/",
"user_posted": "example_user",
"title": "How do I start learning Python?",
"description": "I'm a complete beginner...",
"num_upvotes": 1240,
"num_comments": 86,
"date_posted": "2026-03-14T18:22:00Z",
"tag": "Tutorial",
"community_name": "learnpython",
"community_url": "https://www.reddit.com/r/learnpython",
"community_description": "Subreddit for posting questions and asking for general advice about your Python code.",
"community_members_num": 1120000,
"community_rank": null,
"related_posts": [],
"comments": [],
"photos": [],
"videos": []
}
]
curl --request POST \
--url https://api.brightdata.com/datasets/v3/scrape \
--header 'Authorization: Bearer <token>' \
--header 'Content-Type: application/json' \
--data '
{
"input": [
{
"url": "<string>"
}
]
}
'[
{
"post_id": "1asdf12",
"url": "https://www.reddit.com/r/learnpython/comments/1asdf12/how_do_i_start_learning_python/",
"user_posted": "example_user",
"title": "How do I start learning Python?",
"description": "I'm a complete beginner...",
"num_upvotes": 1240,
"num_comments": 86,
"date_posted": "2026-03-14T18:22:00Z",
"tag": "Tutorial",
"community_name": "learnpython",
"community_url": "https://www.reddit.com/r/learnpython",
"community_description": "Subreddit for posting questions and asking for general advice about your Python code.",
"community_members_num": 1120000,
"community_rank": null,
"related_posts": [],
"comments": [],
"photos": [],
"videos": []
}
]
gd_lvz8ah06191smkebj4 to collect Posts by URL data.[
{
"post_id": "1asdf12",
"url": "https://www.reddit.com/r/learnpython/comments/1asdf12/how_do_i_start_learning_python/",
"user_posted": "example_user",
"title": "How do I start learning Python?",
"description": "I'm a complete beginner...",
"num_upvotes": 1240,
"num_comments": 86,
"date_posted": "2026-03-14T18:22:00Z",
"tag": "Tutorial",
"community_name": "learnpython",
"community_url": "https://www.reddit.com/r/learnpython",
"community_description": "Subreddit for posting questions and asking for general advice about your Python code.",
"community_members_num": 1120000,
"community_rank": null,
"related_posts": [],
"comments": [],
"photos": [],
"videos": []
}
]
Was this page helpful?