← Films

Attack of the Clones

Episode2
DirectorGeorge Lucas
ProducerRick McCallum
Release date2002-05-16

Opening crawl

There is unrest in the Galactic Senate. Several thousand solar systems have declared their intentions to leave the Republic. This separatist movement, under the leadership of the mysterious Count Dooku, has made it difficult for the limited number of Jedi Knights to maintain peace and order in the galaxy. Senator Amidala, the former Queen of Naboo, is returning to the Galactic Senate to vote on the critical issue of creating an ARMY OF THE REPUBLIC to assist the overwhelmed Jedi....

curl

curl https://swapi.build/api/films/5

JavaScript

fetch('https://swapi.build/api/films/5').then((r) => r.json())

Python

requests.get('https://swapi.build/api/films/5').json()

MCP

Connect your agent once:

claude mcp add --transport http swapi-build https://swapi.build/mcp

then call the tool sw_get with:

{"resource":"FILMS","id":5}
GET /api/films/5 200
{
  "characters": [
    "https://swapi.build/api/people/2",
    "https://swapi.build/api/people/3",
    "https://swapi.build/api/people/6",
    "https://swapi.build/api/people/7",
    "https://swapi.build/api/people/10",
    "https://swapi.build/api/people/11",
    "https://swapi.build/api/people/20",
    "https://swapi.build/api/people/21",
    "https://swapi.build/api/people/22",
    "https://swapi.build/api/people/33",
    "https://swapi.build/api/people/35",
    "https://swapi.build/api/people/36",
    "https://swapi.build/api/people/40",
    "https://swapi.build/api/people/43",
    "https://swapi.build/api/people/46",
    "https://swapi.build/api/people/51",
    "https://swapi.build/api/people/52",
    "https://swapi.build/api/people/53",
    "https://swapi.build/api/people/58",
    "https://swapi.build/api/people/59",
    "https://swapi.build/api/people/60",
    "https://swapi.build/api/people/61",
    "https://swapi.build/api/people/62",
    "https://swapi.build/api/people/63",
    "https://swapi.build/api/people/64",
    "https://swapi.build/api/people/65",
    "https://swapi.build/api/people/66",
    "https://swapi.build/api/people/67",
    "https://swapi.build/api/people/68",
    "https://swapi.build/api/people/69",
    "https://swapi.build/api/people/70",
    "https://swapi.build/api/people/71",
    "https://swapi.build/api/people/72",
    "https://swapi.build/api/people/73",
    "https://swapi.build/api/people/74",
    "https://swapi.build/api/people/75",
    "https://swapi.build/api/people/76",
    "https://swapi.build/api/people/77",
    "https://swapi.build/api/people/78",
    "https://swapi.build/api/people/82"
  ],
  "created": "2014-12-20T10:57:57.886000Z",
  "director": "George Lucas",
  "edited": "2014-12-20T20:18:48.516000Z",
  "episode_id": 2,
  "opening_crawl": "There is unrest in the Galactic\r\nSenate. Several thousand solar\r\nsystems have declared their\r\nintentions to leave the Republic.\r\n\r\nThis separatist movement,\r\nunder the leadership of the\r\nmysterious Count Dooku, has\r\nmade it difficult for the limited\r\nnumber of Jedi Knights to maintain \r\npeace and order in the galaxy.\r\n\r\nSenator Amidala, the former\r\nQueen of Naboo, is returning\r\nto the Galactic Senate to vote\r\non the critical issue of creating\r\nan ARMY OF THE REPUBLIC\r\nto assist the overwhelmed\r\nJedi....",
  "planets": [
    "https://swapi.build/api/planets/1",
    "https://swapi.build/api/planets/8",
    "https://swapi.build/api/planets/9",
    "https://swapi.build/api/planets/10",
    "https://swapi.build/api/planets/11"
  ],
  "producer": "Rick McCallum",
  "release_date": "2002-05-16",
  "species": [
    "https://swapi.build/api/species/1",
    "https://swapi.build/api/species/2",
    "https://swapi.build/api/species/6",
    "https://swapi.build/api/species/12",
    "https://swapi.build/api/species/13",
    "https://swapi.build/api/species/15",
    "https://swapi.build/api/species/28",
    "https://swapi.build/api/species/29",
    "https://swapi.build/api/species/30",
    "https://swapi.build/api/species/31",
    "https://swapi.build/api/species/32",
    "https://swapi.build/api/species/33",
    "https://swapi.build/api/species/34",
    "https://swapi.build/api/species/35"
  ],
  "starships": [
    "https://swapi.build/api/starships/21",
    "https://swapi.build/api/starships/32",
    "https://swapi.build/api/starships/39",
    "https://swapi.build/api/starships/43",
    "https://swapi.build/api/starships/47",
    "https://swapi.build/api/starships/48",
    "https://swapi.build/api/starships/49",
    "https://swapi.build/api/starships/52",
    "https://swapi.build/api/starships/58"
  ],
  "title": "Attack of the Clones",
  "url": "https://swapi.build/api/films/5",
  "vehicles": [
    "https://swapi.build/api/vehicles/4",
    "https://swapi.build/api/vehicles/44",
    "https://swapi.build/api/vehicles/45",
    "https://swapi.build/api/vehicles/46",
    "https://swapi.build/api/vehicles/50",
    "https://swapi.build/api/vehicles/51",
    "https://swapi.build/api/vehicles/53",
    "https://swapi.build/api/vehicles/54",
    "https://swapi.build/api/vehicles/55",
    "https://swapi.build/api/vehicles/56",
    "https://swapi.build/api/vehicles/57"
  ]
}