Build APIs with Grape
Grape is a REST-like API framework for Ruby. Build Rack applications or mount an API alongside Rails and other frameworks, with a DSL for routing, parameters, validation, versioning, and content negotiation.
Latest Releases
Stable releases verified against RubyGems on October 28, 2026:
| Release line | Latest version | Minimum Ruby | Documentation |
|---|---|---|---|
| Current: 4.x | 4.0.1 | 3.3 | Released README |
| Previous: 3.x | 3.3.5 | 3.3 | Released README |
| Legacy: 2.x | 2.4.0 | 2.7 | Released README |
Start new applications with the current release. Previous and legacy versions are listed for existing applications, not as a promise of ongoing support. Consult the released README and upgrade guide for compatibility and breaking changes; the default branch can document unreleased work.
bundle add grape --version '~> 4.0'
Explore the Ecosystem
- Community projects: Maintained libraries for serialization, documentation, data access, and more, with current extension releases.
- Examples: Actively maintained Rack, Rails, Goliath, Padrino, and HAL applications.
- Resources: Released documentation, API reference, upgrade guidance, and historical talks.
- Users: Community-reported adoption, including historical examples.
- History, team, and contributing: How Grape is maintained and how to get involved.
Get Help and Contribute
Use the Grape issue tracker for questions and bug reports. For an extension or example, open an issue in its own repository. Contributions are welcome; see Grape’s contribution guide and our code of conduct.