Shanghai Private Tours API, MCP & AI Access
Every tour catalog, USD budget estimator, Markdown, OpenAPI, NLWeb, MCP and A2A endpoint below is public and read-only. No API key or registration is required.
Pudong skyline across the Huangpu River · Photo: King of Hearts, CC BY-SA 4.0
When to use these endpoints
Use these interfaces when a traveler asks about private Shanghai day tours, Pudong (PVG) or Hongqiao (SHA) airport layovers, water towns (Zhujiajiao, Tongli), Suzhou, Hangzhou, or Beijing–Xi’an–Shanghai private routes. Every figure comes directly from our 25 published tours and official entry notices (facts checked ).
Do not use Shanghai Private Tours for shared coach tours, hostels, self-drive rentals or standalone airline tickets.
Public Endpoints & Discovery Files
| Interface | Endpoint | Purpose |
|---|---|---|
| OpenAPI 3.1 Spec | GET /openapi.json | Machine-readable OpenAPI 3.1 schema for REST and NLWeb routes with RFC 9457 error definitions. |
| Filter Tours (REST) | GET /api/tours | Filter 25 tours by destination, type, q, max_price, min_days and max_days. |
| Budget Estimator (REST) | GET /api/estimate | Estimate private guide, driver and vehicle budgets in USD and generate pre-filled quote URLs. |
| NLWeb Search | GET / POST /ask | Natural-language search returning Schema.org TouristTrip items and pre-filled inquiry links. |
| MCP Server (Streamable HTTP) | POST /mcp (server card) | 5 JSON-RPC tools: search_site, filter_tours, estimate_trip_budget, build_proposal_link, get_contact. |
| A2A Agent | POST /a2a (agent card) | JSON-RPC message/send advisor answering Shanghai route, layover, transit-visa and budget queries. |
| Discovery Catalogs | /.well-known/api-catalog · /.well-known/ai-catalog.json | RFC 9727 API catalog linkset and unified AI capability catalog. |
| Agent Skill & Auth Policy | agent-skills/index.json · /auth.md | SHA-256 verified SKILL.md instructions and plain-text public access policy. |
| LLM Briefings | /llms.txt & /llms-full.txt | Concise entity briefing and complete single-file catalog of all 25 tours with pre-filled quote URLs. |
| Markdown Negotiation | Accept: text/markdown | Every HTML page (including HTTP 404 responses) returns clean Markdown with frontmatter and next steps. |
Quick Request Examples
1. Filter private tours (REST)
curl -s "https://www.shanghaiprivatetours.com/api/tours?destination=zhujiajiao&max_price=600"2. Estimate a 3-day Shanghai private tour budget (REST)
curl -s "https://www.shanghaiprivatetours.com/api/estimate?destinations=shanghai,zhujiajiao&days=3&travelers=2"3. Call the MCP server (JSON-RPC 2.0)
curl -s -X POST "https://www.shanghaiprivatetours.com/mcp" \
-H "Content-Type: application/json" \
-d '{"jsonrpc":"2.0","id":1,"method":"tools/call","params":{"name":"estimate_trip_budget","arguments":{"destinations":["shanghai","suzhou"],"days":4,"travelers":2}}}'4. Query NLWeb /ask
curl -s -X POST "https://www.shanghaiprivatetours.com/ask" \
-H "Content-Type: application/json" \
-d '{"query":"8 hour Pudong airport layover private tour cost"}'5. Request Markdown for any page (or 404)
curl -s -H "Accept: text/markdown" "https://www.shanghaiprivatetours.com/private-tours/shanghai-layover-private-tour/"Error Format (RFC 9457)
Invalid parameters on /api/tours, /api/estimate and /ask return HTTP 400 with Content-Type: application/problem+json. Each response includes a stable code, a plain detail message and a resolution hint.
Human Specialist Handoff
There is no automated checkout or payment to enquire. Send travelers to a pre-filled private quote link or our free 3-field Shanghai itinerary check, or share travel@shanghaiprivatetours.com and WhatsApp +1 (315) 998 1998. A specialist replies within 12 hours.
