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 rubygem rack crash-reporting feature-flag sinatra rubocop background-jobs
Last synced: about 9 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: 2025-10-08T12:54:09.000Z (2 months ago)
- Last Synced: 2025-11-23T02:16:43.459Z (17 days ago)
- Topics: http, httparty, ruby
- Language: Ruby
- Homepage:
- Size: 1.51 MB
- Stars: 5,885
- Watchers: 58
- Forks: 966
- Open Issues: 44
- Releases: 6
-
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('http://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: 5
- Commit comment event: 1
- Release event: 3
- Issues event: 11
- Watch event: 102
- Issue comment event: 18
- Push event: 15
- Pull request review comment event: 3
- Pull request event: 8
- Pull request review event: 10
- Fork event: 13
Last Year
- Create event: 5
- Commit comment event: 1
- Release event: 3
- Issues event: 10
- Watch event: 79
- Issue comment event: 18
- Push event: 15
- Pull request review comment event: 3
- Pull request event: 8
- Pull request review event: 10
- Fork event: 11
Committers metadata
Last synced: 4 days ago
Total Commits: 1,072
Total Committers: 254
Avg Commits per committer: 4.22
Development Distribution Score (DDS): 0.646
Commits in past year: 20
Committers in past year: 5
Avg Commits per committer in past year: 4.0
Development Distribution Score (DDS) in past year: 0.3
| Name | Commits | |
|---|---|---|
| John Nunemaker | n****r@g****m | 379 |
| 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 |
| John Hope | me@j****e | 9 |
| Don Petersen | d****n@d****t | 9 |
| Nathan Lilienthal | n****3@m****m | 9 |
| Isaac Sanders | i****s@g****m | 8 |
| Lucas Uyezu | l****u@g****m | 8 |
| AjitSingh | j****t@g****m | 7 |
| Javier Blanco | j****z@g****m | 7 |
| rubygeek | n****a@r****m | 7 |
| Ritikesh | r****a@g****m | 6 |
| barberj | b****n@g****m | 6 |
| Kalman Hazins | k****h@g****m | 5 |
| davidgg | h****a@d****s | 5 |
| Alex Vollmer | a****x@e****m | 4 |
| Johnny Shields | j****s@g****m | 4 |
| Olle Jonsson | o****n@g****m | 4 |
| Abraham Kuri | k****n@i****m | 4 |
| Florian Munz | s****f@t****e | 4 |
| Rick Sullivan | r****n@f****m | 4 |
| Shawn Pyle | s****e@t****g | 3 |
| Brian Artiaco | b****o@O****l | 3 |
| Brian Muller | b****r@g****m | 3 |
| Chris Caselas | d****v@c****e | 3 |
| Elijah Miller | e****r@g****m | 3 |
| and 224 more... | ||
Committer domains:
- collectiveidea.com: 2
- cisco.com: 2
- polleverywhere.com: 2
- zype.com: 1
- jpoz.net: 1
- billingham.net: 1
- mail.com: 1
- robbrackett.com: 1
- easy.cz: 1
- fastmail.com: 1
- jellyvision.com: 1
- peerpong.com: 1
- nordstrom.com: 1
- swrve.com: 1
- djspinmonkey.com: 1
- midhirrecords.com: 1
- mailheist.com: 1
- bfrydl.com: 1
- contiamo.com: 1
- locaweb.com.br: 1
- boost-media.com: 1
- gc4.co.uk: 1
- vernon.nu: 1
- ngmoco.com: 1
- usertesting.com: 1
- boost.co.nz: 1
- sage.com: 1
- 6bar8.com: 1
- rim.com: 1
- jhope.ie: 1
- donpetersen.net: 1
- me.com: 1
- rubygeek.com: 1
- davidgg.es: 1
- evri.com: 1
- icalialabs.com: 1
- theflow.de: 1
- focusvision.com: 1
- the-jci.org: 1
- chriscaselas.me: 1
- rethada.ms: 1
- shelrick.com: 1
- github.com: 1
- uplink.io: 1
- reinh.com: 1
- kopfueber.org: 1
- decoit.de: 1
- audiocodes.com: 1
- soupmatt.com: 1
- socrata.com: 1
- inboxhealth.com: 1
- downtown.dk: 1
- nullriver.com: 1
- userprimary.net: 1
- planningcenter.com: 1
- hotshotlegal.com: 1
- coqtail.com: 1
- yahoo.co.jp: 1
- stripey.net: 1
- iki.fi: 1
- exlabs.pl: 1
- tout.com: 1
- timonv.nl: 1
- ka.ag: 1
- vinted.com: 1
- 5stops.com: 1
- j-udy.com: 1
- gofreerange.com: 1
- meuret.net: 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
- greenhouse.io: 1
- ikst.jp: 1
- unwwwired.net: 1
- elocal.com: 1
- ccs.neu.edu: 1
- studiolift.com: 1
- greatenough.com: 1
- rubinauts.com: 1
- junivi.com: 1
- gophilosophie.com: 1
- thelevelup.com: 1
- sixarm.com: 1
- meraki.com: 1
- taazza.com: 1
- corykaufman.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
Issue and Pull Request metadata
Last synced: 15 days ago
Total issues: 67
Total pull requests: 105
Average time to close issues: 8 months
Average time to close pull requests: about 1 year
Total issue authors: 67
Total pull request authors: 56
Average comments per issue: 3.54
Average comments per pull request: 1.6
Merged pull request: 60
Bot issues: 0
Bot pull requests: 4
Past year issues: 6
Past year pull requests: 13
Past year average time to close issues: 2 months
Past year average time to close pull requests: 18 days
Past year issue authors: 6
Past year pull request authors: 8
Past year average comments per issue: 0.83
Past year average comments per pull request: 0.92
Past year merged pull request: 5
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 (5)
- dependabot[bot] (4)
- olleolleolle (4)
- JonMidhir (3)
- sreejithgp (3)
- henrik (3)
- orgads (3)
- rhett-inbox (2)
- jmahoney (2)
- gogainda (2)
- ritikesh (2)
- mishina2228 (2)
- snyff (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: 7
-
Total downloads:
- rubygems: 843,090,152 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: 232
- Total maintainers: 3
- Total advisories: 3
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.23.2 (published 2 months ago)
- Last Synced: 2025-12-08T22:31:31.167Z (1 day ago)
- Versions: 84
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 421,504,694 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)
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.23.2 (published 2 months ago)
- Last Synced: 2025-12-09T07:19:55.548Z (about 24 hours ago)
- Versions: 84
- Dependent Packages: 4,792
- Dependent Repositories: 64,329
- Downloads: 421,566,928 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.23.2 (published 2 months ago)
- Last Synced: 2025-12-07T21:03:32.170Z (2 days ago)
- Versions: 60
- 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 about 13 years ago)
- Last Synced: 2025-12-07T21:03:31.396Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 5,433 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 about 13 years ago)
- Last Synced: 2025-12-07T21:03:31.665Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 5,433 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: 2025-12-07T21:03:30.435Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 3,832 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: 2025-12-07T21:03:30.533Z (2 days ago)
- Versions: 1
- Dependent Packages: 0
- Dependent Repositories: 0
- Downloads: 3,832 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)
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.71281092541953