GitHub - pace11/weather-api: Unofficial Weather API Wrapper Easy to use in Graphql. Reference from API BMKG (Badan Meteorologi, Klimatologi, dan Geofisika) https://data.bmkg.go.id

Unofficial Weather API Wrapper Easy to use in Graphql. Reference from API BMKG (Badan Meteorologi, Klimatologi, dan Geofisika) https://data.bmkg.go.id

graphql-schema

Basic Request

curl --location 'https://weather-api.pace11.my.id/' \
--header 'content-type: application/json' \
--data '{"query":"query WeatherForcest($id: String!) {\n  weather(id:$id) {\n    sumber\n    data {\n      cuaca {\n        analysis_date\n        datetime\n        hu\n        image\n        local_datetime\n        t\n        tcc\n        time_index\n        tp\n        utc_datetime\n        vs\n        vs_text\n        wd\n        wd_deg\n        wd_to\n        weather\n        weather_desc\n        weather_desc_en\n        ws\n      },\n      lokasi {\n        adm1\n        adm2\n        adm3\n        adm4\n        desa\n        kecamatan\n        kotkab\n        lat\n        lon\n        provinsi\n        timezone\n        type\n      }\n    }\n    lokasi {\n      adm1\n      adm2\n      adm3\n      adm4\n      desa\n      kecamatan\n      kotkab\n      lat\n      lon\n      provinsi\n      timezone\n    }\n  }\n}\n","variables":{"id":"91.71.03.1008"}}'

Link