{"id":24552104,"url":"https://github.com/willosof/oslobysykkel","last_synced_at":"2025-06-29T04:34:01.119Z","repository":{"id":57316523,"uuid":"59328845","full_name":"willosof/oslobysykkel","owner":"willosof","description":"Unofficial API for the latest city bike system in Oslo, Norway","archived":false,"fork":false,"pushed_at":"2017-05-28T22:49:06.000Z","size":13,"stargazers_count":2,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-02-28T16:12:11.284Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"https://www.npmjs.com/package/oslobysykkel","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/willosof.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}},"created_at":"2016-05-20T21:56:33.000Z","updated_at":"2017-05-28T21:17:53.000Z","dependencies_parsed_at":"2022-08-25T21:11:07.365Z","dependency_job_id":null,"html_url":"https://github.com/willosof/oslobysykkel","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willosof%2Foslobysykkel","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willosof%2Foslobysykkel/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willosof%2Foslobysykkel/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/willosof%2Foslobysykkel/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/willosof","download_url":"https://codeload.github.com/willosof/oslobysykkel/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243878491,"owners_count":20362433,"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":[],"created_at":"2025-01-23T01:30:16.490Z","updated_at":"2025-03-16T14:13:18.310Z","avatar_url":"https://github.com/willosof.png","language":"JavaScript","funding_links":[],"categories":[],"sub_categories":[],"readme":"[![npm version](https://badge.fury.io/js/oslobysykkel.svg)](https://badge.fury.io/js/oslobysykkel)\n[![Downloads](https://img.shields.io/npm/dm/oslobysykkel.svg)](https://npmjs.com/oslobysykkel)\n[![Dependency Status](https://david-dm.org/willosof/oslobysykkel.svg)](https://david-dm.org/willosof/oslobysykkel)\n[![Build Status](https://travis-ci.org/willosof/oslobysykkel.svg?branch=master)](https://travis-ci.org/willosof/oslobysykkel)\n[![MIT license](http://img.shields.io/badge/license-MIT-brightgreen.svg)](http://opensource.org/licenses/MIT)\n[![GitHub issues](https://img.shields.io/github/issues/willosof/oslobysykkel.svg?style=plastic)](https://github.com/willosof/oslobysykkel/issues)\n[![GitHub forks](https://img.shields.io/github/forks/willosof/oslobysykkel.svg?style=plastic)](https://github.com/willosof/oslobysykkel/network)\n[![GitHub stars](https://img.shields.io/github/stars/willosof/oslobysykkel.svg?style=plastic)](https://github.com/willosof/oslobysykkel/stargazers)\n\n## Features\n* **getStations(result_cb)**\nList all stations in the system. Here you'll get the id's you need to make sense of getAvailability() and getAvailabilityByStationId()\n\n* **getAvailability(result_cb)**\nGet availability information on all stations in the oslobysykkel system.\n\n* **getAvailabilityByStationId(id, result_cb)**\nUsing the id you find in getAvailability(), you can narrow your request down using this function.\n*Notice: for now this function is just a client side processed version of getAvailability()*\n\n\n### Getting Started\n\nFirst, you must register at https://developer.oslobysykkel.no/. Follow the instructions on the page to get a clientId\n\nIn Node.js:\n\n```\nnpm install oslobysykkel\n```\n\n```javascript\nvar oslobysykkel = require('oslobysykkel');\nvar obs = new oslobysykkel('{Your API clientId}');\n\n// Get all stations and their IDs\nobs.getStations(response =\u003e {\n\tconsole.log(response);\n});\n\n// Get current availability data\nobs.getAvailability(response =\u003e {\n\tconsole.log(response);\n});\n\n// Get availability data for one specific station\nvar stationId = 178;\nobs.getAvailabilityByStationId(stationId, response =\u003e {\n\tconsole.log(response);\n});\n\n```\n\n### Git\n* [https://github.com/willosof/oslobysykkel](https://github.com/willosof/oslobysykkel)\n* `git@github.com:willosof/oslobysykkel.git`\n\n\n### Data Sources\n* https://oslobysykkel.no/api/v1/stations/availability\n* https://oslobysykkel.no/api/v1/stations\n\n### Other\n#### A link that shows where new stations will appear:\n* https://oslobysykkel.no/api/internal/stations (ready=false is the coming ones)\n\n### Author\nWilliam Viker \u003c\u003cwilliam.viker@gmail.com\u003e\u003e\n\n### Contributors\n[Marius Gundersen](https://github.com/igundersen) - Implemented clientId in 2.0\n\n### Changelog\n* 1.2.6 Stable version for 2016 API\n* 2.0.0 Implemented clientId required in 2017 API\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillosof%2Foslobysykkel","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwillosof%2Foslobysykkel","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwillosof%2Foslobysykkel/lists"}