{"id":21528656,"url":"https://github.com/nezutero/astrodata-api","last_synced_at":"2025-03-17T18:45:55.164Z","repository":{"id":196933417,"uuid":"697452374","full_name":"nezutero/astrodata-api","owner":"nezutero","description":"API that allows you to get data from satelites, sensors (NASA \u0026 Astronomical Observatory, Kyoto)","archived":false,"fork":false,"pushed_at":"2024-08-14T11:59:23.000Z","size":42,"stargazers_count":0,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-01-24T06:11:23.868Z","etag":null,"topics":["api","astrology-api","astrology-content","astrology-data-scraper","astrology-prediction-system","astronomy","astronomy-astrophysics","bz","dst","solar-energy","solar-energy-cost-prediction","solar-energy-forecasting","solar-wind","solar-wind-bz","solar-wind-data"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/nezutero.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2023-09-27T18:58:05.000Z","updated_at":"2024-08-14T11:59:26.000Z","dependencies_parsed_at":"2023-10-14T19:07:19.977Z","dependency_job_id":"6287278b-2ed4-4ada-9ce0-44c62273ff95","html_url":"https://github.com/nezutero/astrodata-api","commit_stats":{"total_commits":24,"total_committers":4,"mean_commits":6.0,"dds":0.25,"last_synced_commit":"313e122a070d8cdacc60942d067bd3ccd43228fd"},"previous_names":["kenjitheman/projx","kenjitheman/wdcg_api","kenjitheman/astrodata_api","kenjitheman/magneconn_api","btwkenji/astrodata-api","kenjitheman/astrodata-api","geekenji/astrodata-api","plastiey/astrodata-api","nezutero/astrodata-api"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nezutero%2Fastrodata-api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nezutero%2Fastrodata-api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nezutero%2Fastrodata-api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/nezutero%2Fastrodata-api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/nezutero","download_url":"https://codeload.github.com/nezutero/astrodata-api/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":244092198,"owners_count":20396750,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["api","astrology-api","astrology-content","astrology-data-scraper","astrology-prediction-system","astronomy","astronomy-astrophysics","bz","dst","solar-energy","solar-energy-cost-prediction","solar-energy-forecasting","solar-wind","solar-wind-bz","solar-wind-data"],"created_at":"2024-11-24T01:54:00.045Z","updated_at":"2025-03-17T18:45:54.889Z","avatar_url":"https://github.com/nezutero.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"This readme file provides an overview and documentation for the astrodata_api application's RESTful API, focusing on the package handlers.\n\nThe API provides access to various space weather data retrieval endpoints:\n\n### Endpoints:\n\n- ##### Base URL: https://i_don't_have_yet/api :(\n\n- ##### Health check\n\n```http\nGET /health\n```\n- Description: checks the health of the API\n\n- Response:\n\n```http\nstatus Code: 200 OK\ncontent-Type: application/json\n```\n\n### Dst data\n\n- Description: returns dst data for n period\n\n```http\nGET /dst/7d\n```\n\n```http\nGET /dst/current-month\n```\n\n```http\nGET /dst/last-month\n```\n\n```http\nGET /dst/now\n```\n\n```http\nGET /api/dst/by-date?date=data (YYYYMM format, Example: 202306)\n```\n\n```http\nGET /dst/now/strength\n```\n\n- Response:\n```http\nStatus Code: 200 OK\nContent-Type: application/json\n```\n\n### Predictions (60% sure)\n\n- Description: calculate and returns the predicted dst index for the next n hours (future predict (60% sure))\n\n```http\nGET /predict/6h\n```\n\n```http\nGET /predict/1d\n```\n\n- Response:\n\n```http\nStatus Code: 200 OK\nContent-Type: application/json\n```\n\n### Bz data\n\n- Description: retrieve bz data for n period\n\n```http\nGET /bz/6h\n```\n\n```http\nGET /bz/1d\n```\n\n```http\nGET /bz/3d\n```\n\n```http\nGET /bz/7d\n```\n\n```http\nGET /api/bz/7d\n```\n\n```http\nGET /bz/now\n```\n\n```http\nGET /bz/now/strength\n```\n\n### Plasma temperature data\n\n- Description: retrieve time plasma temperature data for n time period\n\n```http\nGET /plasma/now\n```\n\n```http\nGET /plasma/2h\n```\n\n```http\nGET /plasma/6h\n```\n\n```http\nGET /plasma/1d\n```\n\n```http\nGET /api/plasma/1d\n```\n\n```http\nGET /plasma/3d\n```\n\n```http\nGET /api/plasma/3d\n```\n\n```http\nGET /plasma/7d\n```\n\n- Error Responses\n\n```http\nStatus Code: 400 Bad Request\nContent-Type: application/json\n```\n\n- Example error Response:\n\n```json\n{\n  \"error\": \"date parameter is missing!\"\n}\n```\n\n```json\n{\n  \"error\": \"Invalid date format\"\n}\n```\n\n### CORS Configs\n\n- 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.\n\n- The API will be available at https://somesite.xyz, make requests to the defined endpoints to access space weather data.\n\n- Please ensure that the appropriate URL is used along with any required query parameters when making requests to the API endpoints.\n\n## Contributing\n\n- Pull requests are welcome. For major changes, please open an issue first\nto discuss what you would like to change.\n\n- Please make sure to update tests as appropriate.\n\n## License\n\n- [MIT](./LICENSE)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnezutero%2Fastrodata-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fnezutero%2Fastrodata-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fnezutero%2Fastrodata-api/lists"}