Contents
How to make an API request for Star Wars?
Most of your problems should be solved just by reading through it. Let’s make our first API request to the Star Wars API! Open up a terminal and use curl or httpie to make an API request for a resource. In the example below, we’re trying to get the first planet, Tatooine:
How to use a Python generator to crawl the Star Wars API?
Building on that knowledge, you will learn how to build a generator to recursively crawl an API (swapi.co) and return Star Wars characters from “The Force Awakens”. Instructor: [00:01] Let’s start with a little function to show you the type of things that a generator can help you with.
Why is there rate limiting on the Star Wars API?
Swapi has rate limiting to prevent malicious abuse (as if anyone would abuse Star Wars data!) and to make sure our service can handle a potentially large amount of traffic. Rate limiting is done via IP address and is currently limited to 10,000 API request per day. This is enough to request all the data on the website at least ten times over.
How many API requests per day on SWAPI?
Swapi has rate limiting to prevent malicious abuse (as if anyone would abuse Star Wars data!) and to make sure our service can handle a potentially large amount of traffic. Rate limiting is done via IP address and is currently limited to 10,000 API request per day.
What’s the base URL for the SWAPI API?
If your response looks slightly different don’t panic. This is probably because more data has been added to swapi since we made this documentation. The Base URL is the root URL for all of the API, if you ever make a request to swapi and you get back a 404 NOT FOUND response then check the Base URL first. The Base URL for swapi is:
What does SWAPI stand for in Star Wars?
The Star Wars API, or “swapi” (Swah-pee) is the world’s first quantified and programmatically-accessible data source for all the data from the Star Wars canon universe! We’ve taken all the rich contextual stuff from the universe and formatted into something easier to consume with software.