AlexMNet / MMM-TheSpaceDevs

Magic Mirror Module serving Rocket Launch data based on TheSpaceDevs API
MIT License
1 stars 1 forks source link

Loaction IDs #6

Open onisuk opened 1 month ago

onisuk commented 1 month ago

Hi,

Where can I find the list of location IDs?

Or is it possible to have the Launch_ID added so we can use keywords like SpaceX or NASA??

AlexMNet commented 1 month ago

@onisuk Hello! Right now the easiest way to find location IDS is from this endpoint. https://ll.thespacedevs.com/2.2.0/location/

It does return a lot of locations. I think 52? If you want to narrow it down even more you can filter by country code which is helpful. For example, say you want to find all the locations in the United States... https://ll.thespacedevs.com/2.2.0/location/?country_code=USA

You can also look at a list of other parameters you can use for that endpoint here in the documentation https://ll.thespacedevs.com/2.2.0/swagger/#/location/location_list

Hope this helps! Let me know if you have any other questions.