Skip to content

API yang menyediakan data nama Provinsi, Kabupaten/Kota, Kecamatan, dan Kelurahan di seluruh Indonesia. An API that provides the names of Province, Districts, Sub Districts and Urban in Indonesia

License

Notifications You must be signed in to change notification settings

Strayneko/API-Lokasi-Indonesia

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

API Lokasi Indonesia

An API that provices the names of Province, Districts, Sub Districts and Urban in Indonesia

Getting Started

1.Clone project repository

    git clone https://github.com/RennnD/API-Lokasi-Indonesia.git

2.Change directory to repository folder

    cd API-Lokasi-Indonesia

3.Install all dependencies required for this project

    pip install -r requirements.txt

4.Run the local server

  • windows
    python main.py
  • Mac/Linux
    python3 main.py

Basic Usage

Base URL

http://127.0.0.1:8000

Endpoint Docs

http://127.0.0.1:8000/docs

Endpoint Method Parameter Type Description
/api/provinsi GET None None Show all Provinsi
/api/kabupaten GET None None Show all kabupaten
/api/kabupaten/{id_provinsi} GET id_provinsi Integer 0-9 Show kabupaten by id_provinsi (see id from /api/provinsi)
/api/kecamatan?limit=10&offset=0 GET limit & offset Integer 0-9 Show all Kecamatan
/api/kecamatan/{id_kabupaten} GET id_kabupaten Integer 0-9 Show Kecamatan by id_kabupaten (see id from /api/kabupaten)
/api/kelurahan?limit=10&offset=0 GET limit & offset Integer 0-9 Show all Kelurahan
/api/kelurahan/{id_kecamatan} GET id_kecamatan Integer 0-9 Show Kelurahan by id_kecamatan (see id from /api/kecamatan)
/api/search/{area_type}/{id_area} GET area_type & id_area String provinsi, kabupaten, kelurahan & Integer 0-9 Filter data by id_area
/api/search/{area_type}/?keyword= GET keyword String a-Z Search data by keyword

Public Use

https://strayneko.fly.dev/

License

This project is licensed under the Apache License, Version 2.0.

About

API yang menyediakan data nama Provinsi, Kabupaten/Kota, Kecamatan, dan Kelurahan di seluruh Indonesia. An API that provides the names of Province, Districts, Sub Districts and Urban in Indonesia

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages