https://github.com/jnunemaker/httparty
:tada: Makes http fun again!
https://github.com/jnunemaker/httparty
Keywords
http httparty ruby
Keywords from Contributors
activerecord activejob mvc rubygems rack crash-reporting feature-flag sinatra rubocop background-jobs
Last synced: about 21 hours ago
JSON representation
Repository metadata
:tada: Makes http fun again!
- Host: GitHub
- URL: https://github.com/jnunemaker/httparty
- Owner: jnunemaker
- License: mit
- Created: 2008-07-28T20:55:11.000Z (over 17 years ago)
- Default Branch: main
- Last Pushed: 2026-02-21T04:42:54.000Z (10 days ago)
- Last Synced: 2026-02-26T22:49:28.489Z (5 days ago)
- Topics: http, httparty, ruby
- Language: Ruby
- Homepage:
- Size: 1.52 MB
- Stars: 5,894
- Watchers: 59
- Forks: 971
- Open Issues: 43
- Releases: 9
-
Metadata Files:
- Readme: README.md
- Changelog: Changelog.md
- Contributing: CONTRIBUTING.md
- License: MIT-LICENSE
README.md
httparty
Makes http fun again! Ain't no party like a httparty, because a httparty don't stop.
Install
gem install httparty
Requirements
- Ruby 2.7.0 or higher
- You like to party!
Examples
# Use the class methods to get down to business quickly
response = HTTParty.get('https://api.stackexchange.com/2.2/questions?site=stackoverflow')
puts response.body, response.code, response.message, response.headers.inspect
# Or wrap things up in your own class
class StackExchange
include HTTParty
base_uri 'api.stackexchange.com'
def initialize(service, page)
@options = { query: { site: service, page: page } }
end
def questions
self.class.get("/2.2/questions", @options)
end
def users
self.class.get("/2.2/users", @options)
end
end
stack_exchange = StackExchange.new("stackoverflow", 1)
puts stack_exchange.questions
puts stack_exchange.users
See the examples directory for even more goodies.
Command Line Interface
httparty also includes the executable httparty which can be
used to query web services and examine the resulting output. By default
it will output the response as a pretty-printed Ruby object (useful for
grokking the structure of output). This can also be overridden to output
formatted XML or JSON. Execute httparty --help for all the
options. Below is an example of how easy it is.
httparty "https://api.stackexchange.com/2.2/questions?site=stackoverflow"
Help and Docs
- Docs
- https://github.com/jnunemaker/httparty/discussions
- https://www.rubydoc.info/github/jnunemaker/httparty
Contributing
- Fork the project.
- Run
bundle - Run
bundle exec rake - Make your feature addition or bug fix.
- Add tests for it. This is important so I don't break it in a future version unintentionally.
- Run
bundle exec rake(No, REALLY :)) - Commit, do not mess with rakefile, version, or history. (if you want to have your own version, that is fine but bump version in a commit by itself in another branch so I can ignore when I pull)
- Send me a pull request. Bonus points for topic branches.
Owner metadata
- Name: John Nunemaker
- Login: jnunemaker
- Email:
- Kind: user
- Description: Programmer.
- Website: http://johnnunemaker.com
- Location: US
- Twitter: jnunemaker
- Company: @fewerandfaster and @boxoutsports
- Icon url: https://avatars.githubusercontent.com/u/235?u=34ccc0c78404a1a5fed94fd9329345621da530fb&v=4
- Repositories: 74
- Last ynced at: 2023-04-09T03:48:45.004Z
- Profile URL: https://github.com/jnunemaker
GitHub Events
Total
- Create event: 6
- Commit comment event: 1
- Release event: 4
- Pull request event: 14
- Fork event: 18
- Issues event: 14
- Watch event: 106
- Issue comment event: 27
- Push event: 22
- Pull request review comment event: 3
- Pull request review event: 10
Last Year
- Release event: 4
- Pull request event: 13
- Fork event: 13
- Issues event: 12
- Watch event: 54
- Issue comment event: 25
- Push event: 21
- Pull request review event: 2
- Pull request review comment event: 3
- Create event: 6
Committers metadata
Last synced: 3 days ago
Total Commits: 1,081
Total Committers: 256
Avg Commits per committer: 4.223
Development Distribution Score (DDS): 0.643
Commits in past year: 29
Committers in past year: 7
Avg Commits per committer in past year: 4.143
Development Distribution Score (DDS) in past year: 0.276
| Name | Commits | |
|---|---|---|
| John Nunemaker | n****r@g****m | 386 |
| Sandro Turriate | s****e@g****m | 154 |
| Thomas Nys | n****e@g****m | 43 |
| Â TheSmartnik | m****n@g****m | 31 |
| Michael Stock | m****k@g****m | 17 |
| Ruslan Korolev | r****3@g****m | 11 |
| Eric Urban | h****8@g****m | 11 |
| Don Petersen | d****n@d****t | 9 |
| John Hope | me@j****e | 9 |
| Nathan Lilienthal | n****3@m****m | 9 |
| Lucas Uyezu | l****u@g****m | 8 |
| Isaac Sanders | i****s@g****m | 8 |
| rubygeek | n****a@r****m | 7 |
| Javier Blanco | j****z@g****m | 7 |
| AjitSingh | j****t@g****m | 7 |
| barberj | b****n@g****m | 6 |
| Ritikesh | r****a@g****m | 6 |
| davidgg | h****a@d****s | 5 |
| Kalman Hazins | k****h@g****m | 5 |
| Florian Munz | s****f@t****e | 4 |
| Abraham Kuri | k****n@i****m | 4 |
| Olle Jonsson | o****n@g****m | 4 |
| Rick Sullivan | r****n@f****m | 4 |
| Johnny Shields | j****s@g****m | 4 |
| Alex Vollmer | a****x@e****m | 4 |
| madumlao | m****o@g****m | 3 |
| Rein Henrichs | r****h@r****m | 3 |
| Oliver Eilhard | o****d@g****m | 3 |
| Mikkel Kroman | mk@u****o | 3 |
| Mark Lehman | m****o@g****m | 3 |
| and 226 more... | ||
Committer domains:
- collectiveidea.com: 2
- cisco.com: 2
- polleverywhere.com: 2
- inboxhealth.com: 1
- downtown.dk: 1
- nullriver.com: 1
- userprimary.net: 1
- planningcenter.com: 1
- locaweb.com.br: 1
- contiamo.com: 1
- bfrydl.com: 1
- mailheist.com: 1
- midhirrecords.com: 1
- djspinmonkey.com: 1
- swrve.com: 1
- nordstrom.com: 1
- peerpong.com: 1
- jellyvision.com: 1
- fastmail.com: 1
- audiocodes.com: 1
- hotshotlegal.com: 1
- gc4.co.uk: 1
- vernon.nu: 1
- thelevelup.com: 1
- gophilosophie.com: 1
- junivi.com: 1
- rubinauts.com: 1
- greatenough.com: 1
- studiolift.com: 1
- donpetersen.net: 1
- jhope.ie: 1
- me.com: 1
- rubygeek.com: 1
- davidgg.es: 1
- theflow.de: 1
- icalialabs.com: 1
- focusvision.com: 1
- evri.com: 1
- reinh.com: 1
- uplink.io: 1
- github.com: 1
- shelrick.com: 1
- rethada.ms: 1
- chriscaselas.me: 1
- the-jci.org: 1
- coqtail.com: 1
- boost-media.com: 1
- easy.cz: 1
- robbrackett.com: 1
- mail.com: 1
- billingham.net: 1
- jpoz.net: 1
- zype.com: 1
- decoit.de: 1
- kopfueber.org: 1
- soupmatt.com: 1
- socrata.com: 1
- iki.fi: 1
- exlabs.pl: 1
- tout.com: 1
- timonv.nl: 1
- ka.ag: 1
- 5stops.com: 1
- id.me: 1
- corykaufman.com: 1
- j-udy.com: 1
- gofreerange.com: 1
- meuret.net: 1
- ngmoco.com: 1
- titanous.com: 1
- guen.in: 1
- jtan.com: 1
- msn.com: 1
- jens-bissinger.de: 1
- jaredbeck.com: 1
- jamietanna.co.uk: 1
- sparkart.com: 1
- jamesbrennan.ca: 1
- jirutka.cz: 1
- widegroup.eu: 1
- nyh.se: 1
- guerreroibarra.com: 1
- rempe.us: 1
- oversee.net: 1
- ccs.neu.edu: 1
- sage.com: 1
- elocal.com: 1
- unwwwired.net: 1
- ikst.jp: 1
- greenhouse.io: 1
- rim.com: 1
- 6bar8.com: 1
- boost.co.nz: 1
- usertesting.com: 1
- sixarm.com: 1
- meraki.com: 1
- taazza.com: 1
- darnowsky.com: 1
- pogodan.com: 1
- patrickg.com: 1
- bccriskadvisory.com: 1
- nicolasevans.org: 1
- talbott.ws: 1
- nixpulvis.com: 1
- elevatedrails.com: 1
- filej.net: 1
- rackspace.co.uk: 1
- 163.com: 1
- linux.com: 1
- yahoo.co.jp: 1
- stripey.net: 1
- vinted.com: 1
Issue and Pull Request metadata
Last synced: 10 days ago
Total issues: 69
Total pull requests: 108
Average time to close issues: 8 months
Average time to close pull requests: about 1 year
Total issue authors: 69
Total pull request authors: 58
Average comments per issue: 3.59
Average comments per pull request: 1.69
Merged pull request: 62
Bot issues: 0
Bot pull requests: 4
Past year issues: 7
Past year pull requests: 16
Past year average time to close issues: about 2 months
Past year average time to close pull requests: 15 days
Past year issue authors: 7
Past year pull request authors: 10
Past year average comments per issue: 2.29
Past year average comments per pull request: 1.63
Past year merged pull request: 7
Past year bot issues: 0
Past year bot pull requests: 2
Top Issue Authors
- john-h-k (1)
- idev (1)
- nnat425 (1)
- patrick-minton (1)
- stefanosalvucci (1)
- berti92 (1)
- YannoteX (1)
- khiav223577 (1)
- technion (1)
- sajjadmurtaza (1)
- gegenelnet (1)
- defp (1)
- seanneale (1)
- dvodvo (1)
- kabirpathak (1)
Top Pull Request Authors
- TheSmartnik (7)
- jnunemaker (6)
- dependabot[bot] (4)
- olleolleolle (4)
- JonMidhir (3)
- sreejithgp (3)
- henrik (3)
- orgads (3)
- rhett-inbox (2)
- ritikesh (2)
- jmahoney (2)
- gogainda (2)
- snyff (2)
- mishina2228 (2)
- jasonheecs (2)
Top Issue Labels
- breaks backward compitability (2)
- idea (1)
Top Pull Request Labels
- dependencies (4)
- github_actions (2)
Package metadata
- Total packages: 17
-
Total downloads:
- rubygems: 878,960,654 total
- Total docker downloads: 1,304,974,660
- Total dependent packages: 4,792 (may contain duplicates)
- Total dependent repositories: 64,330 (may contain duplicates)
- Total versions: 251
- Total maintainers: 3
- Total advisories: 8
gem.coop: httparty
Makes http fun! Also, makes consuming restful web services dead easy.
- Homepage: https://github.com/jnunemaker/httparty
- Documentation: http://www.rubydoc.info/gems/httparty/
- Licenses: MIT
- Latest release: 0.24.2 (published about 2 months ago)
- Last Synced: 2026-02-28T23:30:28.603Z (2 days ago)
- Versions: 87
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 439,449,799 Total
- Docker Downloads: 652,487,330
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.049%
- Downloads: 0.056%
- Docker downloads count: 0.138%
- Maintainers (1)
- Advisories:
ubuntu-20.04: ruby-httparty
- Homepage: https://github.com/jnunemaker/httparty
- Licenses: mit
- Latest release: 0.17.0-1 (published 18 days ago)
- Last Synced: 2026-02-13T07:15:12.096Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 0.07%
- Forks count: 0.121%
- Stargazers count: 0.159%
rubygems.org: httparty
Makes http fun! Also, makes consuming restful web services dead easy.
- Homepage: https://github.com/jnunemaker/httparty
- Documentation: http://www.rubydoc.info/gems/httparty/
- Licenses: MIT
- Latest release: 0.24.2 (published about 2 months ago)
- Last Synced: 2026-03-01T08:02:44.941Z (2 days ago)
- Versions: 87
- Dependent Packages: 4,792
- Dependent Repositories: 64,329
- Downloads: 439,492,086 Total
- Docker Downloads: 652,487,330
-
Rankings:
- Dependent packages count: 0.011%
- Downloads: 0.06%
- Dependent repos count: 0.14%
- Average: 0.188%
- Stargazers count: 0.203%
- Docker downloads count: 0.265%
- Forks count: 0.449%
- Maintainers (1)
- Advisories:
proxy.golang.org: github.com/jnunemaker/httparty
- Homepage:
- Documentation: https://pkg.go.dev/github.com/jnunemaker/httparty#section-documentation
- Licenses: mit
- Latest release: v0.24.2 (published about 2 months ago)
- Last Synced: 2026-02-27T23:40:54.127Z (3 days ago)
- Versions: 63
- Dependent Packages: 0
- Dependent Repositories: 1
-
Rankings:
- Stargazers count: 0.876%
- Forks count: 0.881%
- Average: 4.02%
- Dependent repos count: 4.758%
- Dependent packages count: 9.566%
gem.coop: dkastner-httparty
Makes http fun! Also, makes consuming restful web services dead easy.
- Homepage: http://jnunemaker.github.com/httparty
- Documentation: http://www.rubydoc.info/gems/dkastner-httparty/
- Licenses: mit
- Latest release: 0.9.0 (published over 13 years ago)
- Last Synced: 2026-02-26T18:40:38.478Z (5 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 5,525 Total
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 21.865%
- Downloads: 65.594%
- Maintainers (1)
rubygems.org: dkastner-httparty
Makes http fun! Also, makes consuming restful web services dead easy.
- Homepage: http://jnunemaker.github.com/httparty
- Documentation: http://www.rubydoc.info/gems/dkastner-httparty/
- Licenses: mit
- Latest release: 0.9.0 (published over 13 years ago)
- Last Synced: 2026-02-27T13:02:28.338Z (4 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 5,525 Total
-
Rankings:
- Stargazers count: 0.18%
- Forks count: 0.389%
- Dependent packages count: 15.706%
- Average: 25.853%
- Dependent repos count: 46.782%
- Downloads: 66.209%
- Maintainers (1)
gem.coop: yoyle439587298
Makes http fun! Also, makes consuming restful web services dead easy.
- Homepage: http://jnunemaker.github.com/httparty
- Documentation: http://www.rubydoc.info/gems/yoyle439587298/
- Licenses: mit
- Latest release: 0.13.0 (published almost 12 years ago)
- Last Synced: 2026-02-27T23:40:53.096Z (3 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 3,860 Total
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 26.408%
- Downloads: 79.223%
- Maintainers (1)
rubygems.org: yoyle439587298
Makes http fun! Also, makes consuming restful web services dead easy.
- Homepage: http://jnunemaker.github.com/httparty
- Documentation: http://www.rubydoc.info/gems/yoyle439587298/
- Licenses: mit
- Latest release: 0.13.0 (published almost 12 years ago)
- Last Synced: 2026-02-27T13:02:28.140Z (4 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 3,859 Total
-
Rankings:
- Stargazers count: 0.181%
- Forks count: 0.388%
- Dependent packages count: 15.706%
- Average: 28.632%
- Dependent repos count: 46.782%
- Downloads: 80.105%
- Maintainers (1)
debian-13: ruby-httparty
- Homepage: https://github.com/jnunemaker/httparty
- Documentation: https://packages.debian.org/trixie/ruby-httparty
- Licenses:
- Latest release: 0.21.0-1 (published 19 days ago)
- Last Synced: 2026-02-13T13:16:24.701Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-22.04: ruby-httparty
- Homepage: https://github.com/jnunemaker/httparty
- Licenses:
- Latest release: 0.18.1-3 (published 18 days ago)
- Last Synced: 2026-02-13T13:18:42.628Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-12: ruby-httparty
- Homepage: https://github.com/jnunemaker/httparty
- Documentation: https://packages.debian.org/bookworm/ruby-httparty
- Licenses:
- Latest release: 0.21.0-1 (published 18 days ago)
- Last Synced: 2026-02-12T23:32:27.694Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
debian-11: ruby-httparty
- Homepage: https://github.com/jnunemaker/httparty
- Documentation: https://packages.debian.org/bullseye/ruby-httparty
- Licenses:
- Latest release: 0.18.1-2 (published 20 days ago)
- Last Synced: 2026-02-13T08:21:22.773Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.04: ruby-httparty
- Homepage: https://github.com/jnunemaker/httparty
- Licenses:
- Latest release: 0.21.0-1 (published 20 days ago)
- Last Synced: 2026-02-11T06:41:23.392Z (20 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
debian-10: ruby-httparty
- Homepage: https://github.com/jnunemaker/httparty
- Documentation: https://packages.debian.org/buster/ruby-httparty
- Licenses:
- Latest release: 0.16.2+dfsg1-3 (published 20 days ago)
- Last Synced: 2026-02-13T04:22:17.454Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
ubuntu-23.10: ruby-httparty
- Homepage: https://github.com/jnunemaker/httparty
- Licenses:
- Latest release: 0.21.0-1 (published 18 days ago)
- Last Synced: 2026-02-13T18:22:55.094Z (18 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
-
Rankings:
- Dependent repos count: 0.0%
- Dependent packages count: 0.0%
- Average: 100%
Dependencies
- addressable >= 0 development
- aruba >= 0 development
- cucumber ~> 2.3 development
- guard >= 0 development
- guard-bundler >= 0 development
- guard-rspec >= 0 development
- pry >= 0 development
- rspec ~> 3.4 development
- simplecov >= 0 development
- webmock >= 0 development
- mongrel = 1.2.0.pre2
- rake >= 0
- mime-types ~> 3.0
- multi_xml >= 0.5.2
- actions/checkout v3 composite
- ruby/setup-ruby v1 composite
Score: 35.73856304747735