OpenAny
Get API keyAPI Key
APICrypto & DeFi

uniswap logo
Uniswap Get pool state API

Get Uniswap Get pool state data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Uniswap, pass parameters such as chainId, poolParameters, protocol, and retrieve structured data including returned current page field, returned page size field, chain identifier, returned pool protocol field, and returned protocol fee field for market reference and account inspection, and integration reference.

Selected price
$0 / callPublished pricing
Sellers / APIs
1 / 1
Requests · 30d
0Selected implementation · last 30 days
Success rate · 30d
—No requests in this period
USE THIS API

Uniswap Get pool state API

Prepare your request, then continue with your agent.

Selected price

$0 / call

Provider
Pricing
Connect your agent
On this page

Overview

Overview
Uniswap Get pool state API

Uniswap Get pool state API

Retrieve pool state with the Uniswap API. Provide protocol in body. Read the response using the field paths below, preserving identifiers and the declared value types when mapping results.

Quick Facts

Fact Value
Access OpenAny REST
Authentication OpenAny API key in the Authorization header
Core inputs body: body
Selected implementation uniswap · Uniswap Get pool state
Billing Follow the selected implementation pricing, billing unit, quantity and charge rules

What You Can Build

  • Market reference and account inspection: Keep market, asset and account identities distinct when interpreting records.
  • Integration reference: Use the selected request format and keep source identifiers with the returned result.

Documented Response Fields

Field Meaning
currentPage Returned current page field
pageSize Returned page size field
pools[].chainId Chain identifier
pools[].poolProtocol Returned pool protocol field
pools[].poolReferenceIdentifier Returned pool reference identifier field
pools[].protocolFee Returned protocol fee field
pools[].token0Reserves Returned token0 reserves field
pools[].token1Reserves Returned token1 reserves field

Quick Start

  1. Set OPENANY_API_KEY to your OpenAny API key.
  2. Review the JSON body and supported fields shown in the request template.
  3. Check the HTTP response and business result before reading optional fields.
bash
curl \
  'https://api.openany.si/v1/agent-apis/uniswap/lp/pool_info' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "chainId": 1,
  "poolParameters": {
    "fee": 3000,
    "tokenAddressA": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
    "tokenAddressB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
  },
  "protocol": "V2"
}'

Request and Response Examples

The 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.

Published Uniswap Get pool state API implementation contract.

Pricing and Billing

The pricing area reflects the selected API implementation. Review its billing unit and any request-dependent rules before calling; a source service's public availability does not determine OpenAny billing.

Frequently Asked Questions

View FAQ

Related APIs

Playground

Run sends a real API request. Charges follow the published API contract.

Request parameters
body*object

body

Complete public Uniswap request body. Internal fields are prohibited. Source-only annotations are kept in the raw OpenAPI snapshot.
Optional attribution hint for AI-agent traffic; send it if an AI agent built or operates your integration. The value is a JSON object with up to three fields: `decision_origin` (required, exactly `autonomous` or `human_mediated`, case-sensitive), `integration_name` (optional string naming your integration, e.g. `my-trading-bot`), and `version` (optional string identifying your integration's version). Any other key is dropped, never rejected. The raw value must be at most 1024 bytes of printable US-ASCII (`0x20`-`0x7E`), so send non-ASCII text as JSON `\u` escapes; `integration_name` and `version` are each limited to 256 UTF-16 code units and may not contain control characters, U+2028, U+2029, or U+FFFD. Send the header once: repeated header lines are joined with `, ` and the joined string is what gets parsed, so two complete objects fail as invalid JSON while a single object split across two lines still parses. The header is analytics-only and never affects the request: omitting it, sending it, or sending a value that fails these rules never changes the response status, body, or swap behavior. A value that fails to parse is dropped and reported by the `x-agent-info-status` response header. Never put a user ID, wallet address, email, session token, or API key in these fields.

Sample response

Run a request to see the actual response. Published samples are in Examples.

Response result

Sellers

SellerPricingRequests · 30dPerformanceAccess
uniswapCurrent
Uniswap Get pool state API · POST · View API reference
$0 / call0
—successP50—
Selected implementation traffic · 11/3/2026 – 12/3/2026 (UTC)
Selected pricing · uniswapUSD / call
Unit price
$0

Statistics use persisted gateway logs from the last 30 days up to now, including today.
Success rate = successful requests / all requests;
P50 = median latency of successful requests.
Prices reflect the published API contract. Contract revision: 5. Price update time: not supplied.

calls

Total $0

API

Method
POST
Endpoint
https://api.openany.si/v1/agent-apis/uniswap/lp/pool_info
Content type
application/json
Authentication
Authorization: Bearer $OPENANY_API_KEY
View request and response examples

Input parameters

Fields in this listing; additional options and input encoding can vary by provider.

ParameterLocationTypeRequiredDescription
protocolJSON request bodybodystringYes

enum: "V2", "V3", "V4"

x-agent-infoRequest headersheadersstringNo

Optional attribution hint for AI-agent traffic; send it if an AI agent built or operates your integration. The value is a JSON object with up to three fields: `decision_origin` (required, exactly `autonomous` or `human_mediated`, case-sensitive), `integration_name` (optional string naming your integration, e.g. `my-trading-bot`), and `version` (optional string identifying your integration's version). Any other key is dropped, never rejected. The raw value must be at most 1024 bytes of printable US-ASCII (`0x20`-`0x7E`), so send non-ASCII text as JSON `\u` escapes; `integration_name` and `version` are each limited to 256 UTF-16 code units and may not contain control characters, U+2028, U+2029, or U+FFFD. Send the header once: repeated header lines are joined with `, ` and the joined string is what gets parsed, so two complete objects fail as invalid JSON while a single object split across two lines still parses. The header is analytics-only and never affects the request: omitting it, sending it, or sending a value that fails these rules never changes the response status, body, or swap behavior. A value that fails to parse is dropped and reported by the `x-agent-info-status` response header. Never put a user ID, wallet address, email, session token, or API key in these fields.

maxLength: 1024

chainIdJSON request bodybodynumberNo

enum: 1, 10, 56, 130, 137, 143, 196, 324, 480, 1868, 4217, 4326, 4663, 5042, 8453, 10143, 42161, 42220, 43114, 57073, 59144, 81457, 7777777, 1301, 84532, 11155111

currentPageJSON request bodybodynumberNo
pageSizeJSON request bodybodynumberNo
poolParametersJSON request bodybodyobjectNo
Nested fields and variants
body.poolParameters.fee number · Optional

Parent object: body.poolParameters

body.poolParameters.hookAddress string · Optional

Parent object: body.poolParameters

body.poolParameters.tickSpacing number · Optional

Parent object: body.poolParameters

body.poolParameters.tokenAddressA string · Required

Parent object: body.poolParameters

pattern: ^(0x)?[0-9a-fA-F]{40}$

body.poolParameters.tokenAddressB string · Required

Parent object: body.poolParameters

pattern: ^(0x)?[0-9a-fA-F]{40}$

poolReferencesJSON request bodybodyarrayNo

maxItems: 20

Nested fields and variants

body.poolReferences[] · Array item · object

Nested fields and variants
body.poolReferences[].chainId number · Required

Parent object: body.poolReferences[]

enum: 1, 10, 56, 130, 137, 143, 196, 324, 480, 1868, 4217, 4326, 4663, 5042, 8453, 10143, 42161, 42220, 43114, 57073, 59144, 81457, 7777777, 1301, 84532, 11155111

body.poolReferences[].protocol string · Required

Parent object: body.poolReferences[]

enum: "V2", "V3", "V4"

body.poolReferences[].referenceIdentifier string · Optional

Parent object: body.poolReferences[]

pattern: ^(0x)?[0-9a-fA-F]

Required markers inside a nested object or variant apply when that object or variant is used.

Response structure

Inferred from examples
  • currentPageinteger
  • pageSizeinteger
  • poolsobject[]
    • chainIdinteger
    • poolProtocolstring
    • poolReferenceIdentifierstring
    • protocolFeeinteger
    • token0Reservesstring
    • token1Reservesstring
    • tokenAddressAstring
    • tokenAddressBstring
    • tokenDecimalsAstring
    • tokenDecimalsBstring
  • requestIdstring

Agent integration

Copy the resource contract without sharing an API key.

Download MDView API Markdown

Error handling

StatusNext step
400Check the offering and request fields.
401 / 403Verify your credentials and access permissions.
402Inspect the selected access mode and returned payment requirements.
429Respect the returned rate limit and retry guidance.
5xxInspect the error and usage record before retrying a paid operation.

Examples

pool_info

Published documentation example. Verify the actual response after an approved call.

  1. Prepare your environment

    Use a terminal with cURL installed.

    Use an OpenAny API key with shared-balance access. Confirm availability and price before running; a call may charge your balance.

    Set the key in your terminal using the hidden prompt below. Keep its value out of source files and logs.

    Terminal · macOS / Linux
    printf 'OpenAny API key: '
    read -r -s OPENANY_API_KEY
    export OPENANY_API_KEY
    printf '\n'
  2. Run the request

    Paste the complete command below into your terminal.

    Values to replace before running 2

    Review these request fields before running. Keep the published provider and request method unchanged.

    x-agent-info
    Optional attribution hint for AI-agent traffic; send it if an AI agent built or operates your integration. The value is a JSON object with up to three fields: `decision_origin` (required, exactly `autonomous` or `human_mediated`, case-sensitive), `integration_name` (optional string naming your integration, e.g. `my-trading-bot`), and `version` (optional string identifying your integration's version). Any other key is dropped, never rejected. The raw value must be at most 1024 bytes of printable US-ASCII (`0x20`-`0x7E`), so send non-ASCII text as JSON `\u` escapes; `integration_name` and `version` are each limited to 256 UTF-16 code units and may not contain control characters, U+2028, U+2029, or U+FFFD. Send the header once: repeated header lines are joined with `, ` and the joined string is what gets parsed, so two complete objects fail as invalid JSON while a single object split across two lines still parses. The header is analytics-only and never affects the request: omitting it, sending it, or sending a value that fails these rules never changes the response status, body, or swap behavior. A value that fails to parse is dropped and reported by the `x-agent-info-status` response header. Never put a user ID, wallet address, email, session token, or API key in these fields.
    body
    Complete public Uniswap request body. Internal fields are prohibited. Source-only annotations are kept in the raw OpenAPI snapshot.
    Terminal · cURL
    curl \
      'https://api.openany.si/v1/agent-apis/uniswap/lp/pool_info' \
      -X POST \
      -H "Authorization: Bearer $OPENANY_API_KEY" \
      -H 'Content-Type: application/json' \
      --data-raw '{
      "chainId": 1,
      "poolParameters": {
        "fee": 3000,
        "tokenAddressA": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
        "tokenAddressB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2"
      },
      "protocol": "V2"
    }'
  3. Check the response

    Sample response · Documented HTTP 200

    Sample response
    {
      "currentPage": 1,
      "pageSize": 1,
      "pools": [
        {
          "chainId": 1,
          "poolProtocol": "V2",
          "poolReferenceIdentifier": "0xb4e16d0168e52d35cacd2c6185b44281ec28c9dc",
          "protocolFee": 500,
          "token0Reserves": "9542782066994",
          "token1Reserves": "4313721743987578928116",
          "tokenAddressA": "0xA0b86991c6218b36c1d19D4a2e9Eb0cE3606eB48",
          "tokenAddressB": "0xC02aaA39b223FE8D0A0e5C4F27eAD9083C756Cc2",
          "tokenDecimalsA": "6",
          "tokenDecimalsB": "18"
        }
      ],
      "requestId": "21d2fea0-1563-4c26-9aa6-1b361903b81b"
    }

Common questions

Which inputs identify this request?

Provide protocol in body (string). Keep identifiers and URLs in the formats documented for this implementation.

How should I structure the JSON body?

Send the body according to its root JSON schema. Do not add a second body wrapper around the documented properties, and preserve the declared types of nested values.

How should I map the returned fields?

Use the documented response paths with their returned types. Keep null, empty collections, false and zero distinct, and retain the identifiers needed to match results to the request.

Can I reuse request parameters from another endpoint?

Use the selected implementation schema. Similar operation names, providers or versions do not establish identical input locations, types or response fields.

Which API key should I use?

Use your OpenAny API key as Bearer authentication on the documented OpenAny route.

Where can I check the current request price?

Check the pricing area for the selected API implementation. Follow its billing unit, quantity and any request-dependent rules before sending the request.

Use Uniswap Get pool state API with your agent

Inspect endpoint contracts and confirm availability and pricing before a paid call.