UnoRouter Ratio Sync API

The RatioSync API from UnoRouter, for ratiosync.

GitHub OpenAPI

Operations 2

GET /api/ratio_sync/channels Get Syncable Channels #
POST /api/ratio_sync/fetch Fetch Upstream Ratios #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/unorouter-com:unorouter-com-ratiosync-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. By signing up you are subscribing to the APIs.io and API Evangelist newsletters — you can unsubscribe from any issue. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

unorouter-com-ratiosync-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: ' '
  title: New Ratio Sync API
  version: 0.0.1
tags:
- name: RatioSync
paths:
  /api/ratio_sync/channels:
    get:
      operationId: getSyncableChannels
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_Array-dto.SyncableChannel'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_Array-dto.SyncableChannel'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Get Syncable Channels
      tags:
      - RatioSync
  /api/ratio_sync/fetch:
    post:
      operationId: fetchUpstreamRatios
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/FetchUpstreamRatiosRequest'
        description: Request body for dto.FetchUpstreamRatiosRequest
        required: true
      responses:
        '200':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Response_dto.FetchUpstreamRatiosResult'
            application/xml:
              schema:
                $ref: '#/components/schemas/Response_dto.FetchUpstreamRatiosResult'
          description: OK
      security:
      - accessToken: []
        newApiUser: []
      - newApiUser: []
        sessionAuth: []
      summary: Fetch Upstream Ratios
      tags:
      - RatioSync
components:
  schemas:
    FetchUpstreamRatiosRequest:
      description: FetchUpstreamRatiosRequest schema
      properties:
        channel_ids:
          items:
            format: int64
            type: integer
          type:
          - array
          - 'null'
        include_unchanged:
          type: boolean
        timeout:
          type: integer
        upstreams:
          items:
            $ref: '#/components/schemas/UpstreamDTO'
          type:
          - array
          - 'null'
      required:
      - channel_ids
      - include_unchanged
      - timeout
      - upstreams
      type: object
    TestResult:
      properties:
        error:
          type: string
        name:
          type: string
        status:
          type: string
      required:
      - name
      - status
      type: object
    Response_dto.FetchUpstreamRatiosResult:
      description: Response_dto.FetchUpstreamRatiosResult schema
      properties:
        data:
          $ref: '#/components/schemas/FetchUpstreamRatiosResult'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    Response_Array-dto.SyncableChannel:
      description: Response_Array-dto.SyncableChannel schema
      properties:
        data:
          items:
            $ref: '#/components/schemas/SyncableChannel'
          type:
          - array
          - 'null'
        message:
          type: string
        success:
          type: boolean
      required:
      - data
      - message
      - success
      type: object
    FetchUpstreamRatiosResult:
      properties:
        differences:
          additionalProperties:
            additionalProperties:
              $ref: '#/components/schemas/DifferenceItem'
            type: object
          type:
          - object
          - 'null'
        prices: {}
        test_results:
          items:
            $ref: '#/components/schemas/TestResult'
          type:
          - array
          - 'null'
      required:
      - differences
      - prices
      - test_results
      type: object
    SyncableChannel:
      properties:
        base_url:
          type: string
        id:
          type: integer
        name:
          type: string
        status:
          type: integer
        type:
          type: integer
      required:
      - base_url
      - id
      - name
      - status
      - type
      type: object
    UpstreamDTO:
      properties:
        base_url:
          type: string
        endpoint:
          type: string
        id:
          type: integer
        name:
          type: string
      required:
      - base_url
      - endpoint
      - name
      type: object
    DifferenceItem:
      properties:
        confidence:
          additionalProperties:
            type: boolean
          type:
          - object
          - 'null'
        current: {}
        upstreams:
          additionalProperties: {}
          type:
          - object
          - 'null'
      required:
      - confidence
      - current
      - upstreams
      type: object
  securitySchemes:
    accessToken:
      description: System access token for dashboard API routes. Must be paired with New-Api-User header.
      in: header
      name: Authorization
      type: apiKey
    anthropicApiKey:
      description: Anthropic-style API key. Used by /v1/messages and /v1/models.
      in: header
      name: x-api-key
      type: apiKey
    bearerAuth:
      description: API token (sk-...). Used by relay routes (/v1/*) and token-based query endpoints.
      scheme: bearer
      type: http
    newApiUser:
      description: User ID header. Required together with the access token or session cookie for dashboard API routes.
      in: header
      name: New-Api-User
      type: apiKey
    sessionAuth:
      description: Session cookie from /api/user/login. Used by dashboard routes as an alternative to access token.
      in: cookie
      name: session
      type: apiKey