About swapi.info

SWAPI Reborn - Star Wars APIs & Explorer

The Star Wars API is the world's first quantified and programmatically-formatted set of Star Wars data. We're dedicated to providing a comprehensive and accessible resource for all the People, Films, Species, Starships, Vehicles, and Planets from the Star Wars universe.

This data is formatted in JSON and exposed via a RESTful API, allowing you to programmatically collect, analyze, and integrate Star Wars information into your projects.

Why swapi.info?

Recognizing the need for a reliable, fast, and freely accessible Star Wars API, swapi.info was born. This project is a commitment to the developer community, ensuring that the invaluable resource that helped kickstart many of our own learning journeys remains available for decades to come.

swapi.info is engineered for performance and accessibility:

  • Lightning Fast: Leveraging modern infrastructure and CDN backing, we deliver sub-50ms response times worldwide for our JSON-only GET APIs.
  • Always On: We boast 100% uptime, continuously monitored at status.swapi.info.
  • Completely Free & Open: There are no ads and no rate-limits. The project is open source, and the only operational cost is the annual domain registration for swapi.info.
  • Lightweight Hosting: Designed to be incredibly light on hosting resources, making it sustainable for the long term.

This is our way of giving back, providing a stable and performant platform for students, developers, and Star Wars fans to explore the galaxy far, far away without barriers.

Check out the documentation to get started consuming SWAPI data.

What Happened to the Original swapi.co?

Swapi.co... that's a name many in the developer community remember. Unfortunately, the originalswapi.co is no longer maintained, and the service has become unavailable.swapi.info was built to ensure that this invaluable resource continues to be available to everyone. We are committed to maintaining and expanding this API.

What Can You Use This For?

Use swapi.info to fetch a vast array of data from the Star Wars universe. This API is a fantastic educational resource for learning about API communication, data handling, and, of course, all things Star Wars. It's perfect for:

  • Learning to work with APIs
  • Building Star Wars-themed applications
  • Data analysis and visualization projects
  • Educational purposes

Example Fetch:

fetch('https://swapi.info/api/planets/1')
  .then(res => res.json())
  .then(data => console.log(data))
  .catch(err => console.error(err));

What are the Features?

swapi.info provides a RESTful API serving JSON-formatted data. Our platform is built as a static Next.js application, ensuring optimal performance and reliability. We leverage the strengths of:

  • Next.js: For a fast and modern web experience.
  • Vercel: For robust and scalable global hosting.
  • Cloudflare: As a Content Delivery Network (CDN) for our API's JSON files, guaranteeing low-latency access to data worldwide.

The entire project is open source. You can explore the codebase and contribute on GitHub.

Who Are You?

I am a Senior Software Engineer with over seven years of experience in crafting robust and performant software solutions. As a Full-Stack Developer, I specialize in building engaging, React-based frontends, always with a keen eye on both functionality and speed.

swapi.info is a personal passion project, born from a desire to give back to the developer community. The original SWAPI was a significant part of my own learning journey into the world of APIs and web development. My goal is to ensure this valuable resource remains alive, well-maintained, and freely accessible for a new generation of developers and Star Wars enthusiasts to learn from and build upon.

Regarding the Original Author

The original SWAPI project was built and maintained by Paul Hallett. We honor his pioneering work in making Star Wars data accessible to the developer community.

Copyright and Data Sources

Star Wars and all associated names are copyright Lucasfilm Ltd.

This project is open source and carries an MIT License.

All data is sourced from the swapi.dev project, which in turn collected it from open sources such as Wookiepedia. We aim to keep the data synchronized with updates from these sources to ensure accuracy and completeness.

Contributors & Acknowledgements

The original SWAPI would not have been possible without contributions from:

  • Paul Hallett
  • Owen Hallett
  • Carvilsi
  • Andrea Stagi
  • Juriy Bura

We thank them for providing a solid framework and inspiration.

A special thank you to Vercel and Cloudflare for their generous free tiers, which make it possible to hostswapi.info and offer it as a free resource to the community.

If you're interested in contributing to swapi.info, please check out our GitHub repository.

eye-open
Good