AB Tasty icon

AB Tasty

Use the AB Tasty API

Overview

This node integrates with the AB Tasty platform's Public API to list all tests associated with a specified account. It allows users to retrieve detailed information about experiments and campaigns configured in their AB Tasty account, filtered and paginated according to various criteria.

Common scenarios where this node is beneficial include:

  • Fetching a list of active or paused A/B tests for monitoring or reporting.
  • Filtering tests by tags, folders, or test types to analyze specific segments.
  • Paginating through large collections of tests to process them in batches.
  • Integrating AB Tasty test data into workflows for automation or further analysis.

For example, a marketing analyst could use this node to automatically pull all currently running tests tagged with "homepage" to generate a performance report.

Properties

Name Meaning
Account ID The numeric identifier of the AB Tasty account from which to list tests.
Query Parameters Collection of optional filters and pagination settings to refine the list of tests returned. These include:
- Filter Active: Filter tests by status; options are Pause (0) or Play (1). Default is Play (1).
- Filter Exclude Tag: Exclude tests that have a specific tag.
- Filter Folder: Search tests by folder ID (use 0 for no folder).
- Filter Is Preprod: Boolean flag to return only pre-production tests if set. Default is true.
- Filter Is Schedule: Filter tests by schedule status; options are Test Not Schedule (0) or Test Schedule (1). Default is Test Schedule (1).
- Filter Name: Search tests by name.
- Filter Name or URL: Search tests by name or URL.
- Filter Order ID: Order results by test ID; options are Ascending or Descending. Default is Ascending.
- Filter Order Name: Order results by test name; options are Ascending or Descending. Default is Ascending.
- Filter Parent: Search tests by parent ID (0 for no parent).
- Filter Search: General search by name, URL, or ID of the test.
- Filter Tag: Return only tests with a specific tag.
- Filter Type: Search by test type (e.g., ab, heatmap, mobileapp, mastersegment, multipage, multivariate, mvt, predictive, segmentation, subsegment, tunnel).
- Max Per Page: Limit the number of items returned per page. Default is 10.
- Page: Specify the page number of the collection to retrieve. Default is 10.

Output

The node outputs an array of JSON objects representing the tests retrieved from the AB Tasty Public API. Each object corresponds to a test and contains its details as provided by the API response.

If the API returns no content, the output will indicate a "204 No Content" status.

The node does not output binary data.

Dependencies

  • Requires an API key credential with client ID and client secret for AB Tasty API authentication.
  • Makes HTTP requests to AB Tasty's OAuth token endpoint to obtain an access token.
  • Uses the access token to authenticate subsequent API calls.
  • No additional external dependencies beyond standard Node.js modules and n8n helpers.

Troubleshooting

  • Missing Client ID or Client Secret: The node throws an error if these credentials are not provided. Ensure the API key credential is correctly configured.
  • Failed to retrieve access token: Indicates issues with authentication; verify client ID and secret validity and network connectivity.
  • Required parameters missing: For listing tests, the Account ID must be provided; otherwise, the node will throw an error.
  • API errors: Any API call failure will result in an error with the message prefixed by "Error calling AB Tasty API". Check the error description for details.
  • Empty or malformed responses: If the API returns empty strings or invalid JSON, the node attempts to handle it gracefully but may output raw text or a 204 status.

Links and References

Discussion