Drupal.org API

Free to Use
88 A
Measured Score 0 50 100 Speed 30/30 Consistency 17/20 Security 18/20 Browser access 15/15 Transparency 8/15 TESTED 2026-08-10

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.

Measurement Record

What actually happened when we called this API from our own infrastructure. Every value below was recorded by the request, not copied from the provider's documentation.

Request
GET https://www.drupal.org/api-d7/node.json?field_project_machine_name=webform
Result
HTTP 200 · application/json · 74,847 bytes · compressed
Response time
30 ms (median of 3) · fastest 28 ms
Transport
TLSv1.2 · ECDHE-RSA-AES128-GCM-SHA256 · certificate issued by GlobalSign nv-sa
Browser CORS
Allowed — Access-Control-Allow-Origin: *
Served by
Apache
Recorded
2026-08-10

Fields Returned

Top-level fields present in the response we captured, with the type and value we actually received.

Field Type Value received
self string (url) https://www.drupal.org/api-d7/node?field_proj…
first string (url) https://www.drupal.org/api-d7/node?field_proj…
last string (url) https://www.drupal.org/api-d7/node?field_proj…
list array [1 item]

Captured Response

Captured from a real request to https://www.drupal.org/api-d7/node.json?field_project_machine_name=webform on 2026-08-10. Long arrays and nested objects are truncated to keep the shape readable.

JSON Response · Captured
{
  "self": "https://www.drupal.org/api-d7/node?field_project_machine_name=webform",
  "first": "https://www.drupal.org/api-d7/node?field_project_machine_name=webform&page=0",
  "last": "https://www.drupal.org/api-d7/node?field_project_machine_name=webform&page=0",
  "list": [
    {
      "taxonomy_vocabulary_44": {
        "…": "(3 more fields)"
      },
      "taxonomy_vocabulary_46": {
        "…": "(3 more fields)"
      },
      "taxonomy_vocabulary_3": [
        {
          "…": "(3 more fields)"
        }
      ],
      "body": {
        "…": "(3 more fields)"
      },
      "upload": [
        {
          "…": "(3 more fields)"
        }
      ],
      "field_project_type": "full",
      "field_project_machine_name": "webform",
      "field_project_has_issue_queue": true,
      "field_project_components": [
        "Code"
      ],
      "field_project_default_component": "Code",
      "field_project_issue_guidelines": {
        "…": "(2 more fields)"
      },
      "field_project_has_releases": true,
      "field_release_version_format": null,
      "field_project_homepage": {
        "…": "(4 more fields)"
      },
      "…": "(39 more fields)"
    }
  ]
}

Field Reference

field_project_machine_name The short machine name used in Drupal module directories (e.g., "webform")
body Contains "value" with the full HTML description of the project

Implementation Example

Calls a real endpoint of this API. Replace any placeholder credentials with your own key.

Request
const url = "https://www.drupal.org/api-d7/node.json?field_project_machine_name=webform";
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

Generated guidance based on this API's documentation, not observed by us. Treat it as a starting point and check against the provider's own error reference.

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

Measured Score Breakdown

Live HTTP request to the API endpoint

Speed 30/30
Consistency 17/20
Security 18/20
Browser access 15/15
Transparency 8/15
Endpoint Response Time 30ms

Fully tested on Aug 10, 2026

Technical Specifications

Auth No Auth
HTTPS REQUIRED
CORS UNKNOWN
Difficulty Beginner
Endpoint last called: 2026-08-10

Similar APIs

View All →