All Projects → r-lib → Httr

r-lib / Httr

Licence: other
httr: a friendly http package for R

Programming Languages

r
7636 projects

Projects that are alternatives of or similar to Httr

Httpie
As easy as /aitch-tee-tee-pie/ 🥧 Modern, user-friendly command-line HTTP client for the API era. JSON support, colors, sessions, downloads, plugins & more. https://twitter.com/httpie
Stars: ✭ 53,052 (+5814.38%)
Mutual labels:  api, curl
Github.vim
Another github v3 api implemented in vim script
Stars: ✭ 187 (-79.15%)
Mutual labels:  api, curl
Activity
A PHP API to log anything anywhere
Stars: ✭ 44 (-95.09%)
Mutual labels:  api, curl
Unifi Api Client
A PHP API client class to interact with Ubiquiti's UniFi Controller API
Stars: ✭ 602 (-32.89%)
Mutual labels:  api, curl
Insomnia
The open-source, cross-platform API client for GraphQL, REST, and gRPC.
Stars: ✭ 18,969 (+2014.72%)
Mutual labels:  api, curl
Php Curl Class
PHP Curl Class makes it easy to send HTTP requests and integrate with web APIs
Stars: ✭ 2,903 (+223.63%)
Mutual labels:  api, curl
Curlx
◼️ Supercharge curl with history, collections and more.
Stars: ✭ 169 (-81.16%)
Mutual labels:  api, curl
Requester
Powerful, modern HTTP/REST client built on top of the Requests library
Stars: ✭ 273 (-69.57%)
Mutual labels:  api, curl
Ocrserver
A simple OCR API server, seriously easy to be deployed by Docker, on Heroku as well
Stars: ✭ 359 (-59.98%)
Mutual labels:  api, curl
Unifi Api Browser
Tool to browse data exposed by Ubiquiti's UniFi Controller API (demo: https://api-browser-demo.artofwifi.net/)
Stars: ✭ 677 (-24.53%)
Mutual labels:  api, curl
Exiftool
ExifTool meta information reader/writer
Stars: ✭ 832 (-7.25%)
Mutual labels:  api
Api Guidelines
BC Government API Guidelines
Stars: ✭ 16 (-98.22%)
Mutual labels:  api
Github Funding Yml Updater
Update multiple repositories's `.github/FUNDING.yml` via GitHub API
Stars: ✭ 17 (-98.1%)
Mutual labels:  api
Django rest example
Django/DRF rest application example.
Stars: ✭ 17 (-98.1%)
Mutual labels:  api
Forbes400
JSON Api Of The Forbes 400 Richest People List
Stars: ✭ 7 (-99.22%)
Mutual labels:  api
Go Api Boilerplate
Exemplo de API utilizando a linguagem Go e a biblioteca Gorilla Mux
Stars: ✭ 17 (-98.1%)
Mutual labels:  api
Apis Made In Iran
A list of APIs from Iran
Stars: ✭ 835 (-6.91%)
Mutual labels:  api
Pix Api
API Pix: a API do Arranjo de Pagamentos Instantâneos Brasileiro.
Stars: ✭ 832 (-7.25%)
Mutual labels:  api
Apispec
A pluggable API specification generator. Currently supports the OpenAPI Specification (f.k.a. the Swagger specification)..
Stars: ✭ 831 (-7.36%)
Mutual labels:  api
Atbapi
Sane API for bus data in Trondheim, Norway
Stars: ✭ 17 (-98.1%)
Mutual labels:  api

httr

CRAN status R build status Codecov test coverage

The aim of httr is to provide a wrapper for the curl package, customised to the demands of modern web APIs.

Key features:

  • Functions for the most important http verbs: GET(), HEAD(), PATCH(), PUT(), DELETE() and POST().

  • Automatic connection sharing across requests to the same website (by default, curl handles are managed automatically), cookies are maintained across requests, and a up-to-date root-level SSL certificate store is used.

  • Requests return a standard reponse object that captures the http status line, headers and body, along with other useful information.

    • Response content is available with content() as a raw vector (as = "raw"), a character vector (as = "text"), or parsed into an R object (as = "parsed"), currently for html, xml, json, png and jpeg.

    • You can convert http errors into R errors with stop_for_status().

  • Config functions make it easier to modify the request in common ways: set_cookies(), add_headers(), authenticate(), use_proxy(), verbose(), timeout(), content_type(), accept(), progress().

  • Support for OAuth 1.0 and 2.0 with oauth1.0_token() and oauth2.0_token(). The demo directory has eight OAuth demos: four for 1.0 (twitter, vimeo, withings and yahoo) and four for 2.0 (facebook, github, google, linkedin). OAuth credentials are automatically cached within a project.

httr wouldn't be possible without the hard work of the authors of curl and libcurl. Thanks! httr is inspired by http libraries in other languages, such as Resty, Requests and httparty.

Installation

To get the current released version from CRAN:

install.packages("httr")

To get the current development version from github:

# install.packages("devtools")
devtools::install_github("r-lib/httr")

Code of Conduct

Please note that the httr project is released with a Contributor Code of Conduct. By contributing to this project, you agree to abide by its terms.

Note that the project description data, including the texts, logos, images, and/or trademarks, for each open source project belongs to its rightful owner. If you wish to add or remove any projects, please contact us at [email protected].