{"id":20759849,"url":"https://github.com/owsas/owapis-js","last_synced_at":"2026-05-27T21:31:13.366Z","repository":{"id":91075561,"uuid":"97884111","full_name":"owsas/owapis-js","owner":"owsas","description":"Otherwise SAS Apis JS SDK","archived":false,"fork":false,"pushed_at":"2018-04-05T16:45:24.000Z","size":10,"stargazers_count":2,"open_issues_count":1,"forks_count":1,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-12-13T05:30:54.135Z","etag":null,"topics":["js","otherwise","owsas","sdk"],"latest_commit_sha":null,"homepage":null,"language":"JavaScript","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/owsas.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"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":"2017-07-20T22:44:52.000Z","updated_at":"2021-11-01T03:52:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"1d666c66-ad34-46eb-b0c8-9f0faf3b410b","html_url":"https://github.com/owsas/owapis-js","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"purl":"pkg:github/owsas/owapis-js","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Fowapis-js","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Fowapis-js/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Fowapis-js/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Fowapis-js/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/owsas","download_url":"https://codeload.github.com/owsas/owapis-js/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/owsas%2Fowapis-js/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":33585203,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-05-26T15:22:16.424Z","status":"online","status_checked_at":"2026-05-27T02:00:06.184Z","response_time":53,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["js","otherwise","owsas","sdk"],"created_at":"2024-11-17T10:08:32.527Z","updated_at":"2026-05-27T21:31:13.346Z","avatar_url":"https://github.com/owsas.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"# owapis-js\n\nThis is the official ES2015 JS SDK for the Otherwise SAS Apis (owsas.com)\n\n## Installation\n\n```\n$\u003e npm i --save owapis-js\n```\n\n## Usage\n```js\nconst OwApis = require('owapis-js');\n\n// initialize first (obligatory)\nOwApis.initialize('\u003cYOUR-API-KEY\u003e');\n````\n\n## API docs\n\n```js\n/**\n* Reverse geocodes any given lat lng using Google\n* @param {number} lat \n* @param {number} lang\n* @return {Promise\u003cany[]\u003e}\n*/\nstatic reverseGeocode(lat, lng);\n\n/**\n* Geocodes any given string using Google\n* @param {string} string  The string to geocode\n* @return {Promise\u003cany[]\u003e}\n*/\nstatic geocode(string);\n\n/**\n* Gets own ip information using GeoLite2-City\n* @return {Promsie\u003cany\u003e}\n*/\nstatic getOwnIPInfo();\n\n/**\n* Gets ip information using GeoLite2-City\n* @param {string} ipAddr The ip address\n* @return {Promsie\u003cany\u003e}\n*/\nstatic getIPInfo(ipAddr);\n\n/**\n* Gets information about a country with given countryCode\n* @param {string} countryCode \n* @return {Promsie\u003cany[]\u003e}\n*/\nstatic getCountryInfo(countryCode);\n\n/**\n* Gets information about a country with given countryCode\n* @param {string} countryCode \n* @return {Promsie\u003cany[]\u003e}\n*/\nstatic getCountryInfoByCCA3(countryCode);\n\n/**\n* Gets information about a country with given countryCode\n* @param {string} countryCode \n* @return {Promsie\u003cany[]\u003e}\n*/\nstatic getCountryInfoByCCA2(countryCode);\n\n/**\n* Gets information about a country with given code\n* @param {string} code \n* @return {Promsie\u003cany\u003e}\n*/\nstatic getCountriesByCallingCode(code);\n\n/**\n* Gets information about a country with given code\n* @param {string} code \n* @return {Promsie\u003cany[]\u003e}\n*/\nstatic getCountriesByCurrencyCode(code);\n\n/**\n* Gets all the world languages\n* @return {Promsie\u003cany[]\u003e}\n*/\nstatic getWorldLanguages();\n\n/**\n* Gets information about a language with given langCode\n* @param {string} langCode \n* @return {Promsie\u003cany[]\u003e}\n*/\nstatic getLanguageInfo(langCode);\n\n/**\n* Makes a request to the OWSAS Api. Feel free to use it if you \n* know the urls of the API\n* @param {string} method \n* @param {string} url \n* @param {{query:any, body:any}} options \n* @return {Promise\u003cany\u003e|Promise\u003cany[]\u003e}\n*/\nstatic _request(method, url, options = {});\n```\n\n\n## Credits\nJuan Camilo Guarín Peñaranda  \nOtherwise SAS, [http://owsas.com](http://owsas.com)  \nHecho con \u003c3 en Colombia\n\n## License\nMIT","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowsas%2Fowapis-js","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fowsas%2Fowapis-js","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fowsas%2Fowapis-js/lists"}