Drupal.org API

Free to Use Varies (check documentation)

Overview

The Drupal.org API gives you programmatic access to information about Drupal modules, projects, users, and releases hosted on drupal.org. It is a REST-style API that requires no authentication for read-only queries, making it easy for beginners to explore. Use it to fetch module metadata, version info, or project details for dashboards and tooling.

💡

Beginner Tip

Start with a simple GET request to retrieve a node (project) by ID — the response is standard JSON format with a list of matching projects. Check the drupal.org documentation to find the correct field_project_machine_name for the project you want.

Available Data

Use case: Integrate drupal.org data into web and mobile applications
Drupal.org data via REST API
JSON-formatted response data
Freely accessible without authentication

Example Response

JSON Response
{
  "status": "success",
  "data": {
    "result": "Data from Drupal.org",
    "description": "Drupal.org",
    "timestamp": "2025-01-15T10:00:00Z"
  }
}

Field Reference

nid Unique node ID for the project on drupal.org
title Human-readable project name
field_project_machine_name The short machine name used in Drupal module directories (e.g., "webform")
field_release_version Version string of the release (e.g., "8.x-5.x-dev")
body Contains "value" with the full HTML description of the project

Implementation Example

// ⚠️ Note: This URL may be a documentation page. Check official docs for actual API endpoint.
const url = "https://www.drupal.org/drupalorg/docs/api";
const response = await fetch(url);
if (!response.ok) throw new Error(`Request failed: ${response.status}`);
const data = await response.json();
console.log(data);

What Can You Build?

Note: These code examples are AI-generated and unverified. Always refer to the official API documentation for accurate usage.

Common Errors & Troubleshooting

404 Not Found on /api-d7/node.json The endpoint path or field filter name may be incorrect
Double-check the field name in the query string; refer to the official Drupal.org API docs for supported filter parameters
Response "list" is empty array The machine name or ID does not match any project
Search drupal.org manually to confirm the exact machine name of the module, then retry the query
Rate limit / 429 Too Many Requests Too many requests sent in a short time from the same IP
Add a delay between requests (e.g., 1 second) and cache results locally to avoid repeated identical calls

Matrix Score Breakdown

🌐 Reachability 0/30
⚡ Speed 10/20
🔒 Security 15/15
🛠 Developer XP 15/20
✓ Reliability 15/15
Response Time 666ms

Fully tested on Apr 5, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Difficulty Beginner
Verified: 2026-04-04

Similar APIs

View All →