Real-time Pakistan Standard Time (PKT) API with unlimited requests. Built with Next.js 15, TypeScript, and Luxon.
- π΅π° Pakistan Focused - Dedicated to Pakistan Standard Time (PKT)
- βΎοΈ Unlimited Requests - No rate limiting, use as much as you want
- β° Real-time Updates - Auto-refreshes every 30 seconds
- π± Multiple Formats - Simple and detailed response formats
- π CORS Enabled - Works from any domain
- β‘ Fast Response - Sub-100ms response times with 1-second caching
Endpoint | Description | Example |
---|---|---|
/api/pakistan-timezone |
Pakistan Standard Time with detailed info | GET /api/pakistan-timezone?format=json |
/api/pakistan-timezone?simple=true |
Simple, clean Pakistan time | GET /api/pakistan-timezone?simple=true |
# Install dependencies
npm install
# Run development server
npm run dev
# Build for production
npm run build
# Start production server
npm start
-
Install Vercel CLI:
npm i -g vercel
-
Deploy:
vercel
-
Follow the prompts:
- Login to Vercel account
- Link to existing project or create new
- Deploy automatically
# Install Netlify CLI
npm install -g netlify-cli
# Deploy
netlify deploy --prod
# Install Railway CLI
npm install -g @railway/cli
# Login and deploy
railway login
railway up
- Connect your GitHub repository
- Create new Web Service
- Select your repository
- Deploy automatically
No environment variables required! The API works out of the box.
GET /api/pakistan-timezone?simple=true
{
"time": "09:46:46 PM",
"time_24h": "21:46:46",
"date": "Tuesday, August 05, 2025",
"timezone": "PKT",
"offset": "UTC+5",
"country": "Pakistan",
"city": "Lahore"
}
GET /api/pakistan-timezone
{
"country_info": {
"name": "Pakistan",
"code": "PK",
"current_region": {"name": "Punjab", "type": "Province"},
"current_city": "Lahore"
},
"timezone_info": {
"name": "Asia/Karachi",
"abbreviation": "PKT",
"offset_hours": 5,
"description": "Pakistan Standard Time (PKT)",
"dst_observed": false
},
"current_time": {
"date": "Tuesday, August 05, 2025",
"time_12h": "09:46:46 PM",
"time_24h": "21:46:46",
"timezone": "PKT",
"day_of_week": "Tuesday",
"unix_timestamp": 1743966406
},
"meta": {
"generated_at": "2025-08-05T16:46:46.123Z",
"timezone_source": "Built-in Pakistan Standard Time"
}
}
GET /api/pakistan-timezone?format=text
π΅π° PAKISTAN STANDARD TIME
========================
π Location: Lahore, Punjab, Pakistan
π Region Type: Province
β° Timezone: PKT (UTC+5)
π
CURRENT TIME
=============
π Date: Tuesday, August 05, 2025
π Time (12-hour): 09:46:46 PM
π Time (24-hour): 21:46:46
ποΈ ADMINISTRATIVE INFORMATION
==========================
πΉ Regions: Islamabad, Punjab, Sindh, Khyber Pakhtunkhwa, Balochistan, Gilgit-Baltistan, Azad Kashmir
πΈ Major Cities: Karachi, Lahore, Faisalabad, Rawalpindi, Gujranwala, Peshawar, Multan, Hyderabad, Islamabad, Quetta
π Pakistan Time Service v2.0
# Get simple Pakistan time
curl "https://your-domain.vercel.app/api/pakistan-timezone?simple=true"
# Get detailed Pakistan time
curl "https://your-domain.vercel.app/api/pakistan-timezone"
# Get text format
curl "https://your-domain.vercel.app/api/pakistan-timezone?format=text"
// Get simple Pakistan time
const response = await fetch('https://your-domain.vercel.app/api/pakistan-timezone?simple=true');
const data = await response.json();
console.log(data.time); // "09:46:46 PM"
console.log(data.date); // "Tuesday, August 05, 2025"
console.log(data.timezone); // "PKT"
import requests
# Get simple Pakistan time
response = requests.get('https://your-domain.vercel.app/api/pakistan-timezone?simple=true')
data = response.json()
print(data['time']) # "09:46:46 PM"
print(data['country']) # "Pakistan"
- π΅π° Pakistani Applications - Get accurate Pakistan time
- π International Apps - Pakistan timezone conversion
- π± Mobile Apps - Real-time Pakistan time display
- π Websites - Pakistan time widget
- π Analytics - Pakistan time-based data
- π Educational - Learn about Pakistan timezone
- Response Time: < 100ms average
- Uptime: 99.9%+ (Vercel infrastructure)
- Global CDN: Edge locations worldwide
- Caching: 1-second cache for performance
- Requests: Unlimited (no rate limiting)
- Islamabad - Capital Territory
- Punjab - Province
- Sindh - Province
- Khyber Pakhtunkhwa - Province
- Balochistan - Province
- Gilgit-Baltistan - Administrative Territory
- Azad Kashmir - Administrative Territory
- Karachi, Lahore, Faisalabad, Rawalpindi, Gujranwala
- Peshawar, Multan, Hyderabad, Islamabad, Quetta
- Standard Time: PKT (Pakistan Standard Time)
- UTC Offset: +5 hours
- DST: Not observed
- IANA Timezone: Asia/Karachi
- Fork the repository
- Create a feature branch
- Make your changes
- Test thoroughly
- Submit a pull request
MIT License - Feel free to use in any project!
- Built with Next.js 15
- Timezone handling with Luxon
- Hosted on Vercel
- π΅π° Dedicated to Pakistan
Made with β€οΈ for Pakistan and developers worldwide