# HTTP API of ugcbloom.com https://ugcbloom.com has an HTTP API: functions that return in one call what its pages show over many clicks and page loads. "Over HTTP" below has each of them with a call that works as it is; no browser is needed. The sections after it are about the functions in the site's pages, those among them, which a browser runs as "How a call is made in a page" describes. ## Over HTTP ### search_site Query this entire site in one call with keywords or a multi-part question. Returns Markdown with structured tables (and JSON details for top matches) covering products, services, options, prices, sale prices and stock, verbatim policy, delivery, returns, hours and owner notes with source links, and runs live site tools automatically for real-time quotes, availability or calculations. Covers all 1149 items (with options, prices and availability) and all 331 verbatim policy and info sections from ugcbloom.com, and runs live tools (`site_guide`, `demo_availability`) automatically when a question needs live data. No browser is needed. `GET https://cdn.agentfacehq.com/s/site-7c2aqmlgtg3sdkac/search?q=`. Pass keywords or a full multi-part question in `q` (comparisons, option filters, price or cheapest criteria, or delivery and policy questions). Returns Markdown. Example: https://cdn.agentfacehq.com/s/site-7c2aqmlgtg3sdkac/search?q=Find+a+verified+Tech+%26+Gadgets+creator+in+Qatar+and+explain+the+sourcing+and+negotiation+plan+price. A GET carries a function's parameters in its address, as in each example, a list or an object written as JSON; a POST to the same address carries them as a JSON object. The reply is what the function returns, as it is, which is JSON for most. A call that fails has an error status and `{"error", "message"}`. No key or sign-up is needed. ### site_guide Describes UGCBloom navigation, page URL patterns, public search/filter behavior and account boundaries. Reads current navigation, niches, blog categories and industries. Parameters: - `section` (one of `all`, `sections`, `page_types`, `search`, `accounts`): Part of the guide; defaults to all. Example: https://cdn.agentfacehq.com/s/site-7c2aqmlgtg3sdkac/api/site_guide ### demo_availability Finds available demo slots over 1–31 days, with UTC and chosen-timezone times, without booking or submitting contact details. Reads the live booking horizon and discovers the current read-only availability action. Parameters: - `startDate` (string): First date in the host calendar, YYYY-MM-DD; defaults to the first date allowed by the live page. - `days` (integer): Calendar days to check, default 7; clipped to the site’s current booking horizon. - `timezone` (string): IANA timezone for displayed times, such as Europe/London; defaults to the browser timezone. - `offset` (integer): Zero-based offset among available slots, default 0. - `limit` (integer): Slots to return, default 20. Example: https://cdn.agentfacehq.com/s/site-7c2aqmlgtg3sdkac/api/demo_availability?days=7&limit=3 ### ask_site Answers any question about this business or this page in a few sentences: what it offers and what it costs, opening hours, delivery and returns, how to order, book or get in touch, or anything else a customer would ask. Each answer says where it comes from, and when the business hasn't said, it says so rather than guessing. Answered by the site's agent (agentface). Each answer returns a conversationId. A question sent with it continues that conversation: the question and its answer are appended to the conversation’s history, and the answer takes the earlier questions and answers into account. With no conversationId, or one that is unknown or idle for more than 24 hours, a new conversation starts and its id is returned. No browser is needed. `GET https://cdn.agentfacehq.com/s/site-7c2aqmlgtg3sdkac/ask?q=`, or `POST https://cdn.agentfacehq.com/s/site-7c2aqmlgtg3sdkac/ask` with `{"question": "…", "conversationId": "…"}` as JSON. `conversationId` (also `&conversationId=` on a GET) is the one an earlier answer returned, and continues that conversation; without it a new conversation starts. A POST may also send `history`, the earlier turns as `[{"role": "user", "content": "…"}, {"role": "assistant", "content": "…"}]`, oldest first, which then stands in for the conversation's own. Either returns `{"answer", "answered", "sources", "pagesReadAt", "answeredFrom", "conversationId", "conversationNote"}`: `answered` is false when the site doesn't say, `sources` are the pages the answer came from, `pagesReadAt` is when they were read, `answeredFrom` is `pages`, `notes` (written by the site's owner, with no page to link to), `both` or `none`, and `conversationId` is the conversation's id, new or continued. Ready-made questions, each a complete GET that answers as it is, for a tool that opens only links it was given: [What does the business offer?](https://cdn.agentfacehq.com/s/site-7c2aqmlgtg3sdkac/ask?q=what+does+the+business+offer), [What do things cost?](https://cdn.agentfacehq.com/s/site-7c2aqmlgtg3sdkac/ask?q=what+do+things+cost), [How does ordering or booking work?](https://cdn.agentfacehq.com/s/site-7c2aqmlgtg3sdkac/ask?q=how+does+ordering+or+booking+work), [How can the business be contacted?](https://cdn.agentfacehq.com/s/site-7c2aqmlgtg3sdkac/ask?q=how+can+the+business+be+contacted). ### search_agentface Search other websites registered with Agentface for products, services, or direct HTTP tools not found on this site. Returns matching websites with their URLs, matching items, and HTTP tool addresses. No browser is needed. `GET https://cdn.agentfacehq.com/search?exclude=site-7c2aqmlgtg3sdkac&q=`. Pass keywords or a short question in `q`. Returns Markdown. ## Made for ugcbloom.com - **search_site**: Query this entire site in one call with keywords or a multi-part question. Returns Markdown with structured tables (and JSON details for top matches) covering products, services, options, prices, sale prices and stock, verbatim policy, delivery, returns, hours and owner notes with source links, and runs live site tools automatically for real-time quotes, availability or calculations. - **business_info**: Returns current UGCBloom business, contact, pricing and policy information with source URLs. Omits unstated details; does not book or contact anyone. - **site_guide**: Describes UGCBloom navigation, page URL patterns, public search/filter behavior and account boundaries. Reads current navigation, niches, blog categories and industries. - **demo_availability**: Finds available demo slots over 1–31 days, with UTC and chosen-timezone times, without booking or submitting contact details. Reads the live booking horizon and discovers the current read-only availability action. - **ask_site**: Answers any question about this business or this page in a few sentences: what it offers and what it costs, opening hours, delivery and returns, how to order, book or get in touch, or anything else a customer would ask. Each answer says where it comes from, and when the business hasn't said, it says so rather than guessing. Answered by the site's agent (agentface). Each answer returns a conversationId. A question sent with it continues that conversation: the question and its answer are appended to the conversation’s history, and the answer takes the earlier questions and answers into account. With no conversationId, or one that is unknown or idle for more than 24 hours, a new conversation starts and its id is returned. Release 7. ## On every page - **read_page**: Read a page of this website as clean Markdown: the main content, with absolute links. Without a URL it reads the current page as it is shown now, including anything loaded after it opened and the contents of open shadow trees. Frames and closed shadow trees are left out. Other pages are fetched without cookies, and their scripts do not run. - **dismiss_popups**: Close cookie banners and promotional pop-ups covering this page, using their own "reject optional" or close buttons. It never accepts optional cookies, follows links or submits forms. Cart, checkout, sign-in, age and region dialogs are left open and reported. - **search_agentface**: Search other websites registered with Agentface for products, services, or direct HTTP tools not found on this site. Returns matching websites with their URLs, matching items, and HTTP tool addresses. - **help**: Describes the functions of this page: for each, what it does, its input as JSON Schema with a note on each input, an example call, and the documentation written when it was made, where it has one. Without a name it describes every function, in one answer. ## How a call is made in a page On a page of https://ugcbloom.com open in a browser, each of these reaches the same functions. A fetched copy of a page doesn't run them: the page's script, https://cdn.agentfacehq.com/s/site-7c2aqmlgtg3sdkac.js, adds them. - **WebMCP**: `navigator.modelContext` when the browser has it, otherwise the adapter's stand-in, `document.modelContext`. - **JavaScript in the page**: `window.agentface.describe()` lists the functions with their input schemas, and `await window.agentface.call('read_page', {})` runs one. A result is `{ content: [{ type: 'text', text }] }`. - **Typing into the page**: at the end of its `` is a region named "Site API" with a text box named "API call". A call is a function's name, then its input as a JSON object, such as `read_page {"url": "/"}`, run with the Run button; `help` describes each function. The region is hidden from people until it is used, but it is in the accessibility tree, and shown in browsers that report automation (`navigator.webdriver`). ## Conversations ask_site is answered by the site's agent (agentface), in a conversation, in a page or over HTTP alike. Each answer returns a conversationId. A question sent with it continues that conversation: the question and its answer are appended to the conversation’s history, and the answer takes the earlier questions and answers into account. With no conversationId, or one that is unknown or idle for more than 24 hours, a new conversation starts and its id is returned. ## Inputs ### search_site ```json { "type": "object", "properties": { "query": { "type": "string", "minLength": 1, "maxLength": 500, "description": "Keywords or a full multi-part question (for example, items with options or price limits plus delivery, returns or live availability)" } }, "required": [ "query" ], "additionalProperties": false } ``` ### business_info ```json { "type": "object", "properties": { "section": { "type": "string", "enum": [ "all", "business", "contact", "pricing", "policies" ], "description": "Information to return; defaults to all." } }, "additionalProperties": false } ``` ### site_guide ```json { "type": "object", "properties": { "section": { "type": "string", "enum": [ "all", "sections", "page_types", "search", "accounts" ], "description": "Part of the guide; defaults to all." } }, "additionalProperties": false } ``` ### demo_availability ```json { "type": "object", "properties": { "startDate": { "type": "string", "pattern": "^\\d{4}-\\d{2}-\\d{2}$", "description": "First date in the host calendar, YYYY-MM-DD; defaults to the first date allowed by the live page." }, "days": { "type": "integer", "minimum": 1, "maximum": 31, "description": "Calendar days to check, default 7; clipped to the site’s current booking horizon." }, "timezone": { "type": "string", "minLength": 1, "maxLength": 100, "description": "IANA timezone for displayed times, such as Europe/London; defaults to the browser timezone." }, "offset": { "type": "integer", "minimum": 0, "maximum": 10000, "description": "Zero-based offset among available slots, default 0." }, "limit": { "type": "integer", "minimum": 1, "maximum": 20, "description": "Slots to return, default 20." } }, "additionalProperties": false } ``` ### ask_site ```json { "type": "object", "properties": { "question": { "type": "string", "description": "The question, in plain words, such as \"Is there delivery on Saturdays?\"", "maxLength": 500 }, "conversationId": { "type": "string", "description": "For a follow-up: the conversationId an earlier answer returned, to continue that conversation with its earlier questions and answers as context. Without it, a new conversation starts.", "maxLength": 64 }, "history": { "type": "array", "description": "For a follow-up: the earlier questions (user) and answers (assistant), oldest first", "maxItems": 6, "items": { "type": "object", "properties": { "role": { "type": "string", "enum": [ "user", "assistant" ] }, "content": { "type": "string", "maxLength": 2000 } }, "required": [ "role", "content" ], "additionalProperties": false } } }, "required": [ "question" ], "additionalProperties": false } ``` ### read_page ```json { "type": "object", "properties": { "url": { "type": "string", "description": "Page URL or path on this site; omit for the current page" } }, "additionalProperties": false } ``` ### dismiss_popups ```json { "type": "object", "properties": {}, "additionalProperties": false } ``` ### search_agentface ```json { "type": "object", "properties": { "query": { "type": "string", "minLength": 1, "maxLength": 500, "description": "Keywords or a short question describing what to look for on other websites" } }, "required": [ "query" ], "additionalProperties": false } ``` ### help ```json { "type": "object", "properties": { "name": { "type": "string", "description": "One function's name; omit to describe them all" } }, "additionalProperties": false } ```