Ctrip Power BI

Get Ctrip rates into Power BI.

One endpoint call, the Power BI setup steps, and a field-to-column map. Then keep it refreshing on a schedule.

50 free requests on signup No credit card

Trusted by hospitality teams at

The pieces

One source, one destination.

Ctrip Ctrip

Ctrip adds China-focused hotel inventory, Chinese-language guest reviews, and public advertised room pricing for portfolios that need stronger mainland coverage. On this page those prices feed Power BI, one row per date.

Power BI Power BI

Power BI talks to REST APIs natively through Power Query. No connector to install: the Web source plus one request header gets the JSON in, and scheduled refresh keeps it current. Here it becomes the front end for live Ctrip rates.

The call

One endpoint returns Ctrip rates.

The Ctrip Hotel Rooms and Lowest Price endpoint returns clean JSON for one hotel. Send your key in the X-API-Key header. See the endpoint docs for every parameter.

Setup

Wire Power BI to the endpoint.

  1. 01

    Create a StayAPI account and copy your API key from the dashboard.

  2. 02

    In Power BI Desktop, choose Get Data > Web > Advanced.

  3. 03

    Enter the endpoint URL and add an x-api-key request header.

  4. 04

    Expand the JSON in Power Query, load it, and set a scheduled refresh in the service.

Config

Power Query: one M expression.

This uses the real endpoint URL with the example 杭州临平万丽酒店 id. Swap in your hotel id and your API key.

query.m
let
  Source = Json.Document(
    Web.Contents(
      "https://api.stayapi.com/v1/ctrip/hotel/rooms/18078321",
      [ Headers = [ #"x-api-key" = "YOUR_API_KEY" ] ]
    )
  ),
  Records = Source[data][reviews],
  Table   = Table.FromList(Records, Splitter.SplitByNothing()),
  Expanded = Table.ExpandRecordColumn(
    Table, "Column1", { "check_in", "check_out", "nights", "adults" }
  )
in
  Expanded

50 free requests on signup, no card.

Field mapping

Response fields to columns.

Each field from the Ctrip Hotel Rooms and Lowest Price response, and a suggested column name.

Response field Column
hotel_id hotel_id
check_in check_in
check_out check_out
nights nights
adults adults
children_ages children_ages
rooms_requested rooms_requested
currency currency
available available
lowest_price lowest_price
amount amount
basis basis
room_prices_included room_prices_included
room_price_limitation room_price_limitation
room_types room_types
price_visibility price_visibility
total_room_types total_room_types
total_rate_plans total_rate_plans
Result

What it looks like in Power BI.

The fields from the mapping above land as columns: hotel_id, check_in, check_out, nights. Refreshed on the schedule you set.

The columns you get

Every row is one hotel record from the Ctrip Hotel Rooms and Lowest Price response. These fields become columns:

  • hotel_id
  • check_in
  • check_out
  • nights
  • adults
  • children_ages

Get your key.

Sign up, copy your key into the snippet above, and pull live Ctrip rates into Power BI.

01 · the fast path

Try it free

50 free requests on signup. Fastest way to see if the schema fits.

Start free
  • Live API key in 30 seconds
  • No credit card required
  • Same schema as paid
02 · talk to us

Talk through your pipeline

15 minutes. Volume, endpoint mix, and where the data lands. Walk out with a quote.

Book a demo
  • Quote on the call, not after
  • Engineering, not sales
  • No deck, no slides