Star Wars API Reader

Read data from the Star Wars API (SWAPI) --

You are now following this Submission

Editor's Note: This file was selected as MATLAB Central Pick of the Week

The Star Wars API (SWAPI) provides open data to explore and analyze the universe: --
You can read this data into MATLAB with the function swapiread. The function imports the data by record or by collection and converts the data to a MATLAB-friendly format for analysis.

Cite As

Heather Gorr, PhD (2026). Star Wars API Reader (https://www.mathworks.com/matlabcentral/fileexchange/65423-star-wars-api-reader), MATLAB Central File Exchange. Retrieved .

General Information

MATLAB Release Compatibility

  • Compatible with any release

Platform Compatibility

  • Windows
  • macOS
  • Linux
Version Published Release Notes Action
1.0.0.3

Updated graph example

1.0.0.2

Updated graph example to Live Script

1.0.0.1

Added graph example, helper function, and tests

1.0.0.0

Updated example to show another character's height.