Star Wars API GET request in Python
This is pretty good. I only have a few small nitpicks


Return directly

You do this a few times:


 if ship['passengers'] != "unknown" and int(ship['passengers']) &gt;= num:
    return True
return False



The above can be rewritten as:

return ship['passengers'] != "unknown" and int(ship['passengers']) &gt;= num

Superfluous int call

int(20), here the int call does nothing, 20 is already an integer.
You can get more out of the request module.

Python's requests lib is very powerful and has a lot of features you can use.

It supports adding params for instance, so instead of:


#specifies api parameters
url = endpoint + urllib.parse.urlencode({"format": type, "page": page_num})
#gets info
json_data = requests.get(url).json()



You could do:

json_data = requests.get(endpoint, params={"format": "json", "page": page_num}).json()

Remove unused imports

sys module is not used, I suggest removing it.