# encode/django-rest-framework

Web APIs for Django. 🎸

Repository: https://github.com/encode/django-rest-framework
Canonical: https://ross.abutalabs.com/products/django-rest-framework
Homepage: https://www.django-rest-framework.org
Language: Python
License: NOASSERTION
License Family: other
Topics: python, django, api, rest
Last push: 2026-08-25T19:14:08+00:00

## Health v2 (maintenance only)
Score: 94/100 (v2, computed 2026-09-03T02:20:16.233290+00:00)
- activity 99, release rhythm 84, longevity 100
- inputs: {"age_days": 5663, "days_push": 8, "days_rel": 26, "gap_med": 90, "n_releases_24m": 8}
- flags: no_license
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 30144, forks 7077 (observed 2026-08-28T04:11:54.288774+00:00)

## What it is
Django REST framework is a powerful and flexible toolkit for building Web APIs on top of Django. It provides serializers, class-based views and viewsets, automatic routing, authentication policies, and a web-browsable API out of the box.

## Use cases
- build a REST API with Django
- serialize Django ORM models to JSON
- add authentication and permissions to API endpoints
- create a browsable web API for developers
- auto-generate CRUD routes for models
- expose a model-backed API for users and groups

## When to choose
- you already use Django and need a REST API layer
- you want batteries-included serialization, auth, and routing
- you value a browsable API and mature, well-documented tooling

## When to avoid
- you use Flask, FastAPI, or a non-Django stack
- you need a minimal async-first API framework without Django's ORM
- you only need a simple JSON endpoint and don't want Django's overhead

## Facets
- artifact type: framework
- maturity: stable
- function: api-framework, web-framework, serialization, auth, routing, middleware
- domain: web-development, backend, apis
- platform: python, cross-platform
- tags: django, rest, rest-api, browsable-api, viewsets, serializers, openapi, web-server

## Member repositories
- encode/django-rest-framework (main) score 94

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:11:54.288774+00:00.
- Health v2: computed from the inputs above; adoption is never an input.
- Inferred fields (summary, facets, guidance): AI-extracted, prompt v1, taxonomy v1, on 2026-08-29T16:52:48.009106+00:00, confidence not recorded.
  - readme: https://github.com/encode/django-rest-framework (fetched 2026-08-28T04:11:54.288774+00:00, sha e82804c1c7ef)
  - homepage: https://www.django-rest-framework.org (fetched 2026-08-29T07:49:48.002967+00:00, sha 0ac38e6f678d)
  - site_page: https://www.django-rest-framework.org/tutorial/quickstart (fetched 2026-08-29T07:49:48.012643+00:00, sha be03073f43e8)
  - site_page: https://www.django-rest-framework.org/api-guide/routers (fetched 2026-08-29T07:49:48.014851+00:00, sha c2729a09b92f)
- Data as of 2026-08-30T08:39:29.467469+00:00.
