In this example, we’ll retrieve data from Reddit, returning results based on the defined schema.Follow the steps below to use our AI Scraper API to extract Reddit data:
Replace Authorization with your API token and Set the URL to the Reddit.
The above request body will return the following JSON response:
Copy
Ask AI
{ "result": [ { "post_title": "Trump calls for prosecution of Google over search results he says favor Harris", "post_url": "https://www.reddit.com/r/technology/comments/1fqxltl/trump_calls_for_prosecution_of_google_over_search/", "post_date": "11 hr. ago", "post_username": "u/Puginator" }, { "post_title": "Meta has been fined €91M ($101M) after it was discovered that to 600 million Facebook and Instagram passwords had been stored in plain text.", "post_url": "https://www.reddit.com/r/technology/comments/1fqmjko/meta_has_been_fined_91m_101m_after_it_was/", "post_date": "20 hr. ago", "post_username": "u/a_Ninja_b0y" }, { "post_title": "Flaw in Kia’s web portal let researchers track, hack cars | Bug let researchers track millions of cars, unlock doors, and start engines at will.", "post_url": "https://www.reddit.com/r/technology/comments/1fqlf1q/flaw_in_kias_web_portal_let_researchers_track/", "post_date": "21 hr. ago", "post_username": "u/chrisdh79" } ], "tokenUsage": 4, "totalDone": 1}