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.
- Enable Source on the REST request
- In the builder select the element to repeat
- Open Advanced > Source and pick it from the Rest API folder
- Set properties and Key, then Save
- 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.
Connect any REST API
Create GET, POST, PUT or DELETE requests to any external REST API and use the response on your site.
Dynamic request properties
Define properties on a request and change them per element in the builder to adjust the URL, params or body.
Response key selector
Pick a nested part of an API response, for example a list inside the JSON, before it reaches the builder.
Airtable integration
Use Airtable bases as a database for your site: every table becomes a builder data source with filters and sort.
Strapi integration
Connect a Strapi headless CMS and use its collection types as builder data sources with filters, sort and locale.
Shopify integration (headless storefront)
Connect a Shopify store with Storefront API tokens and design product listings and pages in Divhunt.
Browse other features
Designer
Bring your ideas to life with our visual website builder. Drag and drop with ease, or dive into coding when needed.
→AI Studio
Describe it and AI builds it. Every change lands in the same project you can open in the Designer.
→MCP
Connect Claude Code, Cursor or any MCP client and build whole sites with your own agent.
→CMS
Create, organize, and manage your dynamic content with the maximum freedom and flexibility of our visual CMS.
→SEO
Divhunt delivers ultra-fast & structured sites that are good for ranking by default, while offering complete control for customization.
→REST API
Easily link to any REST API endpoint with instant preview and expand your site’s functionality smoother than ever before.
→Plugins
Divhunt offers an open platform for creating plugins to upgrade features, add new capabilities, and simplify building better sites.
→Localization
Localize everything from static pages and CMS content to URLs and metadata, in up to 15 languages with no add-on.
→Interactions
Visually create animations and interactions with a simple, intuitive timeline. Build smooth, engaging experiences without code.
→Custom Files
Manage JS and CSS files with a structure developers love, combining folders and clean organization.
→Memberships
Create plans, decide who sees what and connect it all to your CMS. Build courses, communities or client portals.
→