ksoft.js
  • KSoft.js
  • Response Types
  • Endpoints
    • Images
    • Bans
    • Kumo
    • Music
Powered by GitBook
On this page
  • Current Weather
  • GeoIP lookup
  • Currency Conversion
  1. Endpoints

Kumo

This is advanced real-time information API for geo-spatial, weather and information gathering data

Current Weather

ksoft.kumo.weather(location, options);

Parameter

Type

location

String (city name or coordinates)

options.units

String: "si" | "us" | "uk2" | "ca" | "auto"

options.lang

Success: WeatherReport

Not Found: throws Error

ksoft.kumo.weather('-21.4, 13.2')
    .catch(err => console.log(err.message));
ksoft.kumo.weather('Berlin, Germany', { units: 'si', lang: 'de' });

GeoIP lookup

ksoft.kumo.geoip(ip);

Parameter

Type

ip

String

Success: Returns IPRecord

ksoft.kumo.geoip('1.1.1.1');

Currency Conversion

ksoft.kumo.convert(value, from, to);

Parameter

Type

value

Number

from

to

Success: Returns Conversion

ksoft.kumo.convert(12.20, 'EUR', 'USD');
PreviousBansNextMusic

Last updated 5 years ago

String (find avaible langs )

String (of )

String (of )

here
these
these