🎬
Movie API
Base URL: https://movie.dooapi2.com
แนะนำ Endpoints /api/movie/:id /api/movies ข้อผิดพลาด แคช & Rate limit

เอกสาร Movie API

ใช้สำหรับดึงข้อมูลภาพยนตร์เพื่อแสดงผลบนเว็บไซต์/แอป

Base URL: https://movie.dooapi2.com
ตั้งค่าได้จากตัวแปร API_BASE_URL ในไฟล์ .env

Endpoints

GET /api/movie/:id

ตัวอย่าง:

curl -s https://movie.dooapi2.com/api/movie/11 | jq

Response

{
  "code": 1,
  "msg": "ok",
  "data": {
    "URL_player": { "server_data": {
      "thai_dub": "https://.../play/xxx",
      "soundtrack": "https://.../play/yyy"
    }},
    "id": 11,
    "name": "Harry Potter and the Philosopher's Stone (2001)",
    "slug": "harry-potter-and-the-philosophers-stone",
    "Audio_Subtitle_Options": "thai dub",
    "year": "2001",
    "release": "12-28-2023",
    "genre": ["ผจญ","จินตนาการ"],
    "poster_url": "https://image.tmdb.org/...",
    "backdrop_url": "https://image.tmdb.org/...",
    "country": ["United Kingdom","United States of America"],
    "Synopsis": "..."
  }
}

คำอธิบายฟิลด์

GET /api/movies

พารามิเตอร์:

ตัวอย่าง:

curl -s "https://movie.dooapi2.com/api/movies?q=harry&year=2001&audio=thai%20dub&genre=จินตนาการ&page=1&limit=10" | jq

Response

{
  "code": 1,
  "msg": "ok",
  "data": {
    "items": [ { /* โครงเดียวกับ /api/movie/:id.data */ } ],
    "page": 1,
    "limit": 10,
    "total": 123,
    "pagecount": 13
  }
}

การจัดการข้อผิดพลาด

{
  "code": 0,
  "msg": "not found",
  "data": null
}

แคช & Rate limit