Skip to main content
CMSquestions

How to Export Content from Drupal

IntermediateQuick Answer

TL;DR

Drupal content can be exported via JSON:API (enabled by default in Drupal 9+), the Views Data Export module for CSV/XML exports, the Migrate API for structured exports, or direct database queries. JSON:API is the most modern approach, providing RESTful access to all entity types with their fields and relationships. For complex sites with paragraphs, media entities, and custom field types, you may need to combine multiple methods.

Key Takeaways

  • JSON:API is enabled by default in Drupal 9+ and provides structured access to all entities and relationships
  • Views Data Export module handles configurable CSV/XML exports for specific content types
  • Drupal's Migrate API can export content to various formats as well as import it
  • Direct database access gives the most complete data for complex or custom field structures