Dokumentasi Open API
 
Blue
X
 
X
 
Parameter

No Parameter Keterangan
1 cmd adalah parameter untuk method yang akan dipanggil, terdapat dua method yaitu search dan browse
2 tps_id adalah parameter untuk method yang akan dipanggil, terdapat 1 method yaitu search
3 kel_id adalah parameter untuk method yang akan dipanggil, terdapat 1 method yaitu browse
4 kec_id adalah parameter untuk method yang akan dipanggil, terdapat 1 method yaitu browse
5 kab_id adalah parameter untuk method yang akan dipanggil, terdapat 1 method yaitu browse
6 pro_id adalah parameter untuk method yang akan dipanggil, terdapat 1 method yaitu browse
7 jadwal_id adalah parameter untuk method yang akan dipanggil, terdapat 1 method yaitu browse
 
Contoh Request Browse Berdasarkan kel_id

http://tps.kpu.go.id/api.php?cmd=browse&kel_id=79021&jadwal_id=7
Contoh Response Browse Berdasarkan kel_id

1	[{"tps_id":"327565",
2	"jadwal_id":"7",
3	"pro_id":"78203",
4	"kab_id":"79019",
5	"kec_id":"79020",
6	"kel_id":"79021",
7	"num_tps":"1",
8	"address":"",
9	"rt":"0",
10	"rw":"0",
11	"lat":"0",
12	"lon":"0",
13	"jumlah":"500",
14	"max_pertps":"500",
15	"type":"umum",
16	"remark":"Pemilu Nasional 2014",
17	"created_id":"2997",
18	"created_date":"2013-04-21 19:54:05",
19	"approved_id":"2997",
20	"appoved_date":"2013-04-21 19:54:05",
21	"status":"disetujui",
22	"kpps":""},

1	{"tps_id":"327566",
2	"jadwal_id":"7",
3	"pro_id":"78203",
4	"kab_id":"79019",
5	"kec_id":"79020",
6	"kel_id":"79021",
7	"num_tps":"2",
8	"address":"",
9	"rt":"0",
10	"rw":"0",
11	"lat":"0",
12	"lon":"0",
13	"jumlah":"500",
14	"max_pertps":"500",
15	"type":"umum",
16	"remark":"Pemilu Nasional 2014",
17	"created_id":"2997",
18	"created_date":"2013-04-21 19:54:06",
19	"approved_id":"2997",
20	"appoved_date":"2013-04-21 19:54:06",
21	"status":"disetujui",
22	"kpps":""},

1	{"tps_id":"327567",
2	"jadwal_id":"7",
3	"pro_id":"78203",
4	"kab_id":"79019",
5	"kec_id":"79020",
6	"kel_id":"79021",
7	"num_tps":"3",
8	"address":"",
9	"rt":"0",
10	"rw":"0",
11	"lat":"0",
12	"lon":"0",
13	"jumlah":"497",
14	"max_pertps":"500",
15	"type":"umum",
16	"remark":"Pemilu Nasional 2014",
17	"created_id":"2997",
18	"created_date":"2013-04-21 19:54:06",
19	"approved_id":"2997",
20	"appoved_date":"2013-04-21 19:54:06",
21	"status":"disetujui",
22	"kpps":""}]


Contoh Request Browse Berdasarkan kec_id

http://tps.kpu.go.id/api.php?cmd=browse&kec_id=74965&jadwal_id=7
Contoh Response Browse Berdasarkan kec_id

1	[{"tps_id":"327487",
2	"jadwal_id":"7",
3	"pro_id":"78203",
4	"kab_id":"79019",
5	"kec_id":"79020",
6	"kel_id":"79033",
7	"num_tps":"1",
8	"address":"",
9	"rt":"0",
10	"rw":"0",
11	"lat":"0",
12	"lon":"0",
13	"jumlah":"500",
14	"max_pertps":"500",
15	"type":"umum",
16	"remark":"Pemilu Nasional 2014",
17	"created_id":"2997",
18	"created_date":"2013-04-21 19:32:44",
19	"approved_id":"2997",
20	"appoved_date":"2013-04-21 19:32:44",
21	"status":"disetujui",
22	"kpps":""},

1	{"tps_id":"327488",
2	"jadwal_id":"7",
3	"pro_id":"78203",
4	"kab_id":"79019",
5	"kec_id":"79020",
6	"kel_id":"79033",
7	"num_tps":"2",
8	"address":"",
9	"rt":"0",
10	"rw":"0",
11	"lat":"0",
12	"lon":"0",
13	"jumlah":"499",
14	"max_pertps":"500",
15	"type":"umum",
16	"remark":"Pemilu Nasional 2014",
17	"created_id":"2997",
18	"created_date":"2013-04-21 19:33:05",
19	"approved_id":"2997",
20	"appoved_date":"2013-04-21 19:33:05",
21	"status":"disetujui",
22	"kpps":""},

1	{"tps_id":"327489",
2	"jadwal_id":"7",
3	"pro_id":"78203",
4	"kab_id":"79019",
5	"kec_id":"79020",
6	"kel_id":"79033",
7	"num_tps":"3",
8	"address":"",
9	"rt":"0",
10	"rw":"0",
11	"lat":"0",
12	"lon":"0",
13	"jumlah":"499",
14	"max_pertps":"500",
15	"type":"umum",
16	"remark":"Pemilu Nasional 2014",
17	"created_id":"2997",
18	"created_date":"2013-04-21 19:33:14",
19	"approved_id":"2997",
20	"appoved_date":"2013-04-21 19:33:14",
21	"status":"disetujui",
22	"kpps":""}]

Contoh Request Browse Berdasarkan kab_id

http://tps.kpu.go.id/api.php?cmd=browse&kab_id=2&jadwal_id=7
Contoh Response Browse Berdasarkan kab_id

1	[{"tps_id":"57180",2
2	"jadwal_id":"7",
3	"pro_id":"78203",
4	"kab_id":"79019",
5	"kec_id":"79065",
6	"kel_id":"79079",
7	"num_tps":"1",
8	"address":"",
9	"rt":"0",
10	"rw":"0",
11	"lat":"0",
12	"lon":"0",
13	"jumlah":"163",
14	"max_pertps":"500",
15	"type":"umum",
16	"remark":"Pemilu Nasional 2014",
17	"created_id":"2997",
18	"created_date":"2013-04-14 10:32:47",
19	"approved_id":"2997",
20	"appoved_date":"2013-04-14 10:32:47",
21	"status":"disetujui",
22	"kpps":""},

1	{"tps_id":"319344",
2	"jadwal_id":"7",
3	"pro_id":"78203",
4	"kab_id":"79019",
5	"kec_id":"79038",
6	"kel_id":"79039",
7	"num_tps":"1",
8	"address":"",
9	"rt":"0",
10	"rw":"0",
11	"lat":"0",
12	"lon":"0",
13	"jumlah":"398",
14	"max_pertps":"500",
15	"type":"umum",
16	"remark":"Pemilu Nasional 2014",
17	"created_id":"2997",
18	"created_date":"2013-04-21 11:21:40",
19	"approved_id":"2997",
20	"appoved_date":"2013-04-21 11:21:40",
21	"status":"disetujui",
22	"kpps":""}]


Contoh Request Browse Berdasarkan pro_id

http://tps.kpu.go.id/api.php?cmd=browse&pro_id=78203&jadwal_id=7
Contoh Response Browse Berdasarkan pro_id

1	[{"tps_id":"50966",
2	"jadwal_id":"7",
3	"pro_id":"78203",
4	"kab_id":"80724",
5	"kec_id":"80725",
6	"kel_id":"86262",
7	"num_tps":"1",
8	"address":"",
9	"rt":"0",
10	"rw":"0",
11	"lat":"0",
12	"lon":"0",
13	"jumlah":"500",
14	"max_pertps":"500",
15	"type":"umum",
16	"remark":"Pemilu Nasional 2014",
17	"created_id":"2813",
18	"created_date":"2013-04-13 22:39:40",
19	"approved_id":"2813",
20	"appoved_date":"2013-04-13 22:39:40",
21	"status":"disetujui",
22	"kpps":""},

1	{"tps_id":"50967",
2	"jadwal_id":"7",
3	"pro_id":"78203",
4	"kab_id":"80724",
5	"kec_id":"80725",
6	"kel_id":"86262",
7	"num_tps":"2",
8	"address":"",
9	"rt":"0",
10	"rw":"0",
11	"lat":"0",
12	"lon":"0",
13	"jumlah":"492",
14	"max_pertps":"500",
15	"type":"umum",
16	"remark":"Pemilu Nasional 2014",
17	"created_id":"2813",
18	"created_date":"2013-04-13 22:39:40",
19	"approved_id":"2813",
20	"appoved_date":"2013-04-13 22:39:40",
21	"status":"disetujui",
22	"kpps":""},

1	{"tps_id":"50982",
2	"jadwal_id":"7",
3	"pro_id":"78203",
4	"kab_id":"80724",
5	"kec_id":"80725",
6	"kel_id":"86267",
7	"num_tps":"1",
8	"address":"",
9	"rt":"0",
10	"rw":"0",
11	"lat":"0",
12	"lon":"0",
13	"jumlah":"372",
14	"max_pertps":"500",
15	"type":"umum",
16	"remark":"Pemilu Nasional 2014",
17	"created_id":"2813",
18	"created_date":"2013-04-13 22:41:29",
19	"approved_id":"2813",
20	"appoved_date":"2013-04-13 22:41:29",
21	"status":"disetujui",
22	"kpps":""}]


Contoh Request Search

http://tps.kpu.go.id/api.php?cmd=search&tps_id=327950
Contoh Response Search

1	{"tps_id":"327950",
2	"jadwal_id":"7",
3	"pro_id":"78203",
4	"kab_id":"79019",
5	"kec_id":"83700",
6	"kel_id":"86719",
7	"num_tps":"1",
8	"address":"",
9	"rt":"0",
10	"rw":"0",
11	"lat":"0",
12	"lon":"0",
13	"jumlah":"146",
14	"max_pertps":"500",
15	"type":"umum",
16	"remark":"Pemilu Nasional 2014",
17	"created_id":"2997",
18	"created_date":"2013-04-21 20:48:12",
19	"approved_id":"2997",
20	"appoved_date":"2013-04-21 20:48:12",
21	"status":"disetujui",
22	"kpps":""}