Skip to main content

Logic

Bind API data to animations without writing fetch code.

Updated November 2026

An API variable in ExodeUI calls a URL, picks a field with a JSON path and keeps it fresh on an interval. You bind that variable to text, a chart, a list or a transition condition, so the animation reacts to real data. It works like an API caller built into the file, with auth, headers and secret values.

Free Community plan · Browser, macOS and Windows

Methods
GET, POST, PUT, PATCH, DELETE
Pick a field
JSON path
Refresh
Interval, min 1 s
Auth
Bearer, Basic, header, query

How it works, step by step

  1. 1Create an API variable

    In the logic panel, go to Variables, click + Add Variable and choose API Variable.

  2. 2Set the request

    Enter an https URL, the method, any query parameters and headers, and the authentication type.

  3. 3Pick the value

    Write a JSON path such as $.data.items[0].price and choose a value type: auto, number, text, on/off or list.

  4. 4Bind it

    Bind a text layer to it, feed a chart or list, or use it in a transition condition. Set a refresh interval, or 0 for manual refresh.

Every control

ControlWhat it does
URLhttps only; credentials in the URL are rejected.
JSON path$.price, $.items[0].value, or $.items.value to pluck a field from every row.
Value typeAuto, number, text, on/off or list / array.
IntervalPolling in milliseconds, minimum 1000; 0 means manual.
SecretsMark a header or value secret. It is masked in the panel and you are warned before export.
SafetyPrivate network addresses are blocked, requests time out after 10 s, and responses over 1 MB are rejected.

What you can make with it

Weather and status cards

A temperature or uptime value that refreshes on its own.

Price tickers

Prices that animate up or down when they change.

Dashboards

Charts fed from a JSON endpoint.

Live scores

Scores and timers pulled from a feed.

Use it from your code

React
import { useState } from 'react';
import { ExodeUICanvas } from 'exodeui';

export function WeatherCard() {
  const [engine, setEngine] = useState(null);
  return (
    <div style={{ width: 360, height: 220 }}>
      <ExodeUICanvas src="/weather.exode" autoPlay onReady={setEngine} />
      <button onClick={() => engine?.refreshApiVariable('weather')}>
        Refresh
      </button>
    </div>
  );
}

Three good tools for this

We make ExodeUI, so weigh our pick with that in mind.

  1. 1

    Framer

    Best forAPI data on websites

    Pick it whenYou build a website in Framer; its Fetch feature shows API data without code.

  2. 2

    Rive

    Best forData binding set from app code

    Pick it whenYour team uses Rive; its data binding takes values your app passes in.

  3. 3

    ExodeUI

    Best forAPI calls inside the animation file

    Pick it whenYou want the file itself to call the API, parse the JSON and drive text, charts and states, on web and mobile.

When another tool is the better fit

If your app already fetches the data, pass it to the file as inputs instead. Keep API calls in one place, and keep private keys on your server.

Questions

Can an animation call an API?

Yes. An API variable calls a URL on an interval, extracts a value with a JSON path and feeds it to the file like any other input.

How do I pick one field from the JSON?

Use a JSON path such as $.data.temp or $.items[0].price. $.items.value collects a field from every row into a list.

Are my API keys safe in the file?

Secret values are masked in the editor but stored in the file. Exports warn you. For production, replace them with placeholders that resolve at runtime.

Why does my API work in the desktop app but not on the web?

Browsers enforce CORS. The API has to allow your site’s origin. The desktop app makes requests outside the browser, so CORS does not apply.

More in the editor

All features →

Open the editor and try it

Free to start. Your work saves to one open .exode file that you own.

ExodeUI

EXODEUI DESKTOP

A little space for good ideas.

Choose your platform to get the official ExodeUI installer.

Looking for Intel Mac or other builds? Explore the web studio or check all download options.

Prefer the browser? Try for free in your browser →