GithubHelp home page GithubHelp logo

kenjitheman / astrodata-api Goto Github PK

View Code? Open in Web Editor NEW
0.0 1.0 0.0 39 KB

API that allows you to get data from satelites, sensors (NASA & Astronomical Observatory, Kyoto)

License: MIT License

Go 100.00%
api astrology-api astrology-content astrology-data-scraper astrology-prediction-system astronomy astronomy-astrophysics bz dst solar-energy

astrodata-api's Introduction

This readme file provides an overview and documentation for the astrodata_api application's RESTful API, focusing on the package handlers.

The API provides access to various space weather data retrieval endpoints:

Endpoints:

  • Base URL: https://i_don't_have_yet/api :(
  • Health check
GET /health
  • Description: checks the health of the API

  • Response:

status Code: 200 OK
content-Type: application/json

Dst data

  • Description: returns dst data for n period
GET /dst/7d
GET /dst/current-month
GET /dst/last-month
GET /dst/now
GET /api/dst/by-date?date=data (YYYYMM format, Example: 202306)
GET /dst/now/strength
  • Response:
Status Code: 200 OK
Content-Type: application/json

Predictions (60% sure)

  • Description: calculate and returns the predicted dst index for the next n hours (future predict (60% sure))
GET /predict/6h
GET /predict/1d
  • Response:
Status Code: 200 OK
Content-Type: application/json

Bz data

  • Description: retrieve bz data for n period
GET /bz/6h
GET /bz/1d
GET /bz/3d
GET /bz/7d
GET /api/bz/7d
GET /bz/now
GET /bz/now/strength

Plasma temperature data

  • Description: retrieve time plasma temperature data for n time period
GET /plasma/now
GET /plasma/2h
GET /plasma/6h
GET /plasma/1d
GET /api/plasma/1d
GET /plasma/3d
GET /api/plasma/3d
GET /plasma/7d
  • Error Responses
Status Code: 400 Bad Request
Content-Type: application/json
  • Example error Response:
{
  "error": "date parameter is missing!"
}
{
  "error": "Invalid date format"
}

CORS Configs

  • The API is configured to allow Cross-Origin Resource Sharing (CORS) by using the github.com/gin-contrib/cors middleware, enabling access to the API from different domains.

  • The API will be available at https://somesite.xyz, make requests to the defined endpoints to access space weather data.

  • Please ensure that the appropriate URL is used along with any required query parameters when making requests to the API endpoints.

Contributing

  • Pull requests are welcome. For major changes, please open an issue first to discuss what you would like to change.

  • Please make sure to update tests as appropriate.

License

astrodata-api's People

Contributors

dependabot[bot] avatar kenjitheman avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.