{
  "openapi": "3.1.0",
  "info": {
    "title": "Nodely x402 APIs",
    "version": "1",
    "description": "Pay-per-call APIs for agents, paid with x402 (USDC on Algorand; search and scrape also on Base and Arc). Each paid route answers 402 with a PAYMENT-REQUIRED header until it gets a PAYMENT-SIGNATURE; /.well-known/x402 lists them.\n\n## Nodely Search and Scrape (x402)\n\nPay-per-request web search and page scraping for agents, paid in USDC with the x402 v2 `exact` scheme on Algorand mainnet (ASA 31566704), Base (eip155:8453) or Arc (eip155:5042): an unpaid request gets 402 with a PAYMENT-REQUIRED header listing the price of that resource on each network; retry with PAYMENT-SIGNATURE carrying one signed USDC asset transfer (Algorand) or one EIP-3009 transferWithAuthorization (Base, Arc: the payer needs USDC only, Nodely's relayers pay the gas) of exactly that amount. A search costs 0.0085 USDC and a scrape 0.011 USDC on Algorand; on Base and Arc a search costs 0.009 USDC and a scrape 0.012 USDC (each resource and network is priced on its own: read the 402 or the pricing routes). The payer must hold at least 10x the price of the request in USDC on top of its unsettled payments. Search results come from several independent web search engines (named by Greek letters in requests and responses; the current names are listed by /v1/search/pricing), merged and re-ranked; they can be streamed per engine as NDJSON or SSE. Request/response follow Tavily-style names; Exa, You.com, Perplexity, Brave, Serper and Linkup field names are accepted as aliases. Scrapes run on Firecrawl (headless browser) and return its page data. Searches that return nothing and scrapes that fail are not charged.\n\n## Nodely DEX Prices (x402)\n\nAlgorand DEX prices, paid per call with x402 (exact scheme, USDC ASA 31566704 on Algorand, 0.001 USDC per call, payTo X4O2COYWOFR7XS3EOYEF6MG42Y4Q743SKZMULC776NODRTMMRIVTCOBANQ). An unpaid call answers 402 with the PAYMENT-REQUIRED offer; a bad request answers 400 and is never charged, nor is a call that returns no data. The same data is free and rate-limited at https://algoprices.api.nodely.io. The network fee is sponsored (extra.feePayer X4O2STHZWIA425GOSCKVW3KY6IAW3F6SSV5AZ23HOYFLKCDRTHKWUYNDLY): the payer signs only the USDC transfer, with fee 0, and needs no ALGO beyond its minimum balance. Historical and live prices of Algorand ASAs, computed from on-chain DEX pool state (Tinyman V2, Pact, Pact StableSwap, Pact weighted, Humble, Algofi, LiquiHog, Biatec) since round 19,247,000. Prices are exact to the round: the state of every pool is replayed from its eval deltas. A USD price is a liquidity-weighted route search to USDC over the pools; a price in another quote is the ratio of both USD prices.\n\nEvery price carries three units: `price` (in the requested quote), `usdc` and `algo` (null if the asset cannot be routed).\n\nRate limit: 10 requests/s per client IP (burst 20); excess requests get HTTP 429. Checkout <a href=\"/v1/api-docs/swagger.json\">swagger.json</a>.\n\n## Nodely NFT Image Search (x402)\n\nSemantic search over the images of Algorand NFTs (every image in Nodely's IPFS cache, embedded with Qwen3-VL-Embedding-2B): by text, by an uploaded image, or similar to a cached CID. Paid per call with x402 (exact scheme, USDC ASA 31566704 on Algorand, 0.005 USDC per call, payTo X4O2COYWOFR7XS3EOYEF6MG42Y4Q743SKZMULC776NODRTMMRIVTCOBANQ). An unpaid call answers 402 with the PAYMENT-REQUIRED offer; a bad request, an unknown CID and a failed search are never charged. The network fee is sponsored (extra.feePayer X4O2STHZWIA425GOSCKVW3KY6IAW3F6SSV5AZ23HOYFLKCDRTHKWUYNDLY): the payer signs only the USDC transfer, with fee 0."
  },
  "servers": [
    {
      "url": "https://x402.api.nodely.io"
    }
  ],
  "paths": {
    "/v1/scrape": {
      "get": {
        "description": "Same as POST /v1/scrape. Charged only when the page was delivered: Firecrawl succeeded and the target answered with a status below 400. A failed scrape (502 scrape_failed) or a timeout (504 scrape_timeout) is not charged and the same payment may be retried (a bounded number of times). The scrape must finish while the payment can still be committed: its deadline is what the payment's validity window leaves (at most 20 s); a window leaving less than 3 s is refused with 402 invalid_exact_avm_validity_window before anything is fetched.",
        "operationId": "scrapeGet",
        "parameters": [
          {
            "in": "query",
            "name": "url",
            "required": true,
            "schema": {
              "format": "uri",
              "maxLength": 2048,
              "type": "string"
            }
          },
          {
            "description": "Comma-separated: markdown (default), html, rawHtml, links",
            "in": "query",
            "name": "formats",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Alias: onlyMainContent",
            "in": "query",
            "name": "only_main_content",
            "schema": {
              "default": true,
              "type": "boolean"
            }
          },
          {
            "description": "ms; alias: waitFor",
            "in": "query",
            "name": "wait_for",
            "schema": {
              "maximum": 10000,
              "minimum": 0,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "mobile",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "description": "ms; clamped to what the payment's validity window leaves",
            "in": "query",
            "name": "timeout",
            "schema": {
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "$ref": "#/components/parameters/SearchPaymentSignature"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SearchScrapeOK"
          },
          "400": {
            "$ref": "#/components/responses/SearchError"
          },
          "402": {
            "$ref": "#/components/responses/SearchPaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/SearchError"
          },
          "502": {
            "$ref": "#/components/responses/SearchError"
          },
          "503": {
            "$ref": "#/components/responses/SearchError"
          },
          "504": {
            "$ref": "#/components/responses/SearchError"
          }
        },
        "summary": "Scrape one web page via query parameters (paid, same fields; lists comma-separated)",
        "tags": [
          "scrape"
        ]
      },
      "post": {
        "description": "Fetches and renders one public http(s) URL with Firecrawl and returns its data (markdown, html, rawHtml, links). Charged only when the page was delivered: Firecrawl succeeded and the target answered with a status below 400. A failed scrape (502 scrape_failed) or a timeout (504 scrape_timeout) is not charged and the same payment may be retried (a bounded number of times). The scrape must finish while the payment can still be committed: its deadline is what the payment's validity window leaves (at most 20 s); a window leaving less than 3 s is refused with 402 invalid_exact_avm_validity_window before anything is fetched. URLs with credentials, IP-literal hosts and private names (localhost, *.local, *.internal, *.lan, single-label hosts) are refused with 400 before payment.",
        "operationId": "scrape",
        "parameters": [
          {
            "$ref": "#/components/parameters/SearchPaymentSignature"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchScrapeRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/SearchScrapeOK"
          },
          "400": {
            "$ref": "#/components/responses/SearchError"
          },
          "402": {
            "$ref": "#/components/responses/SearchPaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/SearchError"
          },
          "502": {
            "$ref": "#/components/responses/SearchError"
          },
          "503": {
            "$ref": "#/components/responses/SearchError"
          },
          "504": {
            "$ref": "#/components/responses/SearchError"
          }
        },
        "summary": "Scrape one web page (paid, 0.011 USDC per page on Algorand, 0.012 on Base and Arc)",
        "tags": [
          "scrape"
        ]
      }
    },
    "/v1/scrape/pricing": {
      "get": {
        "operationId": "scrapePricing",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Pricing"
          }
        },
        "summary": "Scrape price, asset, networks and receiving address (free)",
        "tags": [
          "scrape"
        ]
      }
    },
    "/v1/search": {
      "get": {
        "operationId": "searchGet",
        "parameters": [
          {
            "description": "Alias: q",
            "in": "query",
            "name": "query",
            "required": true,
            "schema": {
              "maxLength": 400,
              "minLength": 1,
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "max_results",
            "schema": {
              "default": 10,
              "maximum": 50,
              "minimum": 1,
              "type": "integer"
            }
          },
          {
            "in": "query",
            "name": "time_range",
            "schema": {
              "enum": [
                "day",
                "week",
                "month",
                "year"
              ],
              "type": "string"
            }
          },
          {
            "description": "Comma-separated",
            "in": "query",
            "name": "include_domains",
            "schema": {
              "type": "string"
            }
          },
          {
            "in": "query",
            "name": "stream",
            "schema": {
              "type": "boolean"
            }
          },
          {
            "$ref": "#/components/parameters/SearchPaymentSignature"
          },
          {
            "$ref": "#/components/parameters/SearchAccept"
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/SearchSearchOK"
          },
          "400": {
            "$ref": "#/components/responses/SearchError"
          },
          "402": {
            "$ref": "#/components/responses/SearchPaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/SearchError"
          },
          "502": {
            "$ref": "#/components/responses/SearchError"
          },
          "503": {
            "$ref": "#/components/responses/SearchError"
          }
        },
        "summary": "Web search via query parameters (paid, same fields; lists comma-separated)",
        "tags": [
          "search"
        ]
      },
      "post": {
        "operationId": "search",
        "parameters": [
          {
            "$ref": "#/components/parameters/SearchPaymentSignature"
          },
          {
            "$ref": "#/components/parameters/SearchAccept"
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/SearchSearchRequest"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "$ref": "#/components/responses/SearchSearchOK"
          },
          "400": {
            "$ref": "#/components/responses/SearchError"
          },
          "402": {
            "$ref": "#/components/responses/SearchPaymentRequired"
          },
          "429": {
            "$ref": "#/components/responses/SearchError"
          },
          "502": {
            "$ref": "#/components/responses/SearchError"
          },
          "503": {
            "$ref": "#/components/responses/SearchError"
          }
        },
        "summary": "Web search (paid, 0.0085 USDC per query on Algorand, 0.009 on Base and Arc)",
        "tags": [
          "search"
        ]
      }
    },
    "/v1/search/health": {
      "get": {
        "operationId": "searchHealth",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Healthy"
          },
          "503": {
            "description": "Unhealthy (algod or SearXNG unreachable)"
          }
        },
        "summary": "Service health (free)",
        "tags": [
          "search"
        ]
      }
    },
    "/v1/search/pricing": {
      "get": {
        "operationId": "searchPricing",
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "type": "object"
                }
              }
            },
            "description": "Pricing"
          }
        },
        "summary": "Price, asset, networks and receiving address (free)",
        "tags": [
          "search"
        ]
      }
    },
    "/v1/prices/health": {
      "get": {
        "operationId": "pricesHealth",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "summary": "Service and algod health (free)",
        "tags": [
          "status"
        ]
      }
    },
    "/v1/prices/candles": {
      "get": {
        "description": "Candles for charts, 1 h to 1 week bins aligned to UTC (weeks start Monday), at most 2000 per call. Per bin the OHLC is the main pool's: of the asset's AMM pools with events in the bin (mint/redeem and lending venues excluded), the one holding the most of the asset at the bin's open, with at least `min_liq` USD and a USD close within `max_dev` of the asset's routed hourly price (not checked for an asset without one). Depth at the open is the pool's reserve at its previous bar (within 30 days; else the bin's own close). Each hourly bar is converted to USD with the pool's other asset's USD close of that hour; the hour still open at the tip uses the last closed hour's prices. `volume_usd` sums the asset's traded amount over all its AMM pools (through the counter side in hours the asset has no price). Bins without a candle are left out; the bin still open at the tip is included with `partial: true` and changes until it closes. Close can differ slightly from /v1/prices/history, which is a routed price over all pools. A call with no candle answers 404 and is not charged.",
        "operationId": "pricesCandles",
        "parameters": [
          {
            "description": "ASA id, `algo` (= 0) or `usdc` (= 31566704).",
            "example": "386192725",
            "in": "query",
            "name": "asset",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unix seconds, RFC 3339, or YYYY-MM-DD (UTC); floored to its bin.",
            "example": "2026-10-01",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unix seconds, RFC 3339, or YYYY-MM-DD (UTC); rounded up to the end of the bin holding it (exclusive) and clamped to the indexed tip.",
            "example": "2026-10-23",
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Bin width.",
            "in": "query",
            "name": "interval",
            "schema": {
              "default": "1h",
              "enum": [
                "1h",
                "2h",
                "4h",
                "6h",
                "8h",
                "12h",
                "1d",
                "1w"
              ],
              "type": "string"
            }
          },
          {
            "description": "Minimum main-pool depth in USD at the bin's open: 2 × its reserve of the asset (of the other asset when the asset has no hourly price).",
            "in": "query",
            "name": "min_liq",
            "schema": {
              "default": 50,
              "type": "number"
            }
          },
          {
            "description": "Maximum deviation of the main pool's USD close from the asset's routed price.",
            "in": "query",
            "name": "max_dev",
            "schema": {
              "default": 0.2,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "asset": {
                      "$ref": "#/components/schemas/PricesAsset"
                    },
                    "candles": {
                      "items": {
                        "properties": {
                          "close": {
                            "type": "number"
                          },
                          "events": {
                            "type": "integer"
                          },
                          "high": {
                            "type": "number"
                          },
                          "liquidity_usd": {
                            "type": "number"
                          },
                          "low": {
                            "type": "number"
                          },
                          "open": {
                            "type": "number"
                          },
                          "partial": {
                            "description": "the bin is still open at the indexed tip",
                            "type": "boolean"
                          },
                          "pool": {
                            "properties": {
                              "pair_asset": {
                                "type": "integer"
                              },
                              "pool_id": {
                                "type": "integer"
                              },
                              "venue": {
                                "type": "string"
                              }
                            },
                            "type": "object"
                          },
                          "pool_switch": {
                            "description": "main pool differs from the previous candle's",
                            "type": "boolean"
                          },
                          "pools": {
                            "description": "pools with events in the bin",
                            "type": "integer"
                          },
                          "swaps": {
                            "type": "integer"
                          },
                          "ts": {
                            "description": "bin start",
                            "format": "date-time",
                            "type": "string"
                          },
                          "volume_usd": {
                            "type": "number"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "comment": {
                      "type": "string"
                    },
                    "from": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "interval": {
                      "type": "string"
                    },
                    "interval_seconds": {
                      "type": "integer"
                    },
                    "quote": {
                      "example": "usd",
                      "type": "string"
                    },
                    "source": {
                      "type": "string"
                    },
                    "to": {
                      "format": "date-time",
                      "type": "string"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesError"
                }
              }
            },
            "description": "Bad parameter or unknown asset"
          },
          "402": {
            "description": "Payment required: x402 offer in the PAYMENT-REQUIRED header (base64 JSON; the same JSON is the body). Retry with PAYMENT-SIGNATURE."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesError"
                }
              }
            },
            "description": "No candle in the range (not charged)"
          }
        },
        "summary": "OHLC candles in USD (main pool)",
        "tags": [
          "prices"
        ]
      }
    },
    "/v1/prices/account": {
      "get": {
        "description": "Values an account at the indexed tip in USD and ALGO. Counted: the ALGO balance (including the minimum balance), every ASA except single-unit NFTs, LP tokens of indexed AMM pools (Tinyman V2, Pact, Pact stable, NanoSwap) as the account's share of the pool reserves, Folks Lending v2 escrows the account owns (deposit staking fAssets, loan collateral in fAssets, and loans as debt with accrued interest), stakes in opted-in staking apps (Pact farms v1/v2, Alpha-style local stakes), the HAY staking box, Reti pool stakes, TINY locked in the Tinyman governance vault (veTINY), Tinyman v2 order escrows, Vestige token locks the account created, Algofi v1 lending (storage accounts: collateral and debt), DorkFi lending (deposits and debt), the ARC-59 inbox, Alpha Arcade outcome shares (resolved at payout, open at the order-book mid), unclaimed rewards (Alpha-style, Pact farm v1, HAY, Staked tALGO TINY; `reward` legs, `rewards_usd`) and Tinyman v1 redeemable excess, Tinyman v1 and Humble LP tokens (share of the pool reserves), PEX (LP and CVA shares at NAV, perp positions as a full close, orders, storage credit), tALGO and xALGO (also inside LP tokens and Folks fAssets) at the ALGO their contract pays on a burn now, Tinyman Staked tALGO (the stake box's tALGO, returned 1:1, plus unclaimed TINY). Each amount is priced by the same routed DEX prices as /v1/prices/price (fAssets through the Folks deposit rate). Assets without a route are listed in `unpriced` and left out of the totals; positions found but not decodable are in `unvalued`; sources that could not be read are in `not_checked`. An address never seen on chain answers 404 and is not charged.",
        "operationId": "pricesAccount",
        "parameters": [
          {
            "description": "Algorand address (58 characters).",
            "example": "H3A7GQA62RWHF2B7M7VOB3WFEZXCTL63J56SFITK7PAJ6OWLCCQYVR6UTI",
            "in": "query",
            "name": "address",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Minimum pool depth in USD for a pool to price an asset.",
            "in": "query",
            "name": "min_liq",
            "schema": {
              "default": 50,
              "type": "number"
            }
          },
          {
            "description": "Longest route to USDC.",
            "in": "query",
            "name": "max_hops",
            "schema": {
              "default": 4,
              "type": "number"
            }
          },
          {
            "description": "Ignore pools without events for this many days.",
            "in": "query",
            "name": "stale_days",
            "schema": {
              "default": 30,
              "type": "number"
            }
          },
          {
            "description": "Drop pool quotes further than this fraction from the weighted median.",
            "in": "query",
            "name": "max_dev",
            "schema": {
              "default": 0.2,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "properties": {
                    "address": {
                      "type": "string"
                    },
                    "algo": {
                      "properties": {
                        "balance": {
                          "type": "number"
                        },
                        "min_balance": {
                          "type": "number"
                        }
                      },
                      "type": "object"
                    },
                    "algo_usd": {
                      "nullable": true,
                      "type": "number"
                    },
                    "assets_usd": {
                      "type": "number"
                    },
                    "by_kind_usd": {
                      "additionalProperties": {
                        "type": "number"
                      },
                      "description": "net USD per position kind (balance, liquidity, deposit, loan, stake, ...); sums to total_usd",
                      "type": "object"
                    },
                    "by_protocol_usd": {
                      "additionalProperties": {
                        "type": "number"
                      },
                      "type": "object"
                    },
                    "closed": {
                      "description": "the account has no ALGO (closed)",
                      "type": "boolean"
                    },
                    "comment": {
                      "type": "string"
                    },
                    "debt_usd": {
                      "type": "number"
                    },
                    "nfts": {
                      "type": "integer"
                    },
                    "not_checked": {
                      "items": {
                        "type": "string"
                      },
                      "type": "array"
                    },
                    "over_liquidity": {
                      "description": "assets whose net value exceeds their routed liquidity (capped in total_liquid_usd), largest shortfall first, at most 5",
                      "items": {
                        "properties": {
                          "asset": {
                            "$ref": "#/components/schemas/PricesAsset"
                          },
                          "liquidity_usd": {
                            "type": "number"
                          },
                          "usd": {
                            "type": "number"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "positions": {
                      "items": {
                        "properties": {
                          "account": {
                            "description": "escrow account holding the position",
                            "type": "string"
                          },
                          "app": {
                            "type": "integer"
                          },
                          "assets": {
                            "items": {
                              "properties": {
                                "amount": {
                                  "description": "whole units",
                                  "type": "number"
                                },
                                "asset": {
                                  "$ref": "#/components/schemas/PricesAsset"
                                },
                                "debt": {
                                  "type": "boolean"
                                },
                                "exceeds_liquidity": {
                                  "type": "boolean"
                                },
                                "liquidity_usd": {
                                  "type": "number"
                                },
                                "price_source": {
                                  "description": "set when the price is not the routed DEX price: alpha_market_book (open Alpha Arcade market: Yes at the order-book mid of live resting orders, or the only quote of a one-sided book; No = 1 - Yes), alpha_market_even (open market without live orders: min(0.5, collateral / (Yes + No supply))), alpha_parlay_even (parlay market, same even rule), alpha_market_resolved_win/_lose, alpha_market_void",
                                  "type": "string"
                                },
                                "price_usd": {
                                  "nullable": true,
                                  "type": "number"
                                },
                                "reward": {
                                  "description": "unclaimed reward, claimable",
                                  "type": "boolean"
                                },
                                "usd": {
                                  "description": "negative for debt; null = unpriced",
                                  "nullable": true,
                                  "type": "number"
                                },
                                "via": {
                                  "description": "LP token this leg was looked through from",
                                  "properties": {
                                    "lp_amount": {
                                      "type": "number"
                                    },
                                    "lp_asset": {
                                      "type": "integer"
                                    },
                                    "pool_id": {
                                      "type": "integer"
                                    },
                                    "share": {
                                      "type": "number"
                                    },
                                    "venue": {
                                      "type": "string"
                                    }
                                  },
                                  "type": "object"
                                }
                              },
                              "type": "object"
                            },
                            "type": "array"
                          },
                          "kind": {
                            "enum": [
                              "balance",
                              "liquidity",
                              "deposit",
                              "loan",
                              "stake",
                              "excess",
                              "lock",
                              "receipt",
                              "order",
                              "claimable",
                              "prediction"
                            ],
                            "type": "string"
                          },
                          "protocol": {
                            "example": "folks_v2",
                            "type": "string"
                          },
                          "unpriced_legs": {
                            "type": "integer"
                          },
                          "usd": {
                            "type": "number"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "rewards_usd": {
                      "description": "unclaimed rewards, included in assets_usd",
                      "type": "number"
                    },
                    "round": {
                      "type": "integer"
                    },
                    "total_algo": {
                      "nullable": true,
                      "type": "number"
                    },
                    "total_liquid_usd": {
                      "description": "total_usd with each asset netted across positions (holdings - debt) and a positive net capped at the asset's routed liquidity; a net debt counts in full",
                      "type": "number"
                    },
                    "total_usd": {
                      "description": "assets_usd - debt_usd",
                      "type": "number"
                    },
                    "ts": {
                      "format": "date-time",
                      "type": "string"
                    },
                    "unpriced": {
                      "items": {
                        "properties": {
                          "amount": {
                            "type": "number"
                          },
                          "asset": {
                            "$ref": "#/components/schemas/PricesAsset"
                          },
                          "debt": {
                            "type": "boolean"
                          },
                          "protocol": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    },
                    "unvalued": {
                      "items": {
                        "properties": {
                          "app": {
                            "type": "integer"
                          },
                          "protocol": {
                            "type": "string"
                          },
                          "raw_amount": {
                            "type": "integer"
                          },
                          "reason": {
                            "type": "string"
                          }
                        },
                        "type": "object"
                      },
                      "type": "array"
                    }
                  },
                  "type": "object"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesError"
                }
              }
            },
            "description": "Bad address or parameter (not charged)"
          },
          "402": {
            "description": "Payment required: x402 offer in the PAYMENT-REQUIRED header (base64 JSON; the same JSON is the body). Retry with PAYMENT-SIGNATURE."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesError"
                }
              }
            },
            "description": "Address never seen on chain (not charged)"
          }
        },
        "summary": "Total value of an Algorand account (wallet + DeFi)",
        "tags": [
          "prices"
        ]
      }
    },
    "/v1/prices/history": {
      "get": {
        "description": "`bins` bins of equal width ending at `to` (clamped to the indexed tip). Each point is the price at the end of its bin. Bins under 1 h are computed from raw pool events, 1 h to 1 d from hourly bars, 1 d or more from daily bars.",
        "operationId": "pricesHistory",
        "parameters": [
          {
            "description": "ASA id, `algo` (= 0) or `usdc` (= 31566704).",
            "example": "386192725",
            "in": "query",
            "name": "asset",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Quote asset (ASA id, `algo` or `usdc`). Default USDC.",
            "in": "query",
            "name": "quote",
            "schema": {
              "default": "usdc",
              "type": "string"
            }
          },
          {
            "description": "Unix seconds, RFC 3339, or YYYY-MM-DD (UTC).",
            "example": "2026-10-01",
            "in": "query",
            "name": "from",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Unix seconds, RFC 3339, or YYYY-MM-DD (UTC).",
            "example": "2026-10-23",
            "in": "query",
            "name": "to",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Number of bins (max 2000).",
            "in": "query",
            "name": "bins",
            "schema": {
              "default": 100,
              "maximum": 2000,
              "type": "integer"
            }
          },
          {
            "description": "Minimum pool liquidity in USD for a pool to be used in routing.",
            "in": "query",
            "name": "min_liq",
            "schema": {
              "default": 50,
              "type": "number"
            }
          },
          {
            "description": "Maximum route length from the asset to USDC.",
            "in": "query",
            "name": "max_hops",
            "schema": {
              "default": 4,
              "type": "integer"
            }
          },
          {
            "description": "Ignore pools with no event for this many days.",
            "in": "query",
            "name": "stale_days",
            "schema": {
              "default": 30,
              "type": "integer"
            }
          },
          {
            "description": "Drop pool quotes deviating more than this fraction from the liquidity-weighted median.",
            "in": "query",
            "name": "max_dev",
            "schema": {
              "default": 0.2,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesHistory"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesError"
                }
              }
            },
            "description": "Bad parameter or unknown asset"
          },
          "402": {
            "description": "Payment required: x402 offer in the PAYMENT-REQUIRED header (base64 JSON; the same JSON is the body). Retry with PAYMENT-SIGNATURE."
          },
          "429": {
            "description": "Rate limit exceeded (10 requests/s per client IP, burst 20)"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesError"
                }
              }
            },
            "description": "Internal error"
          }
        },
        "summary": "Price history in equal-width bins",
        "tags": [
          "prices"
        ]
      }
    },
    "/v1/prices/pairs": {
      "get": {
        "description": "Every pair with a live pool that day, sorted by TVL: venues, pool counts, swaps, close price (asset B per asset A, deepest pool), reserves, volumes, TVL and volume in USD. The default day is the last finalized one; `final` is false for the still-open day. Pools of rate venues (talgo, xalgo, folks) form their own rows with `kind: rate`, so a pair can appear twice (amm and rate).",
        "operationId": "pricesPairs",
        "parameters": [
          {
            "description": "YYYY-MM-DD (UTC). Default: last finalized day.",
            "in": "query",
            "name": "date",
            "schema": {
              "format": "date",
              "type": "string"
            }
          },
          {
            "description": "`1`: only pairs with at least one swap that day.",
            "in": "query",
            "name": "active",
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "Minimum TVL in USD.",
            "in": "query",
            "name": "min_tvl",
            "schema": {
              "type": "number"
            }
          },
          {
            "description": "`amm`: tradable pools only; `rate`: mint/redeem and lending rate venues only (tALGO, xALGO, Folks fAssets: their TVL is redeemable backing, not market liquidity). Default: both, as separate rows.",
            "in": "query",
            "name": "kind",
            "schema": {
              "enum": [
                "amm",
                "rate"
              ],
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesPairs"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesError"
                }
              }
            },
            "description": "Bad parameter or unknown asset"
          },
          "402": {
            "description": "Payment required: x402 offer in the PAYMENT-REQUIRED header (base64 JSON; the same JSON is the body). Retry with PAYMENT-SIGNATURE."
          },
          "429": {
            "description": "Rate limit exceeded (10 requests/s per client IP, burst 20)"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesError"
                }
              }
            },
            "description": "Internal error"
          }
        },
        "summary": "All pairs with a live pool on a day",
        "tags": [
          "markets"
        ]
      }
    },
    "/v1/prices/pools": {
      "get": {
        "operationId": "pricesPools",
        "parameters": [
          {
            "description": "ASA id, `algo` (= 0) or `usdc` (= 31566704).",
            "example": "386192725",
            "in": "query",
            "name": "asset",
            "required": true,
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesPools"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesError"
                }
              }
            },
            "description": "Bad parameter or unknown asset"
          },
          "402": {
            "description": "Payment required: x402 offer in the PAYMENT-REQUIRED header (base64 JSON; the same JSON is the body). Retry with PAYMENT-SIGNATURE."
          },
          "429": {
            "description": "Rate limit exceeded (10 requests/s per client IP, burst 20)"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesError"
                }
              }
            },
            "description": "Internal error"
          }
        },
        "summary": "Pools holding an asset",
        "tags": [
          "markets"
        ]
      }
    },
    "/v1/prices/price": {
      "get": {
        "description": "The price after round `round`, or after the last block at or before `ts`. With neither, the price at the indexed tip (seconds behind the chain). A `ts` at or after the tip is answered at the tip and echoed as `requested_ts`.",
        "operationId": "pricesPrice",
        "parameters": [
          {
            "description": "ASA id, `algo` (= 0) or `usdc` (= 31566704).",
            "example": "386192725",
            "in": "query",
            "name": "asset",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Quote asset (ASA id, `algo` or `usdc`). Default USDC.",
            "in": "query",
            "name": "quote",
            "schema": {
              "default": "usdc",
              "type": "string"
            }
          },
          {
            "description": "Round (exclusive of `ts`).",
            "example": 65000000,
            "in": "query",
            "name": "round",
            "schema": {
              "format": "int64",
              "type": "integer"
            }
          },
          {
            "description": "Time (exclusive of `round`). Unix seconds, RFC 3339, or YYYY-MM-DD (UTC).",
            "example": "2026-09-13T09:16:17Z",
            "in": "query",
            "name": "ts",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "`1` lists every pool quote used: venue, pool, via-asset, implied USD price, weight, kept.",
            "in": "query",
            "name": "details",
            "schema": {
              "enum": [
                "0",
                "1"
              ],
              "type": "string"
            }
          },
          {
            "description": "Minimum pool liquidity in USD for a pool to be used in routing.",
            "in": "query",
            "name": "min_liq",
            "schema": {
              "default": 50,
              "type": "number"
            }
          },
          {
            "description": "Maximum route length from the asset to USDC.",
            "in": "query",
            "name": "max_hops",
            "schema": {
              "default": 4,
              "type": "integer"
            }
          },
          {
            "description": "Ignore pools with no event for this many days.",
            "in": "query",
            "name": "stale_days",
            "schema": {
              "default": 30,
              "type": "integer"
            }
          },
          {
            "description": "Drop pool quotes deviating more than this fraction from the liquidity-weighted median.",
            "in": "query",
            "name": "max_dev",
            "schema": {
              "default": 0.2,
              "type": "number"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesPrice"
                }
              }
            },
            "description": "OK"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesError"
                }
              }
            },
            "description": "Bad parameter or unknown asset"
          },
          "402": {
            "description": "Payment required: x402 offer in the PAYMENT-REQUIRED header (base64 JSON; the same JSON is the body). Retry with PAYMENT-SIGNATURE."
          },
          "429": {
            "description": "Rate limit exceeded (10 requests/s per client IP, burst 20)"
          },
          "500": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/PricesError"
                }
              }
            },
            "description": "Internal error"
          }
        },
        "summary": "Price of an asset at a round or time",
        "tags": [
          "prices"
        ]
      }
    },
    "/v1/prices/pricing": {
      "get": {
        "operationId": "pricesPricing",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "summary": "Paid resources and their prices (free)",
        "tags": [
          "status"
        ]
      }
    },
    "/v1/prices/status": {
      "get": {
        "operationId": "pricesStatus",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "summary": "How far the dataset is built (free)",
        "tags": [
          "status"
        ]
      }
    },
    "/v1/images/health": {
      "get": {
        "operationId": "imagesHealth",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "summary": "Service and algod health (free)",
        "tags": [
          "images"
        ]
      }
    },
    "/v1/images/pricing": {
      "get": {
        "operationId": "imagesPricing",
        "responses": {
          "200": {
            "description": "OK"
          }
        },
        "summary": "Paid resources and their prices (free)",
        "tags": [
          "images"
        ]
      }
    },
    "/v1/images/search": {
      "get": {
        "description": "Semantic search over the images of every Algorand NFT cached by Nodely's IPFS cache: a text query (any language) is embedded with Qwen3-VL-Embedding-2B and answered with the nearest images, their IPFS CIDs, cosine scores and the Algorand assets (ASA ids) that reference them.",
        "operationId": "imagesSearch",
        "parameters": [
          {
            "description": "Text query, 1-1000 characters.",
            "example": "a pixel art frog wearing a crown",
            "in": "query",
            "name": "q",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Number of results, 1-100 (default 20).",
            "example": "10",
            "in": "query",
            "name": "k",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "0 = leave out the referencing Algorand assets (faster).",
            "in": "query",
            "name": "assets",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "results": [
                    {
                      "assets": [
                        {
                          "asset": 1009172393,
                          "depth": 0,
                          "key": "url"
                        }
                      ],
                      "cid": "bafkreibmgkbwqebpwptrqn3ypxqifvwcyh5mv4lnf7cnw5zidasplwhgqy",
                      "mime": "image/png",
                      "score": 0.4123
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/ImagesResults"
                }
              }
            },
            "description": "Nearest images"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImagesError"
                }
              }
            },
            "description": "Bad parameter (not charged)"
          },
          "402": {
            "description": "Payment required: x402 offer in the PAYMENT-REQUIRED header (base64 JSON; the same JSON is the body). Retry with PAYMENT-SIGNATURE."
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImagesError"
                }
              }
            },
            "description": "The embedding model or the index did not answer (not charged)"
          }
        },
        "summary": "Search NFT images by text",
        "tags": [
          "images"
        ]
      },
      "post": {
        "description": "Reverse image search over the images of every Algorand NFT cached by Nodely's IPFS cache: the uploaded image (png, jpeg, gif, webp, bmp up to 16 MiB; raw body with an image/* Content-Type, or JSON {\"image\": base64 or data URL}) is embedded with Qwen3-VL-Embedding-2B and answered with the visually and semantically nearest images, their CIDs, scores and referencing assets.",
        "operationId": "imagesSearchImage",
        "parameters": [
          {
            "description": "Number of results, 1-100 (default 20).",
            "example": "10",
            "in": "query",
            "name": "k",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "0 = leave out the referencing Algorand assets (faster).",
            "in": "query",
            "name": "assets",
            "schema": {
              "type": "string"
            }
          }
        ],
        "requestBody": {
          "content": {
            "application/json": {
              "schema": {
                "properties": {
                  "image": {
                    "description": "base64 image or data URL",
                    "type": "string"
                  }
                },
                "required": [
                  "image"
                ],
                "type": "object"
              }
            },
            "image/*": {
              "schema": {
                "format": "binary",
                "type": "string"
              }
            }
          },
          "required": true
        },
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "results": [
                    {
                      "assets": [
                        {
                          "asset": 1009172393,
                          "depth": 0,
                          "key": "url"
                        }
                      ],
                      "cid": "bafkreibmgkbwqebpwptrqn3ypxqifvwcyh5mv4lnf7cnw5zidasplwhgqy",
                      "mime": "image/png",
                      "score": 0.4123
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/ImagesResults"
                }
              }
            },
            "description": "Nearest images"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImagesError"
                }
              }
            },
            "description": "Bad parameter (not charged)"
          },
          "402": {
            "description": "Payment required: x402 offer in the PAYMENT-REQUIRED header (base64 JSON; the same JSON is the body). Retry with PAYMENT-SIGNATURE."
          },
          "415": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImagesError"
                }
              }
            },
            "description": "Not a supported image (not charged)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImagesError"
                }
              }
            },
            "description": "The embedding model or the index did not answer (not charged)"
          }
        },
        "summary": "Search NFT images by an image",
        "tags": [
          "images"
        ]
      }
    },
    "/v1/images/similar/{cid}": {
      "get": {
        "description": "More like this: the images of Algorand NFTs nearest to an image already in Nodely's IPFS cache (by its CID), excluding that image's own content. An unknown or not yet embedded CID answers 404 and is not charged.",
        "operationId": "imagesSimilar",
        "parameters": [
          {
            "description": "IPFS CID of an image in the cache",
            "in": "path",
            "name": "cid",
            "required": true,
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "Number of results, 1-100 (default 20).",
            "example": "10",
            "in": "query",
            "name": "k",
            "schema": {
              "type": "string"
            }
          },
          {
            "description": "0 = leave out the referencing Algorand assets (faster).",
            "in": "query",
            "name": "assets",
            "schema": {
              "type": "string"
            }
          }
        ],
        "responses": {
          "200": {
            "content": {
              "application/json": {
                "example": {
                  "results": [
                    {
                      "assets": [
                        {
                          "asset": 1009172393,
                          "depth": 0,
                          "key": "url"
                        }
                      ],
                      "cid": "bafkreibmgkbwqebpwptrqn3ypxqifvwcyh5mv4lnf7cnw5zidasplwhgqy",
                      "mime": "image/png",
                      "score": 0.4123
                    }
                  ]
                },
                "schema": {
                  "$ref": "#/components/schemas/ImagesResults"
                }
              }
            },
            "description": "Nearest images"
          },
          "400": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImagesError"
                }
              }
            },
            "description": "Bad parameter (not charged)"
          },
          "402": {
            "description": "Payment required: x402 offer in the PAYMENT-REQUIRED header (base64 JSON; the same JSON is the body). Retry with PAYMENT-SIGNATURE."
          },
          "404": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImagesError"
                }
              }
            },
            "description": "CID not an embedded image of the cache (not charged)"
          },
          "503": {
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/ImagesError"
                }
              }
            },
            "description": "The embedding model or the index did not answer (not charged)"
          }
        },
        "summary": "NFT images similar to a cached image",
        "tags": [
          "images"
        ]
      }
    }
  },
  "components": {
    "parameters": {
      "SearchAccept": {
        "description": "application/json (default, buffered), application/x-ndjson or text/event-stream (stream events per engine)",
        "in": "header",
        "name": "Accept",
        "required": false,
        "schema": {
          "type": "string"
        }
      },
      "SearchPaymentSignature": {
        "description": "x402 v2 PaymentPayload, base64 JSON: {x402Version:2, accepted:<one of the 402's accepts>, payload:{paymentGroup:[<base64 msgpack signed axfer>], paymentIndex:0}}. X-PAYMENT is accepted as an alias.",
        "in": "header",
        "name": "PAYMENT-SIGNATURE",
        "required": false,
        "schema": {
          "type": "string"
        }
      }
    },
    "responses": {
      "SearchError": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/SearchError"
            }
          }
        },
        "description": "Error"
      },
      "SearchPaymentRequired": {
        "content": {
          "application/json": {
            "schema": {
              "type": "object"
            }
          }
        },
        "description": "Payment required or rejected. PAYMENT-REQUIRED (base64 JSON PaymentRequired) lists the accepted payments: scheme exact, network algorand:wGHE2Pwdvd7S12BL5FaOP20EGYesN73k (or the full-genesis-hash form), asset 31566704, amount = the price of the requested resource (8500 = 0.0085 USDC for search, 11000 = 0.011 USDC for scrape; 9000 and 12000 on Base and Arc); then Base: network eip155:8453, asset 0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913, extra = the USDC EIP-712 domain {name, version}; then Arc: network eip155:5042, asset 0x3600000000000000000000000000000000000000 (domain USDC / 2).",
        "headers": {
          "PAYMENT-REQUIRED": {
            "schema": {
              "type": "string"
            }
          }
        }
      },
      "SearchScrapeOK": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/SearchScrapeResponse"
            }
          }
        },
        "description": "The page. PAYMENT-RESPONSE (base64 JSON SettlementResponse) carries the payment transaction id; settlement is deferred (accepted into algod's pool before the page is sent, not awaited).",
        "headers": {
          "PAYMENT-RESPONSE": {
            "schema": {
              "type": "string"
            }
          }
        }
      },
      "SearchSearchOK": {
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/SearchSearchResponse"
            }
          },
          "application/x-ndjson": {
            "schema": {
              "$ref": "#/components/schemas/SearchStreamEvent"
            }
          },
          "text/event-stream": {
            "schema": {
              "$ref": "#/components/schemas/SearchStreamEvent"
            }
          }
        },
        "description": "Results. PAYMENT-RESPONSE (base64 JSON SettlementResponse) carries the payment transaction id; settlement is deferred (accepted into algod's pool, not awaited).",
        "headers": {
          "PAYMENT-RESPONSE": {
            "schema": {
              "type": "string"
            }
          }
        }
      }
    },
    "schemas": {
      "SearchError": {
        "properties": {
          "error": {
            "properties": {
              "code": {
                "type": "string"
              },
              "message": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "request_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SearchResult": {
        "properties": {
          "content": {
            "type": "string"
          },
          "engines": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "position": {
            "type": "integer"
          },
          "published_date": {
            "type": [
              "string",
              "null"
            ]
          },
          "score": {
            "maximum": 1,
            "minimum": 0,
            "type": "number"
          },
          "snippet": {
            "type": "string"
          },
          "thumbnail": {
            "type": "string"
          },
          "title": {
            "type": "string"
          },
          "url": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "SearchScrapeRequest": {
        "additionalProperties": true,
        "properties": {
          "exclude_tags": {
            "description": "Alias: excludeTags",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "type": "array"
          },
          "formats": {
            "default": [
              "markdown"
            ],
            "items": {
              "enum": [
                "markdown",
                "html",
                "rawHtml",
                "links"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "include_tags": {
            "description": "Alias: includeTags",
            "items": {
              "type": "string"
            },
            "maxItems": 50,
            "type": "array"
          },
          "mobile": {
            "default": false,
            "type": "boolean"
          },
          "only_main_content": {
            "default": true,
            "description": "Alias: onlyMainContent",
            "type": "boolean"
          },
          "timeout": {
            "description": "ms; clamped to what the payment's validity window leaves (at most 20 s)",
            "minimum": 1,
            "type": "integer"
          },
          "url": {
            "description": "http or https, public DNS name (no IP literals, credentials or private names)",
            "format": "uri",
            "maxLength": 2048,
            "type": "string"
          },
          "wait_for": {
            "description": "ms to wait after load; alias: waitFor; at most half the timeout",
            "maximum": 10000,
            "minimum": 0,
            "type": "integer"
          }
        },
        "required": [
          "url"
        ],
        "type": "object"
      },
      "SearchScrapeResponse": {
        "properties": {
          "data": {
            "description": "Firecrawl v2 scrape data, passed through as-is",
            "properties": {
              "html": {
                "type": "string"
              },
              "links": {
                "items": {
                  "type": "string"
                },
                "type": "array"
              },
              "markdown": {
                "type": "string"
              },
              "metadata": {
                "properties": {
                  "contentType": {
                    "type": "string"
                  },
                  "description": {
                    "type": "string"
                  },
                  "sourceURL": {
                    "type": "string"
                  },
                  "statusCode": {
                    "type": "integer"
                  },
                  "title": {
                    "type": "string"
                  },
                  "url": {
                    "type": "string"
                  }
                },
                "type": "object"
              },
              "rawHtml": {
                "type": "string"
              }
            },
            "type": "object"
          },
          "request_id": {
            "type": "string"
          },
          "response_time": {
            "type": "number"
          },
          "url": {
            "type": "string"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "SearchSearchRequest": {
        "additionalProperties": true,
        "properties": {
          "country": {
            "description": "ISO 3166-1 alpha-2",
            "type": "string"
          },
          "depth": {
            "default": "standard",
            "description": "standard: the engines a search normally uses; deep: every engine at once (same price). Tavily's search_depth is accepted as an alias (basic/advanced map to standard).",
            "enum": [
              "standard",
              "deep"
            ],
            "type": "string"
          },
          "end_date": {
            "format": "date",
            "type": "string"
          },
          "engines": {
            "items": {
              "enum": [
                "alpha",
                "gamma",
                "delta",
                "epsilon",
                "zeta",
                "eta"
              ],
              "type": "string"
            },
            "type": "array"
          },
          "exclude_domains": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "include_answer": {
            "default": false,
            "type": "boolean"
          },
          "include_domains": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "language": {
            "examples": [
              "en",
              "en-US"
            ],
            "type": "string"
          },
          "max_results": {
            "default": 10,
            "description": "Aliases: count, num_results, numResults, maxResults, limit, num",
            "maximum": 50,
            "minimum": 1,
            "type": "integer"
          },
          "page": {
            "default": 1,
            "maximum": 10,
            "minimum": 1,
            "type": "integer"
          },
          "query": {
            "description": "Alias: q",
            "maxLength": 400,
            "minLength": 1,
            "type": "string"
          },
          "safesearch": {
            "description": "off/moderate/strict or 0/1/2"
          },
          "start_date": {
            "format": "date",
            "type": "string"
          },
          "stream": {
            "default": false,
            "type": "boolean"
          },
          "time_range": {
            "description": "Aliases: freshness, search_recency_filter",
            "enum": [
              "day",
              "week",
              "month",
              "year"
            ],
            "type": "string"
          },
          "topic": {
            "default": "general",
            "enum": [
              "general",
              "news"
            ],
            "type": "string"
          }
        },
        "required": [
          "query"
        ],
        "type": "object"
      },
      "SearchSearchResponse": {
        "properties": {
          "answer": {
            "type": [
              "string",
              "null"
            ]
          },
          "engines": {
            "items": {
              "properties": {
                "elapsed_s": {
                  "type": "number"
                },
                "error": {
                  "type": "string"
                },
                "name": {
                  "type": "string"
                },
                "results": {
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "type": "array"
          },
          "query": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          },
          "response_time": {
            "type": "number"
          },
          "results": {
            "items": {
              "$ref": "#/components/schemas/SearchResult"
            },
            "type": "array"
          },
          "suggestions": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "warnings": {
            "items": {
              "type": "string"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "SearchStreamEvent": {
        "description": "One event per NDJSON line / SSE message, in order: meta, results (per engine, new results only), engine_error, then done (the SearchResponse, authoritative: charged) or error (not charged).",
        "properties": {
          "type": {
            "enum": [
              "meta",
              "results",
              "engine_error",
              "done",
              "error"
            ],
            "type": "string"
          }
        },
        "required": [
          "type"
        ],
        "type": "object"
      },
      "PricesAsset": {
        "properties": {
          "decimals": {
            "type": "integer"
          },
          "id": {
            "description": "ASA id, 0 = ALGO",
            "format": "int64",
            "type": "integer"
          },
          "name": {
            "type": "string"
          },
          "unit": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "PricesAssetUSD": {
        "properties": {
          "hops": {
            "type": "integer"
          },
          "liquidity_usd": {
            "type": "number"
          },
          "routes": {
            "description": "With details=1",
            "items": {
              "$ref": "#/components/schemas/PricesRoute"
            },
            "type": "array"
          },
          "usd": {
            "description": "USD per whole unit; null if not routable",
            "nullable": true,
            "type": "number"
          }
        },
        "type": "object"
      },
      "PricesError": {
        "properties": {
          "error": {
            "example": "unknown asset 1",
            "type": "string"
          }
        },
        "type": "object"
      },
      "PricesHistory": {
        "properties": {
          "asset": {
            "$ref": "#/components/schemas/PricesAsset"
          },
          "bin_seconds": {
            "type": "integer"
          },
          "from": {
            "format": "date-time",
            "type": "string"
          },
          "points": {
            "items": {
              "$ref": "#/components/schemas/PricesPoint"
            },
            "type": "array"
          },
          "pools": {
            "type": "integer"
          },
          "quote": {
            "$ref": "#/components/schemas/PricesAsset"
          },
          "source": {
            "enum": [
              "events",
              "bars_1h",
              "daily"
            ],
            "type": "string"
          },
          "to": {
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "PricesPair": {
        "properties": {
          "active_pools": {
            "type": "integer"
          },
          "asset_a": {
            "$ref": "#/components/schemas/PricesAsset"
          },
          "asset_b": {
            "$ref": "#/components/schemas/PricesAsset"
          },
          "kind": {
            "description": "amm: tradable pools; rate: mint/redeem or lending rate venues, TVL = redeemable backing",
            "enum": [
              "amm",
              "rate"
            ],
            "type": "string"
          },
          "pools": {
            "type": "integer"
          },
          "price": {
            "description": "Close: asset B per asset A (whole units), deepest pool",
            "type": "number"
          },
          "reserve_a": {
            "type": "number"
          },
          "reserve_b": {
            "type": "number"
          },
          "swaps": {
            "type": "integer"
          },
          "tvl_usd": {
            "type": "number"
          },
          "venues": {
            "items": {
              "type": "string"
            },
            "type": "array"
          },
          "volume_a": {
            "type": "number"
          },
          "volume_b": {
            "type": "number"
          },
          "volume_usd": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "PricesPairs": {
        "properties": {
          "count": {
            "type": "integer"
          },
          "date": {
            "format": "date",
            "type": "string"
          },
          "final": {
            "type": "boolean"
          },
          "pairs": {
            "items": {
              "$ref": "#/components/schemas/PricesPair"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "PricesPoint": {
        "properties": {
          "algo": {
            "nullable": true,
            "type": "number"
          },
          "liquidity_usd": {
            "type": "number"
          },
          "price": {
            "nullable": true,
            "type": "number"
          },
          "ts": {
            "format": "date-time",
            "type": "string"
          },
          "usdc": {
            "nullable": true,
            "type": "number"
          }
        },
        "type": "object"
      },
      "PricesPool": {
        "properties": {
          "address": {
            "type": "string"
          },
          "app_id": {
            "format": "int64",
            "type": "integer"
          },
          "asa_a": {
            "format": "int64",
            "type": "integer"
          },
          "asa_b": {
            "format": "int64",
            "type": "integer"
          },
          "fee_bps": {
            "type": "number"
          },
          "first_round": {
            "format": "int64",
            "type": "integer"
          },
          "lp_asa": {
            "format": "int64",
            "type": "integer"
          },
          "pool_id": {
            "description": "App id, or the LP-token ASA id for Tinyman V2",
            "format": "int64",
            "type": "integer"
          },
          "venue": {
            "enum": [
              "tinyman2",
              "pact",
              "pactstable",
              "pactw",
              "biatec",
              "humble",
              "algofi",
              "liquihog",
              "nanoswap",
              "talgo",
              "xalgo",
              "folks"
            ],
            "type": "string"
          }
        },
        "type": "object"
      },
      "PricesPools": {
        "properties": {
          "asset": {
            "format": "int64",
            "type": "integer"
          },
          "count": {
            "type": "integer"
          },
          "pools": {
            "items": {
              "$ref": "#/components/schemas/PricesPool"
            },
            "type": "array"
          }
        },
        "type": "object"
      },
      "PricesPrice": {
        "example": {
          "algo": 806462.88,
          "asset": {
            "decimals": 8,
            "id": 386192725,
            "name": "goBTC",
            "unit": "goBTC"
          },
          "asset_usd": {
            "hops": 1,
            "liquidity_usd": 122543.4,
            "usd": 74302.41
          },
          "price": 74302.41,
          "quote": {
            "decimals": 6,
            "id": 31566704,
            "name": "USDC",
            "unit": "USDC"
          },
          "quote_usd": {
            "usd": 1
          },
          "round": 65000000,
          "ts": "2026-09-13T09:16:17Z",
          "usdc": 74302.41
        },
        "properties": {
          "algo": {
            "nullable": true,
            "type": "number"
          },
          "asset": {
            "$ref": "#/components/schemas/PricesAsset"
          },
          "asset_usd": {
            "$ref": "#/components/schemas/PricesAssetUSD"
          },
          "price": {
            "description": "Whole quote units per whole asset unit",
            "nullable": true,
            "type": "number"
          },
          "quote": {
            "$ref": "#/components/schemas/PricesAsset"
          },
          "quote_usd": {
            "$ref": "#/components/schemas/PricesAssetUSD"
          },
          "requested_ts": {
            "description": "Present when ts was at or after the indexed tip",
            "format": "date-time",
            "type": "string"
          },
          "round": {
            "format": "int64",
            "type": "integer"
          },
          "ts": {
            "format": "date-time",
            "type": "string"
          },
          "usdc": {
            "nullable": true,
            "type": "number"
          }
        },
        "type": "object"
      },
      "PricesRoute": {
        "properties": {
          "kept": {
            "type": "boolean"
          },
          "pool_id": {
            "format": "int64",
            "type": "integer"
          },
          "price_usd": {
            "type": "number"
          },
          "venue": {
            "type": "string"
          },
          "via": {
            "description": "Asset on the other side of the pool",
            "format": "int64",
            "type": "integer"
          },
          "weight_usd": {
            "type": "number"
          }
        },
        "type": "object"
      },
      "PricesStatus": {
        "properties": {
          "final_day": {
            "format": "date",
            "type": "string"
          },
          "round": {
            "format": "int64",
            "type": "integer"
          },
          "ts": {
            "format": "date-time",
            "type": "string"
          }
        },
        "type": "object"
      },
      "ImagesError": {
        "properties": {
          "error": {
            "type": "string"
          },
          "message": {
            "type": "string"
          },
          "request_id": {
            "type": "string"
          }
        },
        "type": "object"
      },
      "ImagesResults": {
        "properties": {
          "results": {
            "items": {
              "properties": {
                "assets": {
                  "description": "Algorand assets referencing the CID (up to 5)",
                  "items": {
                    "properties": {
                      "asset": {
                        "description": "ASA id",
                        "type": "integer"
                      },
                      "depth": {
                        "description": "0 = the asset's own URL, 1 = inside its metadata",
                        "type": "integer"
                      },
                      "key": {
                        "description": "where the asset references it (url, ARC-19, ARC-69 media...)",
                        "type": "string"
                      }
                    },
                    "type": "object"
                  },
                  "type": "array"
                },
                "cid": {
                  "description": "IPFS CID (fetch via any IPFS gateway)",
                  "type": "string"
                },
                "mime": {
                  "type": "string"
                },
                "score": {
                  "description": "cosine similarity, higher is closer",
                  "type": "number"
                }
              },
              "type": "object"
            },
            "type": "array"
          }
        },
        "type": "object"
      }
    }
  },
  "tags": [
    {
      "name": "search",
      "description": "Nodely Search and Scrape (x402)"
    },
    {
      "name": "prices",
      "description": "Nodely DEX Prices (x402)"
    },
    {
      "name": "images",
      "description": "Nodely NFT Image Search (x402)"
    }
  ]
}
