Skip to content

httr2

Perform HTTP Requests and Process the Responses

v1.2.3 · Jun 22, 2026 · MIT + file LICENSE

Description

Tools for creating and modifying HTTP requests, then performing them and processing the results. 'httr2' is a modern re-imagining of 'httr' that uses a pipe-based interface and solves more of the problems that API wrapping packages face.

Downloads

CRAN

395.1K

Last 30 days

164th

1.2M

Last 90 days

4.5M

Last year

Trend: +9.1% (30d vs prior 30d)

r2u

12K

Last 30 days

35.8K

Last 90 days

106.4K

Last year

Trend: +10% (30d vs prior 30d)

r2u: no daily series yet

CRAN Check Status

13 OK
Show all 13 flavors
Flavor Status
r-devel-linux-x86_64-debian-clang OK
r-devel-linux-x86_64-debian-gcc OK
r-devel-linux-x86_64-fedora-clang OK
r-devel-linux-x86_64-fedora-gcc OK
r-devel-windows-x86_64 OK
r-oldrel-macos-arm64 OK
r-oldrel-macos-x86_64 OK
r-oldrel-windows-x86_64 OK
r-patched-linux-x86_64 OK
r-release-linux-x86_64 OK
r-release-macos-arm64 OK
r-release-macos-x86_64 OK
r-release-windows-x86_64 OK

Check History

OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Jun 11, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Jun 1, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [36s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(httr2)
  > 
  > test_check("httr2")
  Starting 2 test processes.
  > test-req-perform-iterative.R: \ iterating 60 done (30/s
...[truncated]...
       └─base::lapply(...)
   15.               └─testthat (local) FUN(X[[i]], ...)
   16.                 └─private$handle_error(msg, i)
   17.                   └─cli::cli_abort(...)
   18.                     └─rlang::abort(...)
  Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 22, 2026
ERROR 12 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE May 21, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [45s/31s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(httr2)
  > 
  > test_check("httr2")
  Starting 2 test processes.
  Saving _problems/test-resp-stream-36.R
  > test-req-p
...[truncated]...
e if a stream is complete (non-blocking) ──
  Expected `resp_stream_is_complete(resp)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 1 | WARN 0 | SKIP 144 | PASS 887 ]
  Error:
  ! Test failures.
  Execution halted
OK 13 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE May 6, 2026
ERROR 11 OK · 0 NOTE · 0 WARNING · 2 ERROR · 0 FAILURE May 4, 2026
ERROR r-devel-windows-x86_64

tests

Running 'testthat.R' [35s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(httr2)
  > 
  > test_check("httr2")
  Starting 2 test processes.
  > test-req-perform-iterative.R: \ iterating 69 done (34/s
...[truncated]...
       └─base::lapply(...)
   15.               └─testthat (local) FUN(X[[i]], ...)
   16.                 └─private$handle_error(msg, i)
   17.                   └─cli::cli_abort(...)
   18.                     └─rlang::abort(...)
  Execution halted
ERROR r-release-windows-x86_64

tests

Running 'testthat.R' [32s]
Running the tests in 'tests/testthat.R' failed.
Complete output:
  > library(testthat)
  > library(httr2)
  > 
  > test_check("httr2")
  Starting 2 test processes.
  > test-req-perform-iterative.R: \ iterating 69 done (34/s
...[truncated]...
       └─base::lapply(...)
   15.               └─testthat (local) FUN(X[[i]], ...)
   16.                 └─private$handle_error(msg, i)
   17.                   └─cli::cli_abort(...)
   18.                     └─rlang::abort(...)
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Apr 24, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Apr 23, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [45s/31s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(httr2)
  > 
  > test_check("httr2")
  Starting 2 test processes.
  Saving _problems/test-resp-stream-36.R
  > test-req-p
...[truncated]...
e if a stream is complete (non-blocking) ──
  Expected `resp_stream_is_complete(resp)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 1 | WARN 0 | SKIP 144 | PASS 887 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 26, 2026
ERROR 13 OK · 0 NOTE · 0 WARNING · 1 ERROR · 0 FAILURE Mar 24, 2026
ERROR r-devel-linux-x86_64-debian-gcc

tests

Running ‘testthat.R’ [44s/30s]
Running the tests in ‘tests/testthat.R’ failed.
Complete output:
  > library(testthat)
  > library(httr2)
  > 
  > test_check("httr2")
  Starting 2 test processes.
  Saving _problems/test-resp-stream-36.R
  > test-req-p
...[truncated]...
e if a stream is complete (non-blocking) ──
  Expected `resp_stream_is_complete(resp)` to be TRUE.
  Differences:
  `actual`:   FALSE
  `expected`: TRUE 
  
  
  [ FAIL 1 | WARN 0 | SKIP 144 | PASS 887 ]
  Error:
  ! Test failures.
  Execution halted
OK 14 OK · 0 NOTE · 0 WARNING · 0 ERROR · 0 FAILURE Mar 10, 2026

Reverse Dependencies (456)

imports

AIscreenR ARPALData AutoDeskR BFS BacenAPI BigDataPE CDMConnector CDSE CSHShydRology CatastRo CepalStatR ClickHouseHTTP CopernicusClimate CopernicusDataspace CopernicusMarine DSIR ECOTOXr EnTraineR FlickrAPI GHCNr GIFT GitAI GitStats HCUPtools HPZoneAPI ILSAmerge KoboconnectR LLMR MolgenisArmadillo MolgenisAuth N2H4 PFW PatientGenerator PurpleAir QBMS RAQSAPI REXoplanets RKorAPClient Rapi RcamelsCL Rglottography Rigma Rilostat StreamCatTools abba acledR adobeanalyticsr aebdata aemo aieconindex airnow aisdk amadeus amapGeocode appsheet arcgis arcgisgeocode arcgislayers arcgisplaces arcgisutils askgpt ato atrrr awdb azr azuremapsr baserater bbk bcRP bibliometrix binxr bioRad blackmarbler boe brfinance brickster brightspaceR bskyr bunddev carbondata caretSDM cartographr cer chatRater chattr chooseGCM citestR cjar climaemet clinicalomicsdbR cloudosR cnefetools comexr comtrade comtradr congress connectcreds conrad consibiocloudclient contentanalysis covid19br ctoclient ctrdata ctrlvee cvdprevent dataRetrieval datacommons dataonderivatives dawaR diario distilleR dpdr dpkg dsmSearch dtmapi dtreg earthdatalogin easybio ebx econdatasets edr4r educabR egnyte ellmer envstat epidatr episomer eppoFindeR eurostat evolution f1dataR fabricQueryR fanyi feltr ffiec ffm filibustr finbif firebase.auth.rest fitzRoy fmpapi foghorn forcis fortniteR fred frheritage fuzzylink fwtraits galah galaxias gdldata gemini.R genefindr genesysr geoAr geobounds geobr geocodebr geofacet geofi getCRUCLdata getRad gh giscoR gleifr gloBFPr gmwmx2 golfastr govinfoR gptstudio gptzeror gtexr hackeRnews hakaiApi happign hdar healthatlas healthyR.data hgnc hmrc holideh hoopR horsey httptest2 hyd1d hydflood hydrocan hydrodownloadR ibger ibkrcp icecdr imdR imfapi imfweo ineptr2 inkaR ipgeolocation irpfR istatR jentre jirar kisopenapi kiwisR kvkapiR lehdr link llmcoder llmhelper llmimpute llrem lobby lobbyR locateip lulab.utils mapSpain mapme.biodiversity maths.genealogy mcptools meetupr mergenstudio meteospain mgi.report.reader microinverterdata mmequiv mongolstats mortSOA motherduck mregions2 mtgjsonsdk nadaverse ncaavolleyballr neo2R nettskjemar neuromapr nhlscraper nixtlar nomisdata normfluodbf notionR notionapi ntfy obr octopusR odyssey oecdoda ohvbd ollamar omophub onemapsgapi ons openFDA openaiRtools openaq openeo openesm openholidaysR openmpp orcidtr orderly orthanc osmapiR osmdata osrm.backend owidapi paddleR pairwiseLLM patentsview paws.common pepr photon pipr pixieweb pixr pkgdown pkgmatch planscorer plug pmetar predictsr primerTree promptr proverbs pulso pysparklyr qbr rCoinbase rCoros rKolada rMIDAS2 racademyocean ragnar rappleads raqs ravel rchroma rdav read.abares readMDTable readaec readecb readepi readimf readnoaa readoecd redlist redquack remmy resmush resourcecode restatis rfacebookstat rgsrs riem ringostat rirods ritalic rlandfire rlinkedinads rlmstudio rmangal rnpn rollama rosv rqti rsconnect rsei rspacer rtemis.llm rtgstat rtiddlywiki rtiktokads rtodoist rtoot rxref ryandexdirect rym scholidonline scopusflow screenshotbase selenium sensortowerR sg shidashi shiny.telemetry shinyOAuth shinylive shinymrp shinytest2 simfinapi sits socratadata solidauthr solvency2rfr sotkanet spanishoddata sparqlr speechmatics stortingscrape substackR supabaseR susographql suwo tall tapLock taylor tceper tesouror tidyfinance tidyhydat tidyllm tidyprompt tidyquant tidywikidatar tmap.sources tndata traktok treasury trud tuber ucimlrepo uisapi ukhousing ukhsadatR umbridge umweltapir unitcm urlshorteneR vectorsurvR videogameinsightsR vismeteor vitals voice vosonSML wbids wbwdi weathR webdav whapi whatthreewords widr wikkitidy worldbank yfinancer z22 zendown zippeR zoteR

Dependency Network

Dependencies Reverse dependencies cli curl glue lifecycle magrittr openssl R6 rappdirs rlang vctrs withr AIscreenR ARPALData AutoDeskR BFS BacenAPI BigDataPE CDMConnector CDSE CSHShydRology CatastRo CepalStatR ClickHouseHTTP CopernicusClimate CopernicusDataspace CopernicusMarine +441 more reverse deps httr2

Version History

22 tracked
updated 1.2.3 ← 1.2.2 diff Jun 23, 2026
new 1.2.2 Mar 10, 2026
updated 1.2.2 ← 1.2.1 diff Dec 7, 2025
updated 1.2.1 ← 1.2.0 diff Jul 21, 2025
updated 1.2.0 ← 1.1.2 diff Jul 12, 2025
updated 1.1.2 ← 1.1.1 diff Mar 25, 2025
updated 1.1.1 ← 1.1.0 diff Mar 7, 2025
updated 1.1.0 ← 1.0.7 diff Jan 17, 2025
updated 1.0.7 ← 1.0.6 diff Nov 26, 2024
updated 1.0.6 ← 1.0.5 diff Nov 3, 2024
updated 1.0.5 ← 1.0.4 diff Sep 25, 2024
updated 1.0.4 ← 1.0.3 diff Sep 13, 2024
updated 1.0.3 ← 1.0.2 diff Aug 21, 2024
updated 1.0.2 ← 1.0.1 diff Jul 15, 2024
updated 1.0.1 ← 1.0.0 diff Mar 31, 2024