Ratehawk
Ratehawk API Integration complete video guide
Last updated
Ratehawk API Integration complete video guide
This guide explains how to integrate the RateHawk API into your PHPTRAVELS-based travel booking system.
The integration allows you to:
Search hotels in real-time
Display hotel content locally (fast loading)
Process bookings with live pricing
Manage bookings with PNR confirmation
Steps:
Register with RateHawk and get API access
Collect the following credentials:
API Key
Key ID
Key Type
Go to your admin panel:
Enter your API credentials
Click Test API Connection
β Expected Result:
Search API working
Booking API working
Management API working
To handle large hotel data, a separate database is required.
Steps:
Create a new database via:
CPanel / CloudPanel / Hosting Panel
Save credentials:
Database Name
Username
Password
Host
Add these details in your system settings
β This ensures:
Secure connection
Better performance
Scalable data handling
RateHawk provides a large dataset (30GB+) for hotel content.
Steps:
Download the database file from RateHawk or from our server https://modules.b-cdn.net/db.jsonl
Rename file to:
Upload file to:
Go to Admin Panel β Run Import Tool
Import process can take 12β24+ hours
Depends on server performance
Keep process running (do not stop)
Recommended: Use VPS or dedicated server
Once data is imported:
Uses local database for:
Hotel names
Images
Descriptions
Locations
π Result: Fast loading search results
Pulled in real-time from RateHawk API
π Result: Accurate live pricing
User selects hotel
System fetches live rates
Payment processed (e.g., Stripe)
Booking confirmed
β Output:
Booking status: Confirmed
PNR generated
Stored in admin panel
Use high-performance server (8GB+ RAM recommended)
Run import via CLI or background process
Enable caching for better speed
Monitor logs during import
We provide a complete travel booking system with:
Hotels (RateHawk, Hotelbeds, Agoda)
Flights (Amadeus, Travelport, Duffel)
Tours (Viator, Tiqets)
Cars & Transfers
B2B + B2C system
π Book a free meeting: https://phptravels.com/meeting
Last updated
Modules > Stays > RateHawkdb.json/modules/stays/ratehawk/content