All integrationsFilm, TV & Fandom
Star Wars API
Pull canonical Star Wars reference data into a workflow from SWAPI, the Star Wars API: the six films with their opening crawls, 82 characters, 60 planets, 37 species, 36 starships and 39 vehicles.
- actions
- 14
Actions
Steps a workflow can run in Star Wars API.
- Search Star WarsFind anything in SWAPI whose name matches some text, across the films, characters, planets, species, starships and vehicles at once. This is how a workflow turns what a person typed into the record the other actions take, and it is the only way there is: SWAPI has no search endpoint. "Tatooine" comes back as a planet and "Millennium Falcon" as a starship without the caller having to know which is which, and every match says what it is and why it matched.
- Get a filmGet one film in full: its episode number, director, producers, release date and opening crawl, plus its whole cast, its planets, its species and every craft in it, each one named. SWAPI gives those as bare URLs and has no way to expand them, so a film's forty characters would otherwise be forty more requests; here they are already resolved. Name the film by title, by episode or by id.
- List filmsList the six films, in either of the two orders people mean by "in order": by episode, which runs from The Phantom Menace, or by release date, which runs from A New Hope. Each film comes back with both numbers and its release date, so a workflow never has to guess which order it is holding.
- Get an opening crawlGet the opening crawl of one film, in a shape a message can actually use. SWAPI stores it typeset for a cinema screen, hard-wrapped at about thirty characters with carriage returns on every line, so pasting it into an email gives ragged half-lines. It comes back here three ways: as served, with the carriage returns taken out, and reflowed into the paragraphs it was written in.
- Get a characterGet one character in full: height and mass in both metric and imperial, hair, skin and eye colour, gender, birth year as a number you can compare, and their homeworld, species, films and craft, each one named rather than left as the bare URL SWAPI returns. Name them however you have them, a name or an id.
- List charactersBrowse SWAPI's 82 characters, a page at a time, narrowed to the ones worth looking at: one film's cast, one species, one homeworld or one gender. Order them by name, by height, by mass or by age, which works because the birth years are parsed off the in-universe calendar rather than compared as text.
- Get a planetGet one planet in full: its climate and terrain split into lists, its gravity, and its diameter, population, day length and year length as numbers you can compare rather than the strings SWAPI quotes them as. The characters from it and the films it appears in come back named.
- List planetsBrowse SWAPI's 60 planets, a page at a time, narrowed by climate, by terrain or to the ones in one film. Climate and terrain are matched as words inside SWAPI's own comma-joined strings, so "desert" finds a planet recorded as "desert, mountains" too. Order them by name, population, diameter or year length.
- Get a speciesGet one species in full: its classification and designation, its language, its average height and lifespan, and the colours it comes in, split into lists rather than left as comma-joined strings. Its homeworld, its named characters and its films come back named.
- List speciesBrowse SWAPI's 37 species, a page at a time, narrowed by classification, designation, language or film. The classifications are written by hand rather than picked from a vocabulary, so both "mammal" and "mammals" are in the data and both spellings are matched. Order them by name, classification, height or lifespan.
- Get a starshipGet one starship in full: its model, manufacturer, class, cost, length, crew, capacity, hyperdrive rating and sublight speed, with every quoted number parsed into one you can compare. Its pilots and films come back named. A starship in SWAPI is a craft with a hyperdrive; the ones without are vehicles, and the two share one set of ids, so an id that is not a starship is reported as whichever vehicle it is.
- List starshipsBrowse SWAPI's 36 starships, a page at a time, narrowed by class, manufacturer, pilot or film. SWAPI's casing is inconsistent ("Starfighter" and "starfighter" are both in the data), so the class filter matches either. Order them by name, length, cost or crew.
- Get a vehicleGet one vehicle in full: its model, manufacturer, class, cost, length, crew and capacity, with every quoted number parsed into one you can compare. Its pilots and films come back named. A vehicle in SWAPI is a craft with no hyperdrive; the ones with are starships, and the two share one set of ids, so an id that is not a vehicle is reported as whichever starship it is.
- List vehiclesBrowse SWAPI's 39 vehicles, a page at a time, narrowed by class, manufacturer, pilot or film. SWAPI's spelling is inconsistent ("air speeder" and "airspeeder" are both in the data), so match on the part of the class you are sure of. Order them by name, length, cost or crew.
No actions match that.
Automate Star Wars API with Lodol.
Connect Star Wars API and ask your AI for your first workflow.
Free plan, no credit card