{"id":10193,"date":"2026-04-29T17:30:56","date_gmt":"2026-04-29T17:30:56","guid":{"rendered":"https:\/\/www.hostinger.com\/support\/?p=10193"},"modified":"2026-11-23T09:41:31","modified_gmt":"2026-11-23T09:41:31","slug":"how-to-integrate-a-third-party-api-into-your-hostinger-ai-builder-agentic-mode-website","status":"publish","type":"post","link":"https:\/\/www.hostinger.com\/support\/how-to-integrate-a-third-party-api-into-your-hostinger-ai-builder-agentic-mode-website\/","title":{"rendered":"Hostinger AI Builder: How to integrate a third-party API in agentic mode"},"content":{"rendered":"<p>Integrate a third-party API into your <a data-click-id=\"hgr-post-content-link-hostinger-ai-builder\" href=\"\/ai-builder\">Hostinger AI Builder<\/a> agentic mode website to add advanced features like payment processors, real-time data feeds, and automation tools. Hostinger AI Builder handles the backend code for you, supporting common use cases such as:<\/p>\n<ul>\n<li style=\"font-weight: 400\"><b>Payment processors<\/b><span style=\"font-weight: 400\">: Integrating services like PayPal or Stripe.<\/span><\/li>\n<li style=\"font-weight: 400\"><b>Content APIs<\/b><span style=\"font-weight: 400\">: Displaying live data such as weather, news, or specialized databases.<\/span><\/li>\n<li style=\"font-weight: 400\"><b>Automation<\/b><span style=\"font-weight: 400\">: Connecting to tools to sync user data.<\/span><\/li>\n<\/ul>\n<h3><strong>Before you start<\/strong><\/h3>\n<p><span style=\"font-weight: 400\">Before prompting, gather the following details from your API provider:<\/span><\/p>\n<ul>\n<li style=\"font-weight: 400\"><b>API key (if required)<\/b>: If the API needs a key, such as a Stripe or OpenAI API key, have both your test key and live key ready. You add them in <strong>Secrets<\/strong>, not in the chat.<\/li>\n<li style=\"font-weight: 400\"><b>Documentation URL<\/b><span style=\"font-weight: 400\">: The specific endpoint structure and parameters.<\/span><\/li>\n<li style=\"font-weight: 400\"><b>Functional requirements<\/b><span style=\"font-weight: 400\">: A clear description of what the API should do (e.g., &#8220;display data&#8221; or &#8220;trigger an action&#8221;).<\/span><\/li>\n<\/ul>\n<h2 id=\"h-step-1-prompt-to-set-up-the-integration\"><strong>Step 1 &#8211; Prompt to set up the integration<\/strong><\/h2>\n<p><span style=\"font-weight: 400\">In the Hostinger AI Builder chat, describe the connection you want to establish. Provide the technical details directly in the chat.<\/span><\/p>\n<p><b>Example prompt for a content API:<\/b><\/p>\n<p><em>Integrate a public weather API into my website. Display the current weather for London on the homepage every time the page loads.<\/em><\/p>\n<p><b>Example prompt for a payment API:<\/b><\/p>\n<p><em>Integrate the PayPal API into my website. Add a Pay Now button to the checkout page.<\/em><\/p>\n<p>When Hostinger AI Builder needs a key, it shows a secure card in the chat where you enter the value. The value never appears in the conversation.<\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\"><span style=\"font-weight: 400\">Be as specific as possible regarding where the feature should appear and what happens after a user interacts with it.<\/span><\/div>\n<h2 id=\"h-step-2-test-the-integration\"><strong>Step 2 &#8211; Test the integration<\/strong><\/h2>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Once the integration is generated, click <\/span><b>Preview<\/b><span style=\"font-weight: 400\"> to open your site.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Trigger the feature, such as loading the page or clicking a button.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Confirm the <strong>expected result<\/strong>, such as data loading or a confirmation message appearing.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">If the feature does not work, <strong>describe the specific error to the Hostinger AI Builder chat and ask for a fix<\/strong>.<\/span><\/li>\n<\/ol>\n<h2 id=\"h-step-3-publish-your-website\"><strong>Step 3 &#8211; Publish your website<\/strong><\/h2>\n<p><span style=\"font-weight: 400\">Once the integration works correctly in the preview mode:<\/span><\/p>\n<ol>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Click <\/span><a data-click-id=\"hgr-post-content-link-publish\" href=\"\/support\/10506149-hostinger-ai-builder-agentic-mode-how-to-publish-your-app\/\"><b>Publish<\/b><\/a><span style=\"font-weight: 400\"> in the editor.<\/span><\/li>\n<li style=\"font-weight: 400\"><span style=\"font-weight: 400\">Before publishing, add a Live value for each secret in <strong>Secrets<\/strong>. Your published site uses the Live value, while the preview keeps using the Test value. If a secret has a <strong>Test value<\/strong> but no <strong>Live value<\/strong>, a warning appears when you publish.<\/span><\/li>\n<\/ol>\n<h2 id=\"h-build-a-data-app-in-hostinger-ai-builder\">Build a data app in Hostinger AI Builder<\/h2>\n<p>Hostinger AI Builder agentic mode builds data apps: web apps that pull data from an external API and display it on your site. If the API needs a key, add it in <strong>Secrets<\/strong>.\u00a0Hostinger AI Builder chooses how often to refresh the data based on what your app needs, using one of three approaches:<\/p>\n<ul>\n<li><strong>Load on request<\/strong> \u2013 the app fetches the data each time a visitor opens it. This suits data that rarely changes, such as encyclopedia or reference content.<\/li>\n<li><strong>Scheduled load<\/strong> \u2013 the app stores the data in its database and updates it in the background on a schedule. This suits product price aggregators, parcel trackers, and apps that send alerts or notifications.<\/li>\n<li><strong>Real-time load<\/strong> \u2013 the app keeps a live connection to the data provider and updates continuously. This suits cryptocurrency exchange rates, stock prices, and sensor data.<\/li>\n<\/ul>\n<p>Describe the data source and how up to date the data needs to be in your prompt. For example: <em>Build a dashboard that shows live Bitcoin and Ethereum prices from a public crypto exchange API.<\/em><\/p>\n<p>Data apps show when their data was last updated and flag data that&#8217;s out of date. If a refresh fails, the app keeps showing the last data it loaded. When a data provider delays its data, the page says so, for example &#8220;15-minute delayed quotes&#8221;.<\/p>\n<p>Hostinger AI Builder prefers free APIs that don&#8217;t need a key. When an API needs a key, Hostinger AI Builder builds the full app on clearly labeled demo data and shows an Add your API key card in the chat. Paste the key and click Save and continue, or click Skip for now and add the key later in Secrets. Live data replaces the demo data once the key is saved, without rebuilding the app.<\/p>\n<p>A published data app with a scheduled load stays awake, so scheduled alerts, emails, and digests go out on time even when nobody visits the site. Published sites without a scheduled load go to sleep when idle. Apps that use locations get an OpenStreetMap map with place-name search.<\/p>\n<p>To start from a ready-made data app, use one of the <a data-click-id=\"hgr-post-content-link-data-app-templates\" href=\"https:\/\/www.hostinger.com\/templates\/apps\/data-app\">data app templates<\/a> on the Hostinger templates page.<\/p>\n<h2 id=\"h-store-api-keys-in-hostinger-ai-builder-secrets\">Store API keys in Hostinger AI Builder Secrets<\/h2>\n<p>Secrets keeps API keys for services like Stripe or OpenAI out of the chat and out of your project files. Each secret has a Test value for the preview and a Live value for your published site. See <a data-click-id=\"hgr-post-content-link-hostinger-ai-builder-how-to-store-api-keys-with-secrets-in-a\" href=\"https:\/\/www.hostinger.com\/support\/hostinger-ai-builder-how-to-store-api-keys-with-secrets-in-agentic-mode\/\">Hostinger AI Builder: How to store API keys with Secrets in agentic mode<\/a> for how to add, edit, and delete secrets.<\/p>\n<p><span style=\"font-weight: 400\">Your Hostinger AI Builder website is now connected to an external service, extending its functionality beyond standard features. You can continue to add more integrations as your site grows.<\/span><\/p>\n<div class=\"intercom-interblocks-callout\" style=\"background-color: #e3e7fa80;border-color: #334bfa33\">For an overview of how integrations work and other common examples, see <a data-click-id=\"hgr-post-content-link-how-to-use-integrations-in-agentic-mode\" href=\"\/support\/11132691-hostinger-ai-builder-agentic-mode-how-to-use-integrations\/\">how to use integrations in agentic mode.<\/a><\/div>\n","protected":false},"excerpt":{"rendered":"<p>Integrate a third-party API into your Hostinger AI Builder agentic mode website.<\/p>\n","protected":false},"author":591,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_content_updated_date":"","include_on_kodee":true,"footnotes":""},"categories":[293],"tags":[],"class_list":["post-10193","post","type-post","status-publish","format-standard","hentry","category-ai-builder"],"hreflangs":[{"locale":"en-US","link":"https:\/\/www.hostinger.com\/support\/how-to-integrate-a-third-party-api-into-your-hostinger-ai-builder-agentic-mode-website","default":1}],"include_on_kodee":true,"_links":{"self":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10193","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/users\/591"}],"replies":[{"embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/comments?post=10193"}],"version-history":[{"count":16,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10193\/revisions"}],"predecessor-version":[{"id":25685,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/posts\/10193\/revisions\/25685"}],"wp:attachment":[{"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/media?parent=10193"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/categories?post=10193"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.hostinger.com\/support\/wp-json\/wp\/v2\/tags?post=10193"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}