Skip to main content
drupalreleases

Use direct release data with your AI assistant.

Learn more

API Connection

Security covered Under active development 53 sites

Part of the API ecosystem · 22 projects

This module allows your Drupal website to connect to external APIs by providing a plugin system to define integrations with specific REST APIs. It also supports logging API requests and responses and differentiating between different environments.

This is a helper module to let your Drupal website connect to external APIs.

This module uses a Plugin architecture, that allows you to define a plugin in your custom Drupal module, for each REST API / web service you want to integrate with.

Features

  • Provides a RestApiConnection plugin type to use in your modules for connecting to an external REST API.
  • Ability to log REST API requests and responses in Drupal logger / watchdog.
  • Ability to differentiate between dev / test / live environments.

Similar projects

  • HTTP Client Manager: describes each API declaratively, as a Guzzle Service Description in YAML or JSON, and comes with extras like pre-configured requests, actions and a preview UI. It depends on the Guzzle Services library.

API Connection is more lightweight: one PHP plugin class per API, on top of the Drupal core HTTP client, with no extra dependencies. Pick HTTP Client Manager if you want to describe all API operations up front, and API Connection if you prefer to write the API calls in PHP yourself.

Ask your assistant about API Connection

Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works

Depends on

Dependencies of the latest stable release

No dependencies recorded for this project.

Required by

Tracked projects that depend on this one

No tracked projects depend on this one yet.

Activity

Tracked releases
3
Tracked since
Jun 2024
Latest release
5 days ago
Releases (12 mo)
2 ▲ from 0
Maintenance
Active

Release Timeline

Releases

Version Type Core PHP Release date
1.0.0-beta3 Pre-release 10–11 Nov 24, 2026
1.0.0-beta2 Pre-release 10–11 Dec 1, 2025
1.0.0-beta1 Pre-release 9–11 Jun 14, 2024