Hotel chain
I Prefer rates & I Prefer (Preferred Hotels) points API
Preferred Hotels & Resorts cash and member rates and I Prefer points, from the rate calendar that serves 18 months per call.
- Public rate
- ✓
- Member rate
- ✓
- Award points
- ✓
- Native calendar
- ✓
- Comp set batch
- –
- Credits per shop
- 1
- Comp set, per hotel
- 0.25
- Calendar, per night
- 0.1
- ·Rates and points both come from the chain's rate-calendar service; no login.
- ·Self-serve nowhere else.
curl -s https://api.directrate.dev/v1/shop \
-H "x-api-key: $DIRECTRATE_API_KEY" \
-H "content-type: application/json" \
-d '{
"chain": "iprefer",
"hotel_code": "<hotel_code>",
"checkin": "2027-01-09",
"los": 1
}'import os
import requests
r = requests.post(
"https://api.directrate.dev/v1/shop",
headers={"x-api-key": os.environ["DIRECTRATE_API_KEY"]},
json={
"chain": "iprefer",
"hotel_code": "<hotel_code>",
"checkin": "2027-01-09",
"los": 1,
},
)
r.raise_for_status()
print(r.headers.get("x-credits-charged"), r.json())const res = await fetch("https://api.directrate.dev/v1/shop", {
method: "POST",
headers: {
"x-api-key": process.env.DIRECTRATE_API_KEY,
"content-type": "application/json",
},
body: JSON.stringify({
"chain": "iprefer",
"hotel_code": "<hotel_code>",
"checkin": "2027-01-09",
"los": 1
}),
});
if (!res.ok) throw new Error(`HTTP ${res.status}`);
console.log(res.headers.get("x-credits-charged"), await res.json());Find an I Prefer code first: GET /v1/hotels?chain=iprefer&q=<city> (1 credit).
curl -s "https://api.directrate.dev/v1/hotels?chain=iprefer&q=Chicago,%20IL&radius=5" \
-H "x-api-key: $DIRECTRATE_API_KEY"{
"chain": "iprefer",
"hotel": {
"code": "<hotel_code>",
"name": "…",
"currency": "USD"
},
"checkin": "2027-01-09",
"los": 1,
"status": "available",
"rates": [
{
"room_name": "…",
"rate_name": "…",
"rate_type": "bar",
"member_only": false,
"price_per_night": 0,
"price_per_night_after_tax": 0,
"tax_included": true,
"currency": "USD",
"points_per_night": null
}
],
"lowest": {
"bar": 0,
"member": 0,
"bar_after_tax": 0,
"member_after_tax": 0
},
"shopped_at": "…",
"source": "live",
"cache_age_sec": 0
}ShopResponse — the full schema is in the API reference.
No snapshot response is shown for I Prefer on this page; the shape above is the contract every chain answers in. Run it live with a free key.
FAQ
I Prefer questions
Do I need an I Prefer (Preferred Hotels) account?
No. The member rate is what I Prefer quotes an anonymous visitor who is not logged in; it comes back as its own rows with member_only: true and under lowest.member. Points come back the same way, without any login.
What does an I Prefer shop cost?
1 credit live, a quarter of that from cache; errors and unknown codes are free. On the Free plan's 250 credits that is 250 shops a month; on Growth (15,000) 15,000. A /calendar night is 0.1 credit through I Prefer's native calendar.
Where do I find I Prefer hotel codes?
GET /hotels?chain=iprefer&q=<city or address> returns I Prefer's own property codes around a place, nearest first. Codes are the chain's internal identifiers, not shared with any other chain.
Other sources