HTTParty
Ruby HTTP client library that wraps web requests in class methods and a mixin for building API client classes.
HTTParty is a Ruby library for sending HTTP requests and reading their responses. Code calls class methods such as HTTParty.get, or includes the HTTParty module in its own class and sets a base URI, so that the class’s methods wrap one web API. A response exposes the body, status code, message and headers, and a JSON response is parsed into Ruby hashes and arrays unless the format option suppresses it.
The gem also ships an httparty command-line executable that prints a response for inspection and can format it as XML or JSON.
Worth knowing
When a request sets its own Accept-Encoding header, HTTParty decompresses Brotli, LZW and Zstandard responses only if a separate gem is loaded. The docs name each gem.
Identity
- Status
- Active
- Maintainer
- John Nunemaker4
- Maintained by
- Individual
- First release
- 20097
Rendering and deploy
- Install with
- gem2
Releases
Adoption
Sources
- 2026-11-16: links, Written in, GitHub stars
api.github.com/repos/jnunemaker/httparty - 2026-11-16: links, Install with, Runtime
raw.githubusercontent.com/jnunemaker/httparty/main/README.md - 2026-11-16: Categories, Minimum runtime, License
github.com/jnunemaker/httparty/blob/v0.24.3/httparty.gemspec - 2026-11-16: Maintainer
raw.githubusercontent.com/jnunemaker/httparty/main/MIT-LICENSE - 2026-11-16: Current major version
api.github.com/repos/jnunemaker/httparty/releases - 2026-11-16: Last release
api.github.com/repos/jnunemaker/httparty/releases/latest - 2026-11-16: First release
rubygems.org/api/v1/versions/httparty.json - 2026-11-16: Contributors
api.github.com/repos/jnunemaker/httparty/contributors