# Django REST framework

> A powerful and flexible toolkit for building Web APIs

Source: https://talira.ai/catalog/django-rest-framework-yrrr8nc8
Every listing: https://talira.ai/catalog.md

- Kind: Open source
- Types: Framework, Library
- Categories: [frameworks / web / backend](https://talira.ai/categories/frameworks/web/backend), [languages / python](https://talira.ai/categories/languages/python)
- Licence: BSD-3-Clause[^2]
- Pricing: Free and open source[^1]
- Pricing notes: Funded by sponsorships through Encode.
- Free tier: yes[^1]
- Self-hostable: yes[^3]
- Plugins: yes[^3]
- Backed by: [Encode](https://talira.ai/orgs/encode.md)

Django REST framework (DRF) is the toolkit most [Django](https://talira.ai/catalog/django-h3z1mj1k.md) projects use to build Web APIs. Serializers turn models and other data into JSON and validate incoming data; generic views, viewsets and routers build CRUD endpoints with little code; and pluggable authentication, permissions, throttling, filtering, pagination and versioning cover what a production API needs. Its browsable API renders every endpoint as an HTML page developers can explore and submit forms on. It can generate OpenAPI schemas, and function-based views stay available when you don't need the higher-level classes. Encode maintains it, and it's BSD-3-Clause licensed.

## Links

- Website: https://www.django-rest-framework.org/
- GitHub: https://github.com/encode/django-rest-framework
- Docs: https://www.django-rest-framework.org/api-guide/requests/

## Problems it solves

- add a JSON API to my Django app without hand-writing every view
- turn Django models into JSON and validate incoming request data with the same class
- explore and test my API endpoints in the browser without Postman
- add token, session or OAuth authentication and per-object permissions to a Django API
- rate-limit API clients and paginate long lists in a Django backend
- build CRUD endpoints for a model with routing generated for me
- version my REST API without breaking existing clients
- generate an OpenAPI schema for my Django API
- filter and search API results by query parameters

## Features

- serializers for ORM and non-ORM data, with validation
- generic views, viewsets and routers
- browsable HTML API for every endpoint
- authentication policies, with packages for OAuth1a and OAuth2
- permissions, throttling, caching, filtering and pagination
- API versioning and content negotiation
- OpenAPI schema generation (with PyYAML and uritemplate)
- test client and request factory for API tests
- supports Django 5.2, 6.0 and 6.1 on Python 3.10 to 3.15

## Capabilities

- Takes plugins: plan not known

## Trust

Overall: 0.40 out of 1.
Signals: backing 0.50, extensibility 0.20.

- backed by Encode
- used by Mozilla, Red Hat, Heroku, Eventbrite
- has a plugin system

Warnings:

- GitHub activity not fetched yet

## Related

- Works with [Django](https://talira.ai/catalog/django-h3z1mj1k.md)

## Alternatives

- [FastAPI](https://talira.ai/catalog/fastapi-1tmn6e7v.md): FastAPI framework, high performance, easy to learn, fast to code, ready for production

## Sources

[^1]: https://www.encode.io/ (checked 24 Nov 2026)
[^2]: https://github.com/encode/django-rest-framework/blob/main/LICENSE.md (checked 24 Nov 2026)
[^3]: https://www.django-rest-framework.org/ (checked 24 Nov 2026)
