☰

Premium Gravity Forms add-on

API Connector

Fill your form fields with live data from any external API

API Connector is a Gravity Forms add-on that sends GET or POST requests to external APIs using form values and maps the response back into your form fields, live while the visitor types or on submission. It supports API Key, Basic Auth, Bearer Token and OAuth 2.0, and keeps credentials encrypted on the server.

  • 30-day money-back guarantee
  • Support from the developers
Typing a book title queries the Open Library API: a not-found message for a nonsense title, then a results picker whose pick fills title, author and year. A ZIP code queries a second API and fills city and state.

For Gravity Forms builders who want forms to look up, validate or send data to a CRM, database or web service without custom code.

Forms that fill themselves

Visitors enter an email address, a postcode or an ID, and the rest of the form is filled from your CRM or web service. Less typing, fewer mistakes.

No custom code per integration

Set up the connection once, then choose the endpoint, parameters and target fields in a feed. You do not write a PHP snippet for every API.

Credentials stay on the server

Requests run server-side and keys are stored encrypted, so your API credentials never appear in the visitor’s browser.

Try it

This form runs API Connector on this site. Fill in the fields and see the add-on at work.

Use cases

  • Fill name and company fields from Salesforce or ActiveCampaign after a visitor enters an email address.
  • Auto-fill form fields with records from an Airtable base.
  • Look up product, address or account details from your own web service while the form is filled in.
  • Send a submission to an external system with a POST request on form submission.
  • Show a choice of API results and fill the form with the item the visitor selects.
  • Run an API request as a step in a Gravity Flow workflow.

Features

  • Reusable API connections

    Add one or more APIs under Forms → Settings → API Connector with a name, base URL and authentication. Every form can then pick a connection in its API Connector feed.

  • Five authentication methods

    Connect with API Key (in a header or query string), Basic Authentication, Bearer Token, OAuth 2.0 Client Credentials or OAuth 2.0 Authorization Code with optional PKCE.

  • Form values in headers, query and body

    Map form fields to request headers, query string or body parameters, or use a custom value with merge tags. POST feeds can send form parameters or a JSON body.

  • Map the response to fields

    Point Target Fields to a value in the JSON response with a path such as 0/weight/imperial. Text, email, phone, hidden, Name, Address, Radio and Checkbox fields can be filled.

  • Live lookups or on submission

    Choose the API Request Trigger: when mapped fields change, or on form submission. On submission you can also store the full response in a text field.

  • Results Picker, messages and List fields

    Show API results as a list the visitor picks from, display a message when the API fails or a key is missing, and write success, not_found or api_error to a hidden field for conditional logic. List field columns work as input and as target.

Ready to use API Connector? 30-day money-back guarantee.

Buy now from $49

Why GravityWP

Gravity Forms specialists since 2014. The people who build the add-ons also answer your questions.

5.0/5from 30 reviews on WordPress.org and GoogleRead more

Built the Gravity Forms way

Our add-ons use the official Gravity Forms add-on framework, so settings, feeds and entries work the way you already know.

Compatibility guaranteed

Works with current Gravity Forms versions and certified add-ons like Gravity Flow, GravityView and Gravity Perks. If something conflicts, we fix it.

Support from the developers

Your question goes straight to the people who wrote the code. Good feature requests often make it into the next release.

What customers say

The quality of support is unreal! We submitted a few feature request and in many cases these features were built in the next day. Couldn’t be happier with the plugins and the support from GravityWP.
Aidan E., municipal government
This is the best plug-in support I’ve ever received.
Owner, e-commerce business
It’s nice to know you guys are out there making cool stuff for Gravity Forms. I’ve gotten pretty deep into some GF configurations and really respect and appreciate all of you who are doing the work and making it cooler and better.
Owner, website agency

More about GravityWP

Get API Connector

Yearly license with updates and email support. Prices excl. VAT.

1 site

$49/year

Buy for 1 site

50 sites

$179/year

$3.58 per site
Includes priority support

Buy for 50 sites

All Access

$139/year

All 14 premium add-ons, 1 site
$9.93 per add-on

Get All Access

30-day money-back guarantee on your first purchase. Refund policy. When a license ends, everything you installed keeps working; only downloads, updates and support stop. Compare all licenses

Questions before you start? Ask us

Frequently Asked Questions

What does API Connector do?

It connects a Gravity Form to external APIs. It sends GET or POST requests with form values and maps the API response back into one or more form fields.

Where do I add API connections and credentials?

Go to Forms → Settings → API Connector and add one or more API connections. Once saved, you can select them in each form’s API Connector feed.

Can I use form values in headers or query parameters?

Yes. In the feed you map headers and query string or body parameters to form fields, or to a custom value with merge tags.

How do I map the API response to fields?

Use the Target Fields setting with a response path. Nested JSON properties are separated with /, for example 0/weight/imperial. If you do not know the structure, store the full response and use the JSON path parser.

What happens when my license expires?

Everything you installed keeps working. You no longer get downloads, updates, new features and support until you renew.

Can I get a refund?

Yes, within 30 days of your first purchase. Request it through your account on my.gravitywp.com. Renewals are not refunded; see the refund policy.

Changelog of API Connector

v1.5.1

  • License and Update handler improvements

1.5.0

  • Added a Results Picker that displays API results as a configurable, theme-aware list and populates mapped fields when a result is selected.
  • Added target field behavior controls to allow editing, allow editing after a failed request, or keep API-filled fields readonly.
  • Added support for filling Name, Address, Radio and Checkbox fields from API responses during submission, live updates and picker selection.

v1.4.5

  • License and Update handler improvements

1.4.4

  • Fixed endpoint URL merge tags so their fields trigger frontend API requests.

1.4.3

  • Added a JSON body format for POST feeds, including nested JSON path mappings such as `values[0][0]`.
  • Improved the connection settings screen with beginner-friendly helper text, bold field labels, and field descriptions placed directly under their labels.
  • Added a visible OAuth 2.0 Redirect URL field with a Copy button.

1.4.2

  • Added "Extra Authorization Parameters" setting to the OAuth 2.0 Authorization Code connection, allowing custom key=value pairs (e.g. `access_type=offline`, `prompt=consent`) to be appended to the authorization URL. Useful for providers like Google that require extra parameters to issue a refresh token.

1.4.1

  • Fixed: submit and next button clicks that occur while an API call is in progress are now queued and automatically replayed once the call completes.

1.4.0

  • Added "Response Messages" feed settings to display inline Gravity Forms-style validation messages when the API returns an error or when the configured response key is not found.
  • Added Response Status Tracker Field support to write the lookup status (`success`, `not_found`, or `api_error`) into a Gravity Forms (hidden) Text field for use with conditional logic.
  • Improved realtime lookup handling for List fields, including better row-specific request/response mapping and merge tag resolution for list values.
  • Improved API error handling to distinguish request failures from missing response data and expose the resulting status to the frontend.
  • Improved prefilled-field realtime lookups to avoid unnecessary repeat requests on later multipage form loads when the relevant target fields are already filled.

1.3.2

  • Enhance OAuth2 state management and security checks.
  • Fixed: conditional fields not showing when field values are populated via API response. Dispatched change events now bubble correctly to trigger Gravity Forms conditional logic.

1.3.1

  • Added `gravitywp_api_connector_request_parameters` filter to allow modification of request parameters before sending API requests. This enables custom payload structures, file attachments, and advanced parameter customization.

1.3.0

  • Added a loading indicator for API Connector AJAX actions so users see progress while requests run.
  • Improved translations coverage and text-domain.

1.2.1

  • Added `gravitywp_api_connector_request_timeout` filter to allow customizing the HTTP request timeout (default: 10 seconds).

1.2

  • Added OAuth 2.0 Authorization Code support, including PKCE, authorization flow, and token refresh handling.
  • Treat 2xx responses as success (including 201) so full API responses can be stored without logging an error.

1.1.3

  • Added support for `email`, `hidden`, and `phone` field types in mappings.
  • Fix: Add 'thickbox' dependency to admin scripts to ensure Thickbox modal functionality works as expected in the API Connector admin UI.

1.1.2

  • Implement support for pre-populated trigger fields. If they match the trigger conditions the API will be called on form load.

1.1.1

  • Fix: correctly support the application/json Content Type for POST requests.
  • Fix some strings not being translated.

1.1

  • Implemented oAuth2 Client Credentials.
  • Fix an issue with 'if required mapped fields are not empty' realtime API calls.
  • Fix an issue when empty header settings lead to an invalid API call in some cases.
  • Fix an issue where the API response didn't show in the confirmation message.
  • Added the 'gravitywp_api_connector_mapping_field_types' filter to allow field types other than text and textarea's as target field.

1.0.1

  • Allow merge tags in the relative endpoint url.
  • Resolved an issue with Bearer Token authentication.

1.0

  • It's all new!

Start using API Connector today

Fill your form fields with live data from any external API

Buy now from $49

30-day money-back guarantee

Proudly powered by WordPress