Features/REST API

Visually connect API data in the builder

Turn any REST request into a data source and bind elements to it in the builder, with repeat, filters, sort and pagination.

When Source is enabled on a REST request, it appears in the builder's Source panel under the 'Rest API' folder. Native integrations add their own folders (Airtable, Strapi, Shopify). You select an element, pick the source, and the element repeats once per item in the response. Child elements read item values with variables, so you design the card once and it fills with live data.

How it works

  • Builder: Advanced panel > Source (mdSources 'main' render). Pages can also take a source (page options).
  • Source panel options: Select source, Properties (source specific inputs, can use variables), Delay (ms, staggers source requests on page load; tooltip recommends it when a page has more than 10 sources), Filters (field, operator, value; for sources that declare fields), Sort (source specific list), Repeat (Yes: repeat the element per item; No: render once with items and count variables), Pagination, Dynamic filters, Key (the variable name children use, default 'value'), Save.
  • REST sources: id 'rest.<request id>', folder 'Rest API', title is the request name, properties are the request's Properties (editable per element). The callback runs executeWithCache with those properties.
  • Key on the request (for example get('blogs')->index('0')) picks a nested part of the response before it reaches the builder.
  • Data is fetched on the server via the md.sources run action and returned to the page.

When to use it

  • Repeat a card for each item returned by an API
  • Build a detail page that loads one record by a property
  • Combine API data with your own design without code

Limitations

  • Filters and sort only exist when the source declares fields and sort keys; plain REST sources declare none, so filtering must be done in the API URL or params
  • MCP cannot bind REST sources

Availability

  • Works in Designer.
  • Included in every plan.

How to use it.

  1. Enable Source on the REST request
  2. In the builder select the element to repeat
  3. Open Advanced > Source and pick it from the Rest API folder
  4. Set properties and Key, then Save
  5. Bind child texts and images to $<key>->get('field')

Questions.

Why is my request not in the Source list?

Can I pass page values into the request?

Related features.

No card needed

Build it today.Pay when it goes live.

Every feature is unmetered while you build. Checkout opens the first time you publish.