R Web Scraping and APIs

r
web-scraping
rvest
selenium
api
httr
Tutorials and packages for scraping websites, automating browsers, and calling web APIs from R.
Published

31 October 2026

This guide collects tutorials and packages for getting data from the web with R, whether by scraping pages, driving a browser, or calling an API. Begin with the three picks under Start here, then use the other sections as your project needs them. Check a site’s terms and robots.txt rules before scraping it. Sources of ready-made datasets are on the Data page.

Start here

Scraping pages

Browser automation with Selenium

APIs and JSON