Rate Ranger Agent API

The Agent API from Rate Ranger — 2 operation(s) for agent.

GitHub OpenAPI

Operations 2

POST /api/agent/bookings Agent Submit Bookings #
GET /api/agent/bookings/{token} Agent Read Booking #

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/rateranger-io:rateranger-io-agent-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

rateranger-io-agent-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  contact:
    email: hello@rateranger.io
    name: Rate Ranger
  description: 'Submit hotel bookings for price monitoring on a traveller''s behalf.


    Rate Ranger watches a hotel''s rate after it has been booked and emails the

    traveller when it drops far enough to be worth rebooking. This API exists so an

    AI assistant can set that up without driving a browser.


    CONSENT IS REQUIRED. A submission records the bookings and monitors nothing.

    Rate Ranger emails the traveller one link; until they click it no price is

    checked and no alert can fire. Unconfirmed bookings are deleted after 7 days.

    Tell your user to expect that email, and do not report the booking as active

    until the read endpoint says so.


    No key is needed. An anonymous caller may submit 10 bookings per day per IP.

    Email hello@rateranger.io for a key if you need more.


    Free, for the traveller and for you. Rate Ranger earns an affiliate commission

    only if the traveller chooses to rebook through a link in an alert.'
  summary: Post-booking hotel price monitoring, for AI assistants.
  title: Rate Ranger Agent API
  version: 1.0.0
servers:
- url: https://www.rateranger.io
tags:
- name: Agent
paths:
  /api/agent/bookings:
    post:
      description: 'Submit 1 to 10 bookings for one traveller. Nothing is watched until they confirm.


        Returns a per-item result rather than one verdict for the batch. Rahul''s

        assistant sent seven bookings in one message; rejecting all seven because

        one date was malformed would make the caller guess which one, and an

        all-or-nothing contract turns a typo into a total failure.'
      operationId: agent_submit_bookings_api_agent_bookings_post
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/AgentBatchSubmission'
        required: true
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: Accepted with nothing left pending, which happens only when every item in the batch was rejected or already known.
        '202':
          description: Accepted. Every booking is created PENDING and the traveller is emailed one confirmation link. Nothing is monitored and no price is checked until they click it, so do not tell your user the booking is being tracked yet. This is the normal outcome.
        '400':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentError'
          description: invalid_email if the address is not a valid one, or disposable_email if it belongs to a throwaway provider. The traveller has to be able to receive the confirmation and later price alerts, so neither can be accepted.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
        '429':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentError'
          description: Rate limited. Either the caller's daily quota, or the per-recipient cap that stops one inbox being signed up repeatedly. Retrying immediately will fail the same way.
      summary: Agent Submit Bookings
      tags:
      - Agent
  /api/agent/bookings/{token}:
    get:
      description: 'Status of one booking the caller created. Ownership is checked server-side.


        The token binds an email to a booking id, and _resolve_booking_from_token

        compares that email against the booking''s own denormalised address before

        returning anything. Holding a valid signature is not sufficient.'
      operationId: agent_read_booking_api_agent_bookings__token__get
      parameters:
      - in: path
        name: token
        required: true
        schema:
          title: Token
          type: string
      responses:
        '200':
          content:
            application/json:
              schema: {}
          description: 'The booking as we hold it. Read `booking.confirmed`: false means the traveller has not clicked the emailed link yet and nothing is being monitored. `booking.monitoring_status` carries the detail (`pending`, `watching`, `rebooked`, `expired`, `cancelled`). The top-level `status` is always `ok` on a 200 and says nothing about the booking. Check here before telling your user their booking is being tracked. `booking.agoda_price` and `booking.saving` are Agoda''s public rate and the saving against it, because Agoda is the only site we compare against and the only one we can link a traveller to. Quote no other number: a cheaper rate on some other site is not something we can act on or send anyone to. A null `saving` always comes with a `saving_note` saying why there is nothing to report.'
        '403':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentError'
          description: invalid_token. The signature failed, the token is the wrong type, or it has expired. Read tokens are returned at submission and are not guessable.
        '404':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentError'
          description: not_found. The token verified but matches no booking, which usually means an unconfirmed booking was deleted after 7 days.
        '422':
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/HTTPValidationError'
          description: Validation Error
      summary: Agent Read Booking
      tags:
      - Agent
components:
  schemas:
    AgentError:
      description: 'The one error shape the agent API returns, for every failure.


        Mirrors `_agent_error` in src/handlers/api.py. It exists as a model rather

        than only as a dict literal so FastAPI can render it into the published

        OpenAPI spec: until 2026-09-03 that spec documented only 200 and 422, and an

        agent generating a client from it was told rate limiting did not exist.


        `code` is the stable field to branch on. `message` is prose for a human

        reading a log or relaying it into a chat, and may be reworded at any time.'
      properties:
        code:
          title: Code
          type: string
        message:
          title: Message
          type: string
        status:
          default: error
          title: Status
          type: string
      required:
      - code
      - message
      title: AgentError
      type: object
    AgentBookingItem:
      description: 'One booking inside an agent batch submission.


        Deliberately stricter than `ManualBookingSubmission`, because the callers

        are different. A browser form is forgiving by necessity: a human who mistypes

        should not lose their booking, so bad attribution is dropped rather than

        raised. An agent is a program that can read an error and correct itself, so

        telling it exactly what was wrong is more useful than silently coercing.


        `country` is REQUIRED here and optional on the form. That is the single

        highest-leverage field in the payload: a missing country routes a booking

        past DataForSEO to SerpAPI, and in August 2026 that stranded 60 bookings on

        an exhausted free tier. An LLM-driven caller always knows which country a

        hotel is in, so requiring it costs nothing and closes the hole.


        Prices may carry decimals. The web form strips them because its JavaScript

        turns "687.50" into "68750", which is a browser problem an API does not

        have. Rahul''s assistant had to pre-round SGD 467.79 to 468; it no longer

        needs to.'
      properties:
        booking_platform:
          default: other
          maxLength: 40
          title: Booking Platform
          type: string
        check_in_date:
          format: date
          title: Check In Date
          type: string
        check_out_date:
          format: date
          title: Check Out Date
          type: string
        city:
          maxLength: 120
          minLength: 1
          title: City
          type: string
        country:
          maxLength: 2
          minLength: 2
          title: Country
          type: string
        currency:
          default: USD
          maxLength: 3
          minLength: 3
          title: Currency
          type: string
        hotel_name:
          maxLength: 200
          minLength: 1
          title: Hotel Name
          type: string
        num_guests:
          default: 2
          maximum: 9.0
          minimum: 1.0
          title: Num Guests
          type: integer
        num_rooms:
          default: 1
          maximum: 10.0
          minimum: 1.0
          title: Num Rooms
          type: integer
        room_type:
          default: Standard Room
          maxLength: 120
          title: Room Type
          type: string
        total_price:
          exclusiveMinimum: 0.0
          maximum: 10000000.0
          title: Total Price
          type: number
      required:
      - hotel_name
      - city
      - country
      - check_in_date
      - check_out_date
      - total_price
      title: AgentBookingItem
      type: object
    ValidationError:
      properties:
        ctx:
          title: Context
          type: object
        input:
          title: Input
        loc:
          items:
            anyOf:
            - type: string
            - type: integer
          title: Location
          type: array
        msg:
          title: Message
          type: string
        type:
          title: Error Type
          type: string
      required:
      - loc
      - msg
      - type
      title: ValidationError
      type: object
    AgentBatchSubmission:
      description: 'A batch of bookings submitted on one traveller''s behalf by an agent.


        One email address per batch by design. The confirmation is a single message

        to one person listing everything an assistant asked us to watch for them,

        which is both a better inbox experience than seven separate emails and the

        thing that makes one confirmation link sufficient.'
      properties:
        agent:
          anyOf:
          - maxLength: 80
            type: string
          - type: 'null'
          title: Agent
        bookings:
          items:
            $ref: '#/components/schemas/AgentBookingItem'
          maxItems: 10
          minItems: 1
          title: Bookings
          type: array
        email:
          maxLength: 254
          minLength: 3
          title: Email
          type: string
      required:
      - email
      - bookings
      title: AgentBatchSubmission
      type: object
    HTTPValidationError:
      properties:
        detail:
          items:
            $ref: '#/components/schemas/ValidationError'
          title: Detail
          type: array
      title: HTTPValidationError
      type: object