{"id":15554997,"url":"https://github.com/ahsanz024/spacex_api","last_synced_at":"2025-06-22T16:38:37.848Z","repository":{"id":54625740,"uuid":"313031462","full_name":"ahsanz024/spacex_api","owner":"ahsanz024","description":"Dart wrapper for unofficial SpaceX API v4 (with support for all endpoints and query subsystem in Dart), providing information about everything related to SpaceX and its public data.","archived":false,"fork":false,"pushed_at":"2023-11-26T21:43:31.000Z","size":100,"stargazers_count":6,"open_issues_count":1,"forks_count":3,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-23T20:51:09.418Z","etag":null,"topics":["dart","dartlang","flutter","spacex","spacex-api","spacex-launches"],"latest_commit_sha":null,"homepage":"https://github.com/ahsanz024/spacex_api","language":"Dart","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"bsd-3-clause","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/ahsanz024.png","metadata":{"files":{"readme":"README.md","changelog":"CHANGELOG.md","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":"2020-11-15T12:57:31.000Z","updated_at":"2024-07-03T08:35:51.000Z","dependencies_parsed_at":"2023-11-12T14:44:35.040Z","dependency_job_id":"4308da20-f193-41a9-897f-8a4a62288f9a","html_url":"https://github.com/ahsanz024/spacex_api","commit_stats":{"total_commits":56,"total_committers":2,"mean_commits":28.0,"dds":0.0357142857142857,"last_synced_commit":"8930d43e13550f12f7dd044165df81ac13041ee4"},"previous_names":[],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/ahsanz024/spacex_api","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahsanz024%2Fspacex_api","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahsanz024%2Fspacex_api/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahsanz024%2Fspacex_api/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahsanz024%2Fspacex_api/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ahsanz024","download_url":"https://codeload.github.com/ahsanz024/spacex_api/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ahsanz024%2Fspacex_api/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":261327145,"owners_count":23142263,"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":["dart","dartlang","flutter","spacex","spacex-api","spacex-launches"],"created_at":"2024-10-02T15:05:34.821Z","updated_at":"2025-06-22T16:38:32.834Z","avatar_url":"https://github.com/ahsanz024.png","language":"Dart","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Dart SpaceX API Client (v4)\n\n[![pub package](https://img.shields.io/pub/v/spacex_api.svg)](https://pub.dev/packages/spacex_api)\n\n![Build](https://github.com/ahsanz024/spacex_api/workflows/Build/badge.svg)\n\nDart wrapper for **[unofficial SpaceX API v4](https://github.com/r-spacex/SpaceX-API)** (with support for all endpoints and query subsystem in Dart), providing information about everything related to SpaceX and its public data.\n\n- **Capsules** - detailed information about Dragon capsules.\n- **Company** - detailed information about SpaceX as a company.\n- **Cores** - detalied information about first stage cores.\n- **Crew** - detailed information about Dragon crew members.\n- **Dragons** - detailed information about Dragon capsule versions.\n- **Landpads** - detailed information about landing pads and ships.\n- **Launches** - detailed information about launches.\n- **Launchpads** - detailed information about launchpads.\n- **Payloads** - detailed information about launch payloads.\n- **Roadster** - detailed information about Elon's Tesla Roadster.\n- **Rockets** - detailed information about rocket versions.\n- **Ships** - detailed information about ships in the SpaceX fleet.\n- **Starlink** - detailed information about Starlink satellites and orbits.\n\n## Examples\n\n    // Fetch all items\n    Future\u003cvoid\u003e getAllStarlink(SpaceXApi api) async {\n        final response = await api.getAllStarlinks();\n        if (response.statusCode == 200) {\n            List\u003cStarlink\u003e data =\n                Utils.convertResponseToList\u003cStarlink\u003e(response, (e) =\u003e Starlink.fromJson(e));\n            print(\"Fetch Starlinks ${data.length}\");\n        }\n    }\n\n    // Query items\n    Future\u003cvoid\u003e queryStarlinks(SpaceXApi api) async {\n        final query = Options();\n        query.limit = 25;\n        query.page = 1;\n        query.pagination = true;\n        query.select = [\n            \"version\",\n            \"height_km\",\n            \"longitude\",\n        ];\n        var queryJson = convert.jsonEncode(query.toJson());\n\n        final response = await api.queryStarlinks(query: queryJson);\n        if (response.statusCode == 200) {\n            final jsonResp = Utils.parseResponseAsJson(response);\n            PagenatedResponse pagenatedResponse = PagenatedResponse.fromJson(jsonResp);\n            List\u003cStarlink\u003e data = pagenatedResponse.docs\n                .map((e) =\u003e Starlink.fromJson(e))\n                .cast\u003cStarlink\u003e()\n                .toList();\n            print(\"Qeury Starlinks ${data.length}\");\n        }\n    }\n\nMore examples can be found in the **[Examples](/example/example.dart)**.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahsanz024%2Fspacex_api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fahsanz024%2Fspacex_api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fahsanz024%2Fspacex_api/lists"}