{"data":{"billing":{"currency":"USD","mode":"fixed","priceMicroUsd":"0","rounding":null,"unit":"call","unitQuantity":null},"capabilityId":"78bc120d-1ee0-4183-b269-b868f9e0dd91","catalogType":"api","categories":["finance"],"dataPlatform":"BlockRun","dataPlatformLogoUrl":"https://blockrun.ai/apple-touch-icon.png","dataPlatformTranslations":{"ar":"BlockRun","ja":"BlockRun","zh":"BlockRun"},"dataProduct":"dex","description":"Get 0x — Indicative Permit2 swap quote data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by BlockRun, pass parameters such as buyAmount, buyToken, chainId, and retrieve structured data including returned allowance target field, returned block number field, returned buy amount field, returned buy token field, and returned amount field for application integration and result review, and integration reference.","descriptionTranslations":{"ar":"استخدم DEX للقراءة فقط — 0x — عرض سعر إرشادي لمبادلة Permit2 (دون التزام) API عبر OpenAny، مع تقديم buyToken, chainId, sellToken بصيغة طلب GET الموثقة، لدعم تكامل التطبيقات ومراجعة النتائج. تتضمن صفحة التفاصيل قالب الطلب والمدخلات المدعومة ومرجع الاستجابة والسعر الحالي للتنفيذ المحدد؛ احتفظ بالمعرفات والحقول المتاحة معا عند مراجعة النتائج.","ja":"OpenAny から 読み取り専用 DEX — 0x — 参考値の Permit2 スワップ見積もり（拘束力なし） API を利用し、GET リクエスト形式で buyToken, chainId, sellToken を指定して、アプリケーション連携と結果の確認に利用できます。詳細ページにはリクエスト例、対応入力、応答参照、選択した実装の現在の料金があり、結果を確認する際は識別子と利用可能なフィールドを関連付けて保持できます。","zh":"通过 OpenAny 使用 只读 DEX — 0x — 指示性 Permit2 兑换报价（无承诺） API，按所选实现的 GET 请求格式提供 buyToken, chainId, sellToken，用于应用集成和结果核对。详情页提供请求模板、支持的输入、响应参考及所选实现的当前价格；核对结果时，将返回标识与可用字段关联保留。"},"effectContentHtml":"","executionMode":"sync","id":"7e18e4fe-30fd-4610-8524-207d85d709b2","includedContentHtml":"","inputs":[{"description":"The amount of `buyToken` in `buyToken` base units to buy. Exactly one of `sellAmount` or `buyAmount` must be provided — specifying both will result in an error.","location":"query","name":"buyAmount","nullable":false,"required":false,"type":"string"},{"description":"The contract address of the token to buy","location":"query","name":"buyToken","nullable":false,"required":true,"type":"string"},{"description":"Chain ID. See [here](https://docs.0x.org/docs/introduction/supported-chains) for the list of supported chains","location":"query","name":"chainId","nullable":false,"required":true,"type":"integer"},{"description":"Liquidity sources e.g. Uniswap_V3, SushiSwap, 0x_RFQ to exclude from the provided quote. See https://api.0x.org/sources?chainId=\u003cchain_id\u003e with the desired chain's ID for a full list of sources. Separate multiple sources with a comma","location":"query","name":"excludedSources","nullable":false,"required":false,"type":"string"},{"description":"The target gas price (in wei) for the swap transaction. If not provided, the default value is based on the 0x gas price oracle","location":"query","name":"gasPrice","nullable":false,"required":false,"type":"string"},{"description":"The address to receive the `buyToken`. If not provided, defaults to the taker address. Not supported for wrap/unwrap operations.","location":"query","name":"recipient","nullable":false,"required":false,"type":"string"},{"description":"The amount of `sellToken` in `sellToken` base units to sell. Exactly one of `sellAmount` or `buyAmount` must be provided — specifying both will result in an error.","location":"query","name":"sellAmount","nullable":false,"required":false,"type":"string"},{"description":"If set to `true`, the taker's entire `sellToken` balance will be sold during trade execution. The `sellAmount` should be the maximum estimated value, as close as possible to the actual taker's balance to ensure the best routing. Selling more than the `sellAmount` may cause the trade to revert. This feature is designed for cases where the precise sell amount is determined during execution. Learn more [here](https://docs.0x.org/docs/0x-swap-api/additional-topics/sell-entire-balance).","enum_values":["true","false"],"location":"query","name":"sellEntireBalance","nullable":false,"required":false,"type":"string"},{"description":"The contract address of the token to sell","location":"query","name":"sellToken","nullable":false,"required":true,"type":"string"},{"description":"The maximum acceptable slippage of the `buyToken` in Bps. If this parameter is set to 0, no slippage will be tolerated. If not provided, the default slippage tolerance is 100Bps. Deprecated: use `slippagePpm` instead. `slippageBps` accepts only whole numbers.","location":"query","maximum":"10000","minimum":"0","name":"slippageBps","nullable":false,"required":false,"type":"integer"},{"description":"The maximum acceptable slippage of the `buyToken` in parts-per-million (PPM). Mutually exclusive with `slippageBps`. e.g. 3000 PPM = 30 BPS = 0.30%.","location":"query","maximum":"1000000","minimum":"0","name":"slippagePpm","nullable":false,"required":false,"type":"integer"},{"description":"The address which holds the `sellToken` balance and has the allowance set for the swap","location":"query","name":"taker","nullable":false,"required":false,"type":"string"},{"description":"The maximum trade surplus (positive slippage) that can be collected in Bps of the buy amount. If not provided, defaults to 10000 (100%). Must be used together with `tradeSurplusRecipient`. Mutually exclusive with `tradeSurplusMaxPpm`.","location":"query","maximum":"10000","minimum":"1","name":"tradeSurplusMaxBps","nullable":false,"required":false,"type":"integer"},{"description":"The maximum trade surplus (positive slippage) that can be collected in parts-per-million (PPM) of the buy amount. Mutually exclusive with `tradeSurplusMaxBps`. If not provided, defaults to 1000000 (100%). Must be used together with `tradeSurplusRecipient`. e.g. 5000 PPM = 50 BPS = 0.5%.","location":"query","maximum":"1000000","minimum":"1","name":"tradeSurplusMaxPpm","nullable":false,"required":false,"type":"integer"},{"description":"The address to receive any trade surplus. If specified, this address will receive trade surplus when applicable. Otherwise, the taker will receive the surplus. This feature is only available to selected integrators on a custom pricing plan. In other cases, the surplus will be collected by 0x. For assistance with a custom plan, please contact support.","location":"query","name":"tradeSurplusRecipient","nullable":false,"required":false,"type":"string"},{"description":"The address of the external account that started the transaction. This is only needed if `taker` is a smart contract.","location":"query","name":"txOrigin","nullable":false,"required":false,"type":"string"},{"description":"Controls how native wrap/unwrap trades are executed. `direct` calls the wrapped-native token contract directly. `settler` routes wrap/unwrap through Settler or Allowance Holder for compatibility. Ignored for non-wrap/unwrap swaps. If omitted, `direct` mode is used.","enum_values":["direct","settler"],"location":"query","name":"wrapUnwrapMode","nullable":false,"required":false,"type":"string"}],"logoUrl":"https://blockrun.ai/apple-touch-icon.png","method":"GET","name":"Read-only DEX — 0x — Indicative Permit2 swap quote (no commitment)","nameTranslations":{"ar":"DEX للقراءة فقط — 0x — عرض سعر إرشادي لمبادلة Permit2 (دون التزام)","ja":"読み取り専用 DEX — 0x — 参考値の Permit2 スワップ見積もり（拘束力なし）","zh":"只读 DEX — 0x — 指示性 Permit2 兑换报价（无承诺）"},"overviewHtml":"\u003ch2\u003eBlockrun 0x — Indicative Permit2 swap quote (no commitment) API\u003c/h2\u003e\n\u003cp\u003eRetrieve read-only DEX 0x Indicative Permit2 swap quote (no commitment) with the BlockRun API. Provide buyToken in query, chainId in query, sellToken in query. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.\u003c/p\u003e\n\u003ch2\u003eQuick Facts\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eFact\u003c/th\u003e\n\u003cth\u003eValue\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003eAccess\u003c/td\u003e\n\u003ctd\u003eOpenAny REST\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eAuthentication\u003c/td\u003e\n\u003ctd\u003eOpenAny API key in the Authorization header\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eCore inputs\u003c/td\u003e\n\u003ctd\u003equery: buyAmount, buyToken, chainId, excludedSources, gasPrice, recipient, sellAmount, sellEntireBalance, sellToken, slippageBps, slippagePpm, taker, tradeSurplusMaxBps, tradeSurplusMaxPpm, tradeSurplusRecipient, txOrigin, wrapUnwrapMode\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eSelected implementation\u003c/td\u003e\n\u003ctd\u003eblockrun · Read-only DEX — 0x — Indicative Permit2 swap quote (no commitment)\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003eBilling\u003c/td\u003e\n\u003ctd\u003eFollow the selected implementation pricing, billing unit, quantity and charge rules\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eWhat You Can Build\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003cstrong\u003eApplication integration and result review\u003c/strong\u003e: Keep the request context attached to available returned results.\u003c/li\u003e\n\u003cli\u003e\u003cstrong\u003eIntegration reference\u003c/strong\u003e: Use the selected request format and keep source identifiers with the returned result.\u003c/li\u003e\n\u003c/ul\u003e\n\u003ch2\u003eDocumented Response Fields\u003c/h2\u003e\n\u003ctable\u003e\n\u003cthead\u003e\n\u003ctr\u003e\n\u003cth\u003eField\u003c/th\u003e\n\u003cth\u003eMeaning\u003c/th\u003e\n\u003c/tr\u003e\n\u003c/thead\u003e\n\u003ctbody\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eallowanceTarget\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned allowance target field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eblockNumber\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned block number field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ebuyAmount\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned buy amount field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003ebuyToken\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned buy token field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003eestimatedNetSellAmount\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned estimated net sell amount field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efees.integratorFee.amount\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned amount field\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efees.integratorFee.token\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eToken value\u003c/td\u003e\n\u003c/tr\u003e\n\u003ctr\u003e\n\u003ctd\u003e\u003ccode\u003efees.integratorFee.type\u003c/code\u003e\u003c/td\u003e\n\u003ctd\u003eReturned type field\u003c/td\u003e\n\u003c/tr\u003e\n\u003c/tbody\u003e\n\u003c/table\u003e\n\u003ch2\u003eQuick Start\u003c/h2\u003e\n\u003col\u003e\n\u003cli\u003eSet OPENANY_API_KEY to your OpenAny API key.\u003c/li\u003e\n\u003cli\u003eReview the supported inputs and set any required query value shown in the template.\u003c/li\u003e\n\u003cli\u003eCheck the HTTP response and business result before reading optional fields.\u003c/li\u003e\n\u003c/ol\u003e\n\u003cpre\u003e\u003ccode class=\"language-bash\"\u003ecurl \\\n  \u0026#39;https://api.openany.si/v1/agent-apis/blockrun/api/v1/zerox/price?buyAmount=1000000000000000\u0026amp;buyToken=0x4200000000000000000000000000000000000006\u0026amp;chainId=1\u0026amp;sellToken=0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913\u0026amp;taker=0x1111111111111111111111111111111111111111\u0026#39; \\\n  -X GET \\\n  -H \u0026#34;Authorization: Bearer $OPENANY_API_KEY\u0026#34; \\\n  -H \u0026#39;Content-Type: application/json\u0026#39;\n\u003c/code\u003e\u003c/pre\u003e\n\u003ch2\u003eRequest and Response Examples\u003c/h2\u003e\n\u003cp\u003eThe response is a published documentation reference; its values may be historical. The request is an independent calling template. Use current returned identifiers and optional fields for your target resource.\u003c/p\u003e\n\u003cp\u003e\u003ca href=\"https://openany.si/api/v1/agent-apis/7e18e4fe-30fd-4610-8524-207d85d709b2\"\u003ePublished Blockrun 0x — Indicative Permit2 swap quote (no commitment) API implementation contract\u003c/a\u003e.\u003c/p\u003e\n\u003ch2\u003ePricing and Billing\u003c/h2\u003e\n\u003cp\u003eThe pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service\u0026#39;s public availability does not determine OpenAny billing.\u003c/p\u003e\n\u003ch2\u003eFrequently Asked Questions\u003c/h2\u003e\n\u003ch3\u003eWhich inputs identify this request?\u003c/h3\u003e\n\u003cp\u003eProvide buyToken in query (string); chainId in query (integer); sellToken in query (string). Keep identifiers and URLs in the formats documented for this implementation.\u003c/p\u003e\n\u003ch3\u003eWhich pagination or result-size inputs are exposed?\u003c/h3\u003e\n\u003cp\u003eslippageBps is integer with minimum 0 and maximum 10000; slippagePpm is integer with minimum 0 and maximum 1000000. Use only the exposed inputs and the continuation metadata returned by this endpoint; a size limit is not automatically a page or cursor.\u003c/p\u003e\n\u003ch3\u003eWhich values can I use for sellEntireBalance?\u003c/h3\u003e\n\u003cp\u003eThe selected schema accepts true, false. Keep the documented string type and exact spelling for this input.\u003c/p\u003e\n\u003ch3\u003eWhere do URL parameters belong?\u003c/h3\u003e\n\u003cp\u003eUse the documented path and query inputs. This GET implementation does not use a JSON request body; keep path values and URL query values in their declared locations.\u003c/p\u003e\n\u003ch3\u003eWhich API key should I use?\u003c/h3\u003e\n\u003cp\u003eUse your OpenAny API key as Bearer authentication on the documented OpenAny route.\u003c/p\u003e\n\u003ch3\u003eWhere can I check the current request price?\u003c/h3\u003e\n\u003cp\u003eCheck the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.\u003c/p\u003e\n\u003ch2\u003eRelated APIs\u003c/h2\u003e\n\u003cul\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/blockrun/blockrun-defi-data-defillama-prices\"\u003eDeFi Data — DefiLlama — prices\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/blockrun/blockrun-defi-data-defillama-yields\"\u003eDeFi Data — DefiLlama — yields\u003c/a\u003e\u003c/li\u003e\n\u003cli\u003e\u003ca href=\"https://openany.si/market/apis/blockrun/blockrun-read-only-dex-0x-gasless-firm-quote-returns-trade-eip712-optional-approval-eip712-for-c\"\u003eRead-only DEX — 0x — Gasless firm quote — returns trade.eip712 (+ optional approval.eip712) for client to sign\u003c/a\u003e\u003c/li\u003e\n\u003c/ul\u003e\n","pagePath":"/markets/apis/blockrun/blockrun-read-only-dex-0x-indicative-permit2-swap-quote-no-commitment?offering=7e18e4fe-30fd-4610-8524-207d85d709b2","providerId":"blockrun","publicPath":"/v1/agent-apis/blockrun/api/v1/zerox/price","requestContentType":"none","revision":5,"samples":[{"http_status":200,"name":"Documentation example","request":{"body":null,"headers":{},"path":{},"query":{"buyAmount":"1000000000000000","buyToken":"0x4200000000000000000000000000000000000006","chainId":"8453","sellToken":"0x833589fCD6eDb6E08f4c7C32D4f71b54bdA02913","taker":"0x1111111111111111111111111111111111111111"}},"response_body":{"allowanceTarget":"0x000000000022d473030f116ddee9f6b43ac78ba3","blockNumber":"53329866","buyAmount":"1000000000000000","buyToken":"0x4200000000000000000000000000000000000006","estimatedNetSellAmount":"2252777","fees":{"integratorFee":{"amount":"4567","token":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","type":"volume"},"integratorFees":[{"amount":"4567","token":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","type":"volume"}],"zeroExFee":{"amount":"3425","token":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","type":"volume"}},"gas":"464457","gasPrice":"7975000","issues":{"allowance":{"actual":"0","spender":"0x000000000022d473030f116ddee9f6b43ac78ba3"},"balance":null,"invalidSourcesPassed":[],"simulationIncomplete":false},"liquidityAvailable":true,"maxSellAmount":"2283357","mode":"exact-out","routes":{"forward":{"fills":[{"from":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","proportionBps":"10000","source":"LunarBase","to":"0x4200000000000000000000000000000000000006"}],"tokens":[{"address":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","symbol":"USDC"},{"address":"0x4200000000000000000000000000000000000006","symbol":"WETH"}]},"refund":{"fills":[{"from":"0x4200000000000000000000000000000000000006","proportionBps":"10000","source":"AlienBase_V3","to":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913"}],"tokens":[{"address":"0x4200000000000000000000000000000000000006","symbol":"WETH"},{"address":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","symbol":"USDC"}]}},"sellToken":"0x833589fcd6edb6e08f4c7c32d4f71b54bda02913","tokenMetadata":{"buyToken":{"buyTaxBps":"0","sellTaxBps":"0","transferTaxBps":"0"},"sellToken":{"buyTaxBps":"0","sellTaxBps":"0","transferTaxBps":"0"}},"totalNetworkFee":"3706392767710","zid":"0x129c1097e1742a668caf4a2b"}}],"seoDescription":"Get 0x — Indicative Permit2 swap quote data via REST or MCP powered by BlockRun. Pay per call, no subscription. Get structured JSON with one API key.","updatedAt":"2026-12-03T02:49:50.818Z","usageInstructionsHtml":""}}