Spiral gives your agent every tool with one account. Browse the tools →

opencode · Maps & Reviews

How to Use Agoda hotel search in opencode

Get properties for specific stay dates in a city or near a landmark, including nightly and stay totals. Use it to build a shortlist before checking individual rooms.

Prompts to try with Agoda hotel search in opencode

Copy an example into opencode, or ask in your own words.

Use Agoda hotel search for Tokyo, April 10–13, 2027, for two adults in one room. Adapt my project's comparison view to the returned hotel results.

Agoda hotel searchopencode
Try asking
  • Use Agoda hotel search to look this up and give me the result as a table. Save the result in ./assets.

  • Pull the latest numbers from Agoda hotel search and tell me what changed since last week.

  • Check Agoda hotel search and summarize what you find in three bullet points.

  • Pull the newest data from Agoda hotel search and give me the result as a table.

How to set up Agoda hotel search in opencode

Pick the way that suits you. Each takes about two minutes.

Use Spiral's MCP server

  1. Add the server

    Leave out --global to add Spiral to the current project only. No header and no client ID or secret: opencode registers itself with Spiral.

    opencode mcp add spiral --global --url https://api.spiral.ai/mcp
  2. Sign in

    Your browser opens. Sign in to Spiral, pick the organization and click Authorize, then return to the terminal. No API key. Inside opencode, /mcps starts the same sign-in.

    opencode mcp auth spiral
  3. Check it

    Spiral shows as connected.

    opencode mcp list

Use the Spiral skill

  1. Send opencode this message

    Your agent reads Spiral's skill and sets itself up.

    set up https://spiral.ai/SKILL.md
  2. Sign in or paste a key

    Approve Spiral in the browser, or give the agent a key from the console.

Use the Spiral CLI

  1. Install and sign in

    Installs the Spiral CLI, signs you in and adds its skill to your coding agents.

    npx -y spiral-cli@latest init

Call the Spiral API

  1. Create an API key

    In the console, under API keys.

  2. Run Agoda hotel search

    One request; the result comes back by polling or a webhook.

    curl https://api.spiral.ai/v1/runs \
      -H "Authorization: Bearer $SPIRAL_API_KEY" \
      -H "Content-Type: application/json" \
      -H "Idempotency-Key: $(uuidgen)" \
      -d '{
        "provider": "alexandria",
        "model": "agoda-com/hotels/search",
        "input": {
          "city_id": 1
        }
      }'

Then paste one of the prompts above: opencode finds Agoda hotel search on Spiral, shows the price and runs it.

Agoda hotel search providers and prices

Spiral runs Agoda hotel search through Alexandria. Open a card for today's price, with every fee included.

AlexandriaMaps & Reviews
Agoda stays · Search
agoda-com/hotels/search

Settings you can ask for

Ask opencode for any of these in your prompt.

SettingAllowed valuesDefaultDescription
Page1 to 1001

page

Sortrecommended, price_asc, price_desc, or review_scorerecommended

sort

Rooms1 to 91

rooms

Adults1 to 362

adults

Nights1 to 301

nights

City IDa number from 1

Agoda city id from suggest (kind city, or the city_id of any suggestion). With landmark_id it only scopes content; alone it searches the whole city.

Children0 to 90

children

Page size1 to 4520

Agoda may add sponsored rows on top of the requested size.

Landmark IDa number from 1

Agoda landmark id from suggest (kind landmark). Either this or city_id.

Every API field of Agoda stays · Search is on its tool page: open its card above.

What can you do with Agoda hotel search in opencode?

Build a trip planner that takes a destination idea through hotel comparison to a practical stay brief. Keep Agoda's place matches, room offers, published FAQs, and guest feedback distinct in the project's data model.

Choose a weekend destination and stay

Start with destination ideas, resolve place names, and search a fixed weekend. Compare room terms, published FAQs, and guest feedback before selecting a stay.

Prepare an office retreat shortlist

Use destination lists to propose cities and suggestions to identify each location. Compare dated hotel results, room offers, meeting-related FAQs, and guest feedback for the retreat brief.

Compare domestic and international trip ideas

Build two destination shortlists, resolve the cities, and search identical travel dates. Evaluate each option through room cancellation terms, property FAQs, and published guest experiences.

Evaluate a travel assistant's answers

Test destination discovery, ambiguous place matching, hotel shortlisting, and room selection with real Agoda results. Check whether the assistant keeps property FAQs, guest opinions, and room cancellation terms distinct.

Find accommodation near an event venue

Identify a venue such as Tokyo International Forum, search nearby stays, and compare room offers. Use FAQs and guest reviews to investigate practical concerns before choosing.

Questions about Agoda hotel search in opencode

Can opencode use Agoda hotel search?

Yes. Add Spiral to opencode as an MCP server, and opencode can find and run Agoda hotel search like any built-in tool.

How much does Agoda hotel search cost in opencode?

$0.00873 per call. You pay from your Spiral balance as you go, with no subscription, and a failed run is not charged. Your opencode plan is separate.

Do I need an Alexandria account to use Agoda hotel search in opencode?

No. Spiral runs Agoda hotel search on its own Alexandria account. You sign in to Spiral once and never paste a key.

How long does it take to set up Agoda hotel search in opencode?

About two minutes: add the server, then sign in, then check it.

Does opencode wait while Agoda hotel search runs?

Agoda hotel search runs in the background. opencode starts the run, checks on it and gives you the json when it's ready.

Does Agoda cover accommodation outside Asia?

Yes. Agoda describes a worldwide network of over 4.5 million hotels and vacation rentals. That network figure does not establish how many properties a particular query will return.

Who writes Agoda's guest reviews?

Agoda requests reviews from customers after checkout and moderates submissions before publication. Its review scores run from 1 to 10, with separate categories such as cleanliness and location.

How far back do Agoda reviews go?

Agoda may accept submissions only within 12 months after checkout and may stop showing reviews older than up to 36 months. An ownership change can also cause older reviews to disappear.

Are new guest reviews published immediately?

Agoda says each review must be approved by its content team before appearing on the website. Review results therefore reflect published submissions, with moderation occurring before publication.

Does Agoda independently verify hotel star ratings?

No. Star ratings are supplied by travel suppliers, and Agoda says it does not independently verify them or guarantee consistency with other platforms.

Get started

Start using Agoda hotel search in opencode

One Spiral account for every tool your agent needs. No subscription; you pay per run.

Paste this into opencode:

Set up opencode

set up https://spiral.ai/SKILL.md
Are you an AI agent? See setup options