r/LaunchLibrary • • Dec 16 '16

Having some issues with contacting the API

3 Upvotes

Hello

I am writing an astronomy bot for the chat program "DIscord". Now trying to implement the LaunchLibraryAPI I came across this problem: Whenever I send a request to the LaunchLibrary API, I get an 403 HTTP Error (Access Denied), even though the exact same URL works in the browser.

This is my code:

var webRequest = WebRequest.Create(string.Format("https://launchlibrary.net/1.1/agency?name={0}&mode=verbose", WebUtility.UrlEncode(name)));
var response = (HttpWebResponse)webRequest.GetResponse();

it crashes on the 2nd line (the one that starts with "var response". Does anyone know what is wrong here?

Note this is written in C# and .Net 4.5

Also note that this same code works for example for the geolocation REST API from Google. It seems your webservice needs some special HTTP headers to be set. Can you please document them somewhere or let me know in the comments?


r/LaunchLibrary • • Dec 03 '16

Search for launches based on company?

3 Upvotes

Hi!

Is there a way to get all the launches associated with say "SpaceX" and then returns a list of all Falcon and Falcon Heavy launches?

Maybe something like: https://launchlibrary.net/1.2/launch/20?agency=spacex

Thanks in advance! =)


r/LaunchLibrary • • Nov 10 '16

Idea: LaunchLibrary app for Lametric Time

3 Upvotes

I heard about the Lametric Time a few weeks ago. It is a smart alarm clock that connects your phone, has apps, and IFTTT support. I was reading around the documentation and it says you can make indicator apps based off of JSON and HTTP GET requests! So the idea came to me for having an app that displays the launch status and mission info, maybe even the countdown if possible! Thing is when i put https://launchlibrary.net/1.2/launch/next/1 into the polling URL i get a 403.

I will definitely try to work on this idea more!

What do you guys think?


r/LaunchLibrary • • Oct 04 '16

Rocket Manifest - an Amazon Echo app I built with Launch Library

Thumbnail
github.com
3 Upvotes

r/LaunchLibrary • • Sep 28 '16

Space Launch Schedule

Thumbnail
spacelaunchschedule.com
3 Upvotes

r/LaunchLibrary • • Sep 25 '16

SpaceX Time Machine: Past Present Future Launch Info/Photos/Videos

Thumbnail
spacextimemachine.com
3 Upvotes

r/LaunchLibrary • • Jun 15 '16

Wrong data in window start and window end

3 Upvotes

Hi!

I just noticed when doing a free search for "Demo"-launches that i think it was the Falcon Demo flight having a launch window (start and end) day set to 0 and with that broke my deserialization.

I'm guessing its a bug since a date can't have a day of 0. =)


r/LaunchLibrary • • Apr 24 '16

Orbit Clock app for Apple TV

3 Upvotes

Hi! I made a clock app for the Apple TV. It uses the LaunchLibrary API to display the next upcoming space launch.

Here is a link to the App Store. https://itunes.apple.com/app/apple-store/id1102228449?mt=8

Here are some promo codes to try it out:

  • W3FX4NJA3PXM

  • R3Y7T677TMX6

  • L97LWERPLX7N

  • HRW6FA44WY3T

  • NM66WN34X9JF

  • 49TRJ9N7A6XY

  • HH7M4Y4R3R3E

  • 6E4F6R9H44A7

  • RFP6XMHLRYAR

  • A6464W37LE7P

I will be very happy to be included in the App Gallery section on the website.

Thank you!


r/LaunchLibrary • • Feb 29 '16

Slight change to the "next" behavior.

3 Upvotes

Hi all, I made a small change this morning to the behavior of the next command for launches. It used to return launches with a net > the current time. Now I am returning net > current time minus an hour. This should keep launches in your lists during countdowns when in hold/being scrubbed, etc.


r/LaunchLibrary • • Dec 18 '15

Open Beta testing of Launch Tracker v2

Thumbnail
play.google.com
3 Upvotes

r/LaunchLibrary • • Oct 29 '15

Where to post info for missing launch info... like this one?

3 Upvotes

I'm just a random person who occasionally glances at LaunchLibrary, but who agrees that it is awesome to have such a thing.

Just now, I came across some info that is not yet in the library. Specifically, "SPARK | ORS-4" is listed a fair ways down with no projected launch date and very little info. But, it looks like there's a chance it may actually be launching tomorrow, on October 30th! Since I don't have any industry connections, I can only offer you a forum post as a source, and some other websites here and here (claiming October 29th instead but defining the opening of the launch window).

The thing is though... is this subreddit even the correct place to put such a thing? Does someone look at it more than once a week? I get that there's a reason only authorized people can add stuff to the library, but I think there should at least be a good way for anyone on the 'net to at least drop a link or other form of info to something that's not yet in the library, so that it can be fact checked (and if correct, added) by proper LaunchLibrarians. I've looked across the posts here, but found no mention of how I would submit such a thing. Well, I'm submitting it to the subreddit now. Hope someone finds it today and can update the library before the launch happens :P


r/LaunchLibrary • • Sep 28 '15

Library API 1.1 beta

3 Upvotes

Greetings folks, (man this became a wall of text fast...)

I've put up the 1.1 version of the API for public beta. Documentation can be found here: http://launchlibrary.net/1.1/docs/api.html

The input certainly differs, but at this time, the format of the responses themselves are the same as 1.1, so there will be no need to change existing handlers.

Major changes include:

  • GETs instead of POSTs.

  • URL parameters instead of posting JSON bodies

  • Support for using multiple values for the same parameter where appropriate, for example id=120&id=121 would return objects with an ID of 120 and 121, should they exist. Things like start and end dates on launches do not support this.

  • Proper content type and HTTP status returns

  • Primary query parameters on the url.

  • New "next" command fully added to launch (this was placed in to the 1.0 API on a limited basis due to a need.)

  • Slightly better documentation.

I'm considering this an open beta as everything I've tested looks OK, but I've probably missed something.

I'm not planning any other major changes for this release, and will update the main site with the api doc as the primary link in two weeks, barring anyone finding anything major.

As before, I am not implementing rate limiting at this time, and I'd prefer not to have to, so please play nice.

If anyone comes across and error, please feel free to use this thread to report it, thanks.

A note on the primary query parameters:

Primary query parameters will detect one of three types, although most will only use two. These types are integer, string, and a date string (YYYY-MM-DD).

  • When an integer type is detected, the api will map it to the ID field. For example calling for launch/120 is the same as calling launch?id=120

  • When a plain string not formatted as a date is detected, it will usually map to the name field. The only exception to this is agencies, where it maps to abbreviation. Examples include launch/Falcon and agency/NASA

  • The only command that will accept the date string type is launch. It can accept up to two such strings. If only one is supplied, it will be mapped to startdate. If both are supplied, it will map to startdate and enddate. Examples include launch/2015-08-20/2015-09-20 and launch/2015-08-20


r/LaunchLibrary • • Sep 06 '15

LaunchPal - App for Windows 10 and phone

3 Upvotes

Hi!

I feel that the app is now in a stable state and ready to be shared. The app features information about the next upcoming launch like when its launching and a countdown timer. It supports local time so that you never need to convert the time yourself but note that its based on the time settings on the device.

In the next update that is pending for publication will also add:

  • Windows 10 desktop support

  • Support for UTC time by a setting

  • Support for notifications/reminders

  • Persistent settings even if the app closes

So try it out in the link below and if you got any request or find any bugs just post a reply!

https://www.microsoft.com/en-us/store/apps/launchpal/9nblggh1xvhk


r/LaunchLibrary • • May 24 '23

Announcing the Spaceflight News API V4!

Thumbnail
self.snapi
2 Upvotes

r/LaunchLibrary • • Nov 13 '19

Similar service for arrivals?

2 Upvotes

Does anyone know of a service or repository similar to launch library but for objects returning to earth? E.g. reusable rocket stages, de-orbiting satellites, crewed reentry capsules, deep space missions like Hayabusa2?

Any ideas appreciated :) thank you


r/LaunchLibrary • • Oct 07 '19

Space Union - App for Android

Thumbnail
play.google.com
2 Upvotes

r/LaunchLibrary • • Aug 17 '19

App for iOS “Open Cosmos”

Post image
2 Upvotes

r/LaunchLibrary • • Mar 03 '19

React Native iOS App

2 Upvotes

I made this simple App that uses the Launch Library as well as the Spaceflight News API. The app can be used to get details on upcoming launches, get notified right before a launch, stay up to date with space news, and search through the launch library for any space launch information.

Source code available on GitHub: https://github.com/Illu/moonwalk

App Store link: https://itunes.apple.com/us/app/moonwalk-rocket-launches/id1439376174


r/LaunchLibrary • • Jan 06 '19

New client for the launch library API

2 Upvotes

I made one a while ago that was somewhat shoddy as I'd just started learning how to code, but here's my new attempt at creating a nice launch library experience for folks interested in all things rocket launch related: Blast Off

In creating this launch library client, I wanted to make sure I would be nice and gentle to the launch library API, so I implemented pagination (in the previous iteration I would just fetch all the launches on page load; sorry!) and client side caching using the localStorage API. To the people familliar with the launch library API: how often does the database get updated with new launches? I'm asking so that I can set a good expiry time for the cache. Right now it's set to 24 hours.

In case anyone is curious, here is the source code for my launch library client. I'm going to continue improving it, especially layout wise and try to include more of the features offered by the launch library API such as images, so it will get updated.

Any chance it could be included in the App Gallery? It's hosted on GitHub now so it won't disappear because my domain name expires :D (sorry about that, too).

Happy new year, folkar00s!


r/LaunchLibrary • • Dec 08 '18

Changed parameter not reliable.

2 Upvotes

I found that the changed parameter is not reliable. I noticed this because of wrong entries in my database.

One example is the Delta IV Heavy | NROL-71 Launch (1288)

The raw data downloaded Monday, 3 December 2018 01:48:06 UTC:

{
    "launches": [{
        "id": 1288,
        "name": "Delta IV Heavy | NROL-71",
        "windowstart": "December 8, 2018 04:19:00 UTC",
        "windowend": "December 8, 2018 04:19:00 UTC",
        "net": "December 8, 2018 04:19:00 UTC",
        "wsstamp": 1544242740,
        "westamp": 1544242740,
        "netstamp": 1544242740,
        "isostart": "20181208T041900Z",
        "isoend": "20181208T041900Z",
        "isonet": "20181208T041900Z",
        "status": 1,
        "inhold": 0,
        "tbdtime": 0,
        "vidURLs": ["http:\/\/ulalaunch.com\/webcast.aspx"],
        "vidURL": null,
        "infoURLs": [],
        "infoURL": null,
        "holdreason": null,
        "failreason": null,
        "tbddate": 0,
        "probability": -1,
        "hashtag": null,
        "changed": "2018-12-03 01:02:37",
        "location": {
            "pads": [{
                "id": 91,
                "name": "Space Launch Complex 6, Vandenberg AFB, CA",
                "infoURL": "",
                "wikiURL": "",
                "mapURL": "http:\/\/maps.google.com\/maps?q=34.5815+N,+120.6262+W",
                "latitude": 34.5815,
                "longitude": -120.6262,
                "agencies": []
            }],
            "id": 18,
            "name": "Vandenberg AFB, CA, USA",
            "infoURL": "",
            "wikiURL": "",
            "countryCode": "USA"
        },
        "rocket": {
            "id": 21,
            "name": "Delta IV Heavy",
            "configuration": "IV Heavy",
            "familyname": "Delta",
            "agencies": [],
            "wikiURL": "https:\/\/en.wikipedia.org\/wiki\/Delta_IV",
            "infoURLs": [],
            "imageSizes": [320, 480, 640, 720, 768, 800, 960, 1024, 1080, 1280, 1440, 1920],
            "imageURL": "https:\/\/s3.amazonaws.com\/launchlibrary\/RocketImages\/Delta+IV+Heavy_1920.jpg"
        },
        "missions": [{
            "id": 568,
            "name": "NROL-71",
            "description": "Classified payload for the U.S. National Reconnaissance Office.",
            "type": 7,
            "wikiURL": "https:\/\/en.wikipedia.org\/wiki\/List_of_NRO_launches",
            "typeName": "Government\/Top Secret",
            "agencies": [{
                "id": 181,
                "name": "National Reconnaissance Office",
                "abbrev": "NRO",
                "countryCode": "USA",
                "type": 1,
                "infoURL": null,
                "wikiURL": "https:\/\/en.wikipedia.org\/wiki\/National_Reconnaissance_Office",
                "changed": "2017-02-21 00:00:00",
                "infoURLs": ["http:\/\/www.nro.gov\/", "https:\/\/www.facebook.com\/NationalReconnaissanceOffice", "https:\/\/twitter.com\/NatReconOfc", "https:\/\/www.youtube.com\/c\/nationalreconnaissanceoffice"]
            }],
            "payloads": []
        }],
        "lsp": {
            "id": 124,
            "name": "United Launch Alliance",
            "abbrev": "ULA",
            "countryCode": "USA",
            "type": 3,
            "infoURL": null,
            "wikiURL": "http:\/\/en.wikipedia.org\/wiki\/United_Launch_Alliance",
            "changed": "2017-02-21 00:00:00",
            "infoURLs": ["http:\/\/www.ulalaunch.com\/", "https:\/\/www.youtube.com\/channel\/UCnrGPRKAg1PgvuSHrRIl3jg", "https:\/\/twitter.com\/ulalaunch", "https:\/\/www.facebook.com\/ulalaunch", "https:\/\/www.instagram.com\/ulalaunch\/"]
        }
    }],
    "total": 1,
    "offset": 0,
    "count": 1
}

And as a comparison the raw data of today:

{
    "launches": [{
        "id": 1288,
        "name": "Delta IV Heavy | NROL-71",
        "windowstart": "December 9, 2018 04:06:00 UTC",
        "windowend": "December 9, 2018 04:06:00 UTC",
        "net": "December 9, 2018 04:06:00 UTC",
        "wsstamp": 1544328360,
        "westamp": 1544328360,
        "netstamp": 1544328360,
        "isostart": "20181209T040600Z",
        "isoend": "20181209T040600Z",
        "isonet": "20181209T040600Z",
        "status": 1,
        "inhold": 0,
        "tbdtime": 0,
        "vidURLs": ["https:\/\/www.youtube.com\/watch?v=ZsX1TmAmeEU", "https:\/\/www.ulalaunch.com\/missions\/delta-iv-nrol-71"],
        "vidURL": null,
        "infoURLs": [],
        "infoURL": null,
        "holdreason": null,
        "failreason": null,
        "tbddate": 0,
        "probability": 70,
        "hashtag": "#NROL71",
        "changed": "2018-12-03 01:02:37",
        "location": {
            "pads": [{
                "id": 91,
                "name": "Space Launch Complex 6, Vandenberg AFB, CA",
                "infoURL": "",
                "wikiURL": "",
                "mapURL": "http:\/\/maps.google.com\/maps?q=34.5815+N,+120.6262+W",
                "latitude": 34.5815,
                "longitude": -120.6262,
                "agencies": []
            }],
            "id": 18,
            "name": "Vandenberg AFB, CA, USA",
            "infoURL": "",
            "wikiURL": "",
            "countryCode": "USA"
        },
        "rocket": {
            "id": 21,
            "name": "Delta IV Heavy",
            "configuration": "IV Heavy",
            "familyname": "Delta",
            "agencies": [],
            "wikiURL": "https:\/\/en.wikipedia.org\/wiki\/Delta_IV",
            "infoURLs": [],
            "imageSizes": [320, 480, 640, 720, 768, 800, 960, 1024, 1080, 1280, 1440, 1920],
            "imageURL": "https:\/\/s3.amazonaws.com\/launchlibrary\/RocketImages\/Delta+IV+Heavy_1920.jpg"
        },
        "missions": [{
            "id": 568,
            "name": "NROL-71",
            "description": "Classified payload for the U.S. National Reconnaissance Office.",
            "type": 7,
            "wikiURL": "https:\/\/en.wikipedia.org\/wiki\/List_of_NRO_launches",
            "typeName": "Government\/Top Secret",
            "agencies": [{
                "id": 181,
                "name": "National Reconnaissance Office",
                "abbrev": "NRO",
                "countryCode": "USA",
                "type": 1,
                "infoURL": null,
                "wikiURL": "https:\/\/en.wikipedia.org\/wiki\/National_Reconnaissance_Office",
                "changed": "2017-02-21 00:00:00",
                "infoURLs": ["http:\/\/www.nro.gov\/", "https:\/\/www.facebook.com\/NationalReconnaissanceOffice", "https:\/\/twitter.com\/NatReconOfc", "https:\/\/www.youtube.com\/c\/nationalreconnaissanceoffice"]
            }],
            "payloads": []
        }],
        "lsp": {
            "id": 124,
            "name": "United Launch Alliance",
            "abbrev": "ULA",
            "countryCode": "USA",
            "type": 3,
            "infoURL": null,
            "wikiURL": "http:\/\/en.wikipedia.org\/wiki\/United_Launch_Alliance",
            "changed": "2017-02-21 00:00:00",
            "infoURLs": ["http:\/\/www.ulalaunch.com\/", "https:\/\/www.youtube.com\/channel\/UCnrGPRKAg1PgvuSHrRIl3jg", "https:\/\/twitter.com\/ulalaunch", "https:\/\/www.facebook.com\/ulalaunch", "https:\/\/www.instagram.com\/ulalaunch\/"]
        }
    }],
    "total": 1,
    "offset": 0,
    "count": 1
}

As you can see the changed parameter is the same although multiple other parameters changed. I could find multiple other examples of this if I would dive into my logs.

This is sad because now I have to find a workaround that includes using more requests and more bandwidth.


r/LaunchLibrary • • Nov 27 '18

"Hey Siri, when's the next SpaceX launch?"

2 Upvotes

I'm working on an update to my iOS app called Launchcraft (https://www.launchcraftapp.com) which includes support for Siri Shortcuts. When configured, you can ask Siri "When's the next SpaceX launch?" to view the next scheduled launch.

If you’re interested, please consider joining the beta via TestFlight. Any feedback is appreciated. https://testflight.apple.com/join/nSONe1lZ


r/LaunchLibrary • • Oct 26 '18

New android app

2 Upvotes

r/LaunchLibrary • • Aug 30 '18

New iOS and Android App: Space Viewer

2 Upvotes

r/LaunchLibrary • • Aug 29 '18

New Android app: Go/No-Go

2 Upvotes

r/LaunchLibrary • • Jul 29 '18

New iOS App: Liftoff

Thumbnail
itunes.apple.com
2 Upvotes