{"id":21031495,"url":"https://github.com/slaveofcode/rajaongkir","last_synced_at":"2026-02-08T08:03:38.569Z","repository":{"id":57459777,"uuid":"42759094","full_name":"slaveofcode/rajaongkir","owner":"slaveofcode","description":"Simple Python module to grab api data from rajaongkir.com","archived":false,"fork":false,"pushed_at":"2023-05-22T21:33:46.000Z","size":18,"stargazers_count":6,"open_issues_count":1,"forks_count":6,"subscribers_count":3,"default_branch":"master","last_synced_at":"2025-07-23T23:50:01.465Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/slaveofcode.png","metadata":{"files":{"readme":"README.md","changelog":null,"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":"2015-09-19T04:08:45.000Z","updated_at":"2020-10-07T13:04:03.000Z","dependencies_parsed_at":"2024-11-19T12:38:47.476Z","dependency_job_id":"d5663236-547d-418d-af32-e1045c1c4d47","html_url":"https://github.com/slaveofcode/rajaongkir","commit_stats":{"total_commits":26,"total_committers":4,"mean_commits":6.5,"dds":"0.11538461538461542","last_synced_commit":"cf6a3d4f6246e10aeb40b5daf7cbce0e23910155"},"previous_names":[],"tags_count":6,"template":false,"template_full_name":null,"purl":"pkg:github/slaveofcode/rajaongkir","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Frajaongkir","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Frajaongkir/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Frajaongkir/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Frajaongkir/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/slaveofcode","download_url":"https://codeload.github.com/slaveofcode/rajaongkir/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/slaveofcode%2Frajaongkir/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":270470174,"owners_count":24589298,"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","status":"online","status_checked_at":"2025-08-14T02:00:10.309Z","response_time":75,"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":[],"created_at":"2024-11-19T12:29:01.403Z","updated_at":"2026-02-08T08:03:36.691Z","avatar_url":"https://github.com/slaveofcode.png","language":"Python","readme":"[![Build Status](https://travis-ci.org/slaveofcode/rajaongkir.svg?branch=master)](https://travis-ci.org/slaveofcode/rajaongkir) [![GitHub license](https://img.shields.io/github/license/mashape/apistatus.svg)](https://github.com/slaveofcode/rajaongkir/blob/master/LICENSE)\n\n# rajaongkir\nSimple Python module to grab api data from rajaongkir.com (http://rajaongkir.com/dokumentasi/starter), \nyou can use it by Django, Flask or any framework you used.\n\nIf you have no `ApiKey` to use, you can create one here: [http://rajaongkir.com/akun/daftar](http://rajaongkir.com/akun/daftar)\n \n## Install\n    # Directly install from last stable release\n    \n    pip install git+ssh://git@github.com/slaveofcode/rajaongkir@1.1.1\n    \n    # Or with official pypi\n    \n    pip install rajaongkir\n \n## How to Use ?\n\n    from rajaongkir import RajaOngkirApi\n    \n    # initialization\n    api = RajaOngkirApi(api_key='YourRajaOngkirApiKeyHere')\n    \n    # get province list\n    list_of_city = api.provinces()\n    # returned values will be a list of provinces [{'province': 'Jawa Barat', ...}]\n    \n    # get city list\n    list_of_city = api.cities()\n    # returned values will be a list of cities [{'city_name': 'Bekasi', city_id: 55, ...}]\n    \n    # get cities based on province_id \n    list_of_city = api.cities_by_province(9)\n    # [{'city_name': 'Bekasi', 'city_id': 55, 'type': 'Kota', ...}, {'city_name': 'Bandung', 'city_id': 23, 'type': 'Kota', ...}]\n     \n    # get city by id\n    city = api.city_by_id(55)\n    # {'city_name': 'Bekasi', city_id: 55, ...}\n    \n    # get the cost (55 is Bekasi, 23 is Bandung, 1000 grams = 1 kg, 'all' = all courier\n    # available courier is 'all', 'jne', 'tiki' and 'pos'\n    cost = api.cost_between_city(55, 23, 1000, 'all')\n\n\n## Run The Test\n\nI'm using unittest to test the whole functionality of RajaOngkirApi class, \nyou can run it by using console or set your test in pycharm using Unittest configuration\n \nPlease take a note you must set your `API_KEY` inside of rajaongkirapi_tests.py to make sure the api works\n\nHere's some sample while you runs the test over the console or terminal\n\n    \u003e\u003e python test/unit/rajaongkirapi_test.py\n    \n    \u003e\u003e Ran 7 tests in 4.322s\n    \n    \u003e\u003e OK\n    \nOther choice you can run the test by using nosetests, make sure nosetest already installed, \nor you can run command `pip install nose` to install them\n\n    \u003e\u003e nosetests\n    \n    \u003e\u003e ----------------------------------------------------------------------\n    \n    \u003e\u003e Ran 7 tests in 4.899s\n    \n    \u003e\u003e OK\n\n    \n\n    \n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaveofcode%2Frajaongkir","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fslaveofcode%2Frajaongkir","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fslaveofcode%2Frajaongkir/lists"}