← Films

The Empire Strikes Back

Episode5
DirectorIrvin Kershner
ProducerGary Kurtz, Rick McCallum
Release date1980-05-17

Opening crawl

It is a dark time for the Rebellion. Although the Death Star has been destroyed, Imperial troops have driven the Rebel forces from their hidden base and pursued them across the galaxy. Evading the dreaded Imperial Starfleet, a group of freedom fighters led by Luke Skywalker has established a new secret base on the remote ice world of Hoth. The evil lord Darth Vader, obsessed with finding young Skywalker, has dispatched thousands of remote probes into the far reaches of space....

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/films/2').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":2}
GET /api/films/2 200
{
  "characters": [
    "https://swapi.build/api/people/1",
    "https://swapi.build/api/people/2",
    "https://swapi.build/api/people/3",
    "https://swapi.build/api/people/4",
    "https://swapi.build/api/people/5",
    "https://swapi.build/api/people/10",
    "https://swapi.build/api/people/13",
    "https://swapi.build/api/people/14",
    "https://swapi.build/api/people/18",
    "https://swapi.build/api/people/20",
    "https://swapi.build/api/people/21",
    "https://swapi.build/api/people/22",
    "https://swapi.build/api/people/23",
    "https://swapi.build/api/people/24",
    "https://swapi.build/api/people/25",
    "https://swapi.build/api/people/26"
  ],
  "created": "2014-12-12T11:26:24.656000Z",
  "director": "Irvin Kershner",
  "edited": "2014-12-15T13:07:53.386000Z",
  "episode_id": 5,
  "opening_crawl": "It is a dark time for the\r\nRebellion. Although the Death\r\nStar has been destroyed,\r\nImperial troops have driven the\r\nRebel forces from their hidden\r\nbase and pursued them across\r\nthe galaxy.\r\n\r\nEvading the dreaded Imperial\r\nStarfleet, a group of freedom\r\nfighters led by Luke Skywalker\r\nhas established a new secret\r\nbase on the remote ice world\r\nof Hoth.\r\n\r\nThe evil lord Darth Vader,\r\nobsessed with finding young\r\nSkywalker, has dispatched\r\nthousands of remote probes into\r\nthe far reaches of space....",
  "planets": [
    "https://swapi.build/api/planets/4",
    "https://swapi.build/api/planets/5",
    "https://swapi.build/api/planets/6",
    "https://swapi.build/api/planets/27"
  ],
  "producer": "Gary Kurtz, Rick McCallum",
  "release_date": "1980-05-17",
  "species": [
    "https://swapi.build/api/species/1",
    "https://swapi.build/api/species/2",
    "https://swapi.build/api/species/3",
    "https://swapi.build/api/species/6",
    "https://swapi.build/api/species/7"
  ],
  "starships": [
    "https://swapi.build/api/starships/3",
    "https://swapi.build/api/starships/10",
    "https://swapi.build/api/starships/11",
    "https://swapi.build/api/starships/12",
    "https://swapi.build/api/starships/15",
    "https://swapi.build/api/starships/17",
    "https://swapi.build/api/starships/21",
    "https://swapi.build/api/starships/22",
    "https://swapi.build/api/starships/23"
  ],
  "title": "The Empire Strikes Back",
  "url": "https://swapi.build/api/films/2",
  "vehicles": [
    "https://swapi.build/api/vehicles/8",
    "https://swapi.build/api/vehicles/14",
    "https://swapi.build/api/vehicles/16",
    "https://swapi.build/api/vehicles/18",
    "https://swapi.build/api/vehicles/19",
    "https://swapi.build/api/vehicles/20"
  ]
}