Getting Started
Last updated
Was this helpful?
Last updated
Was this helpful?
Welcome to Astronomy API, a web API for retrieving astronomical information.
To make API calls, you will first need to create an account. Go to the page to create your free account.
After creating an account, you must obtain an Application ID
and an Application Secret
key by clicking the "Create Application"
button from your dashboard. You will be directed to the "View Application" page for the application you just created.
The Application Secret
is visible to you only once during application creation. Save it somewhere because there's no way to retrieve it back. If you lost your secret create a new application and delete the old application.
You will use the Application ID
and the Application Secret
to authenticate with the Astronomy API with Basic Authentication.
You can view your Application ID
later, by clicking the name of the specific application on the .
When making API calls to endpoints requiring authentication, you must use the above credentials to create a string that must be used as the authentication string. The algorithm to create the string is very simple. Below are implementations of several commonly used languages.
The encrypted string must be provided in the API request's Authorization
header, after the term Basic
followed by a space.
In an event of an authentication failure, a 403 Forbidden
response will be returned, which probably means you encrypted the string incorrectly, or your credentials are wrong.
Successful requests always respond with HTTP code 200
.
For code samples and demos go to
Need help with something? or noticed a bug?