← Films

A New Hope

Episode4
DirectorGeorge Lucas
ProducerGary Kurtz, Rick McCallum
Release date1977-05-25

Opening crawl

It is a period of civil war. Rebel spaceships, striking from a hidden base, have won their first victory against the evil Galactic Empire. During the battle, Rebel spies managed to steal secret plans to the Empire's ultimate weapon, the DEATH STAR, an armored space station with enough power to destroy an entire planet. Pursued by the Empire's sinister agents, Princess Leia races home aboard her starship, custodian of the stolen plans that can save her people and restore freedom to the galaxy....

curl

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

JavaScript

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

Python

requests.get('https://swapi.build/api/films/1').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":1}
GET /api/films/1 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/6",
    "https://swapi.build/api/people/7",
    "https://swapi.build/api/people/8",
    "https://swapi.build/api/people/9",
    "https://swapi.build/api/people/10",
    "https://swapi.build/api/people/12",
    "https://swapi.build/api/people/13",
    "https://swapi.build/api/people/14",
    "https://swapi.build/api/people/15",
    "https://swapi.build/api/people/16",
    "https://swapi.build/api/people/18",
    "https://swapi.build/api/people/19",
    "https://swapi.build/api/people/81"
  ],
  "created": "2014-12-10T14:23:31.880000Z",
  "director": "George Lucas",
  "edited": "2014-12-20T19:49:45.256000Z",
  "episode_id": 4,
  "opening_crawl": "It is a period of civil war.\r\nRebel spaceships, striking\r\nfrom a hidden base, have won\r\ntheir first victory against\r\nthe evil Galactic Empire.\r\n\r\nDuring the battle, Rebel\r\nspies managed to steal secret\r\nplans to the Empire's\r\nultimate weapon, the DEATH\r\nSTAR, an armored space\r\nstation with enough power\r\nto destroy an entire planet.\r\n\r\nPursued by the Empire's\r\nsinister agents, Princess\r\nLeia races home aboard her\r\nstarship, custodian of the\r\nstolen plans that can save her\r\npeople and restore\r\nfreedom to the galaxy....",
  "planets": [
    "https://swapi.build/api/planets/1",
    "https://swapi.build/api/planets/2",
    "https://swapi.build/api/planets/3"
  ],
  "producer": "Gary Kurtz, Rick McCallum",
  "release_date": "1977-05-25",
  "species": [
    "https://swapi.build/api/species/1",
    "https://swapi.build/api/species/2",
    "https://swapi.build/api/species/3",
    "https://swapi.build/api/species/4",
    "https://swapi.build/api/species/5"
  ],
  "starships": [
    "https://swapi.build/api/starships/2",
    "https://swapi.build/api/starships/3",
    "https://swapi.build/api/starships/5",
    "https://swapi.build/api/starships/9",
    "https://swapi.build/api/starships/10",
    "https://swapi.build/api/starships/11",
    "https://swapi.build/api/starships/12",
    "https://swapi.build/api/starships/13"
  ],
  "title": "A New Hope",
  "url": "https://swapi.build/api/films/1",
  "vehicles": [
    "https://swapi.build/api/vehicles/4",
    "https://swapi.build/api/vehicles/6",
    "https://swapi.build/api/vehicles/7",
    "https://swapi.build/api/vehicles/8"
  ]
}