# django-json-api/django-rest-framework-json-api

JSON:API support for Django REST framework

Repository: https://github.com/django-json-api/django-rest-framework-json-api
Canonical: https://ross.abutalabs.com/products/django-rest-framework-json-api
Homepage: https://django-rest-framework-json-api.readthedocs.org/
Language: Python
License: BSD-2-Clause
License Family: permissive
Topics: python, json-api, django-rest-framework, hacktoberfest
Last push: 2026-08-02T10:47:52+00:00

## Health v2 (maintenance only)
Score: 73/100 (v2, computed 2026-09-02T17:46:02.011165+00:00)
- activity 95, release rhythm 28, longevity 100
- inputs: {"age_days": 4429, "days_push": 31, "days_rel": 320, "gap_med": 178.0, "n_releases_24m": 3}
- flags: none
- formula: round(0.45*activity + 0.35*rhythm + 0.20*longevity); archived -> min(score, 10)

## Adoption (not part of the score)
Stars 1252, forks 301 (observed 2026-08-28T04:04:08.369974+00:00)

## What it is
A library that adds JSON:API specification support to Django REST framework, transforming default DRF responses into compliant JSON:API format with pagination, links, and resource objects. It integrates as renderers, parsers, and exception handlers within existing DRF-based Django projects.

## Use cases
- build a JSON:API compliant REST API with Django
- format Django REST framework responses according to the api.org spec
- add pagination links and meta objects to DRF API responses
- serve resource objects with type, id, and attributes from Django models
- migrate an existing DRF API to JSON:API format
- handle JSON:API content type parsing in Django

## When to choose
- you use Django REST framework and need strict JSON:API spec compliance
- clients or tools require the JSON:API media type and document structure
- you want pagination, sparse fieldsets, and includes handled per the spec with sane defaults

## When to avoid
- your API does not need to follow the JSON:API specification
- you use Flask, FastAPI, or a non-Django framework
- you need a fully custom response format that diverges from JSON:API

## Facets
- artifact type: library
- maturity: active
- function: serialization, api-framework, middleware
- domain: web-development, backend, apis
- platform: python
- tags: -api, django-rest-framework, django, rest-api, api-spec-compliance

## Member repositories
- django-json-api/django-rest-framework-json-api (main) score 73

## Provenance
- Observed fields: from GitHub, fetched 2026-08-28T04:04:08.369974+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-30T05:07:32.818140+00:00, confidence not recorded.
  - readme: https://github.com/django-json-api/django-rest-framework-json-api (fetched 2026-08-28T04:04:08.369974+00:00, sha ad2b03c75a32)
- Data as of 2026-08-30T08:39:29.467469+00:00.
