Skip to content


Subversion checkout URL

You can clone with
Download ZIP
Ruby gem for interacting with the Punchfork API
Branch: master
Failed to load latest commit information.
lib 1.0.0 updates
spec Add version spec. Run the specs in random order.
.gitignore Initial commit
.rspec Add version spec. Run the specs in random order.
.rvmrc Initial commit
CHANGELOG.markdown 1.0.0 updates
Gemfile 1.0.0 updates
LICENSE.txt Copyright updates for 2013
README.markdown Copyright updates for 2013
punchr.gemspec 1.0.0 updates



Ruby gem for interacting with the Punchfork API.


gem install punchr

or in your Gemfile

gem 'punchr'


Configure punchr with your API key:

require 'punchr'

Punchr.api_key = 'this-is-your-punchfork-api-key'

or configure as:

Punchr.configure do |configuration|
  configuration.api_key = 'this-is-your-punchfork-api-key'
client =

response = => 'meatballs')

response = client.random_recipe

response = client.publishers

response = client.diet_index('2 cups yellow cornmeal\n2 teaspoons baking powder\n3/4 to 1 teaspoon fine sea salt\n1 large egg, lightly beaten\n1 cup water, plus more if needed\n1/4 to 1/3 cup mild-flavored vegetable oil for frying') # Premium API call

response = client.search_index(:title => 'Chicken Parmigiana', :ingred => '1 egg, beaten\n2 ounces dry bread crumbs\n2 skinless, boneless chicken breast halves\n3/4 (16 ounce) jar spaghetti sauce\n2 ounces shredded mozzarella cheese\n1/4 cup grated Parmesan cheese') # Ultra API call

response = client.rate_limit_status

You can find more details on the Punchfork API at their site.

Contributing to punchr

  • Check out the latest master to make sure the feature hasn't been implemented or the bug hasn't been fixed yet
  • Check out the issue tracker to make sure someone already hasn't requested it and/or contributed it
  • Fork the project
  • Start a feature/bugfix branch
  • Commit and push until you are happy with your contribution
  • Make sure to add tests for it. This is important so I don't break it in a future version unintentionally.
  • Please try not to mess with the Rakefile, version, or history. If you want to have your own version, or is otherwise necessary, that is fine, but please isolate to its own commit so I can cherry-pick around it.


Copyright (c) 2012-2013 David Czarnecki. See LICENSE.txt for further details.

Something went wrong with that request. Please try again.