API Data Source
Use API Data Source when a page needs client-side access to an external API and bind that output into visible UI.
Use API Data Source when the page can safely call the API directly
API Data Source is the right tool when a page needs client-side access to a remote API and that request can be made from the browser without exposing secrets or server-only logic. In that model, the component becomes the page’s data contract and the page can bind the returned JSON directly into visible UI.
A practical example is a public catalog, weather, or status feed on the page
The best first example is a public API that returns readable JSON without private credentials. Configure the endpoint, inspect the returned schema, then bind only the fields the page actually needs. That keeps the component honest and makes the next debugging pass much easier.
The important properties are identity, request settings, and caching behavior
For most real projects, the critical questions are not whether the component can call an API. They are whether the component has a stable id for bindings, whether request parameters and headers are correct, and whether the caching behavior matches how fresh the page data needs to be.
Next steps
Use the generated reference when you need the full property surface, then return to the broader API tours for mental models and adjacent patterns.