API Documentation

KanColle's API is a messy REST API that takes the word "redundant" to a new level.

Fortunately for us, all data is plain JSON authorized only by your API Token.
Less fortunately, all images and such are embedded into SWF files, and are a pain to get out of there.

All API Calls are POST Requests, and the base URL is http://[Server IP]/kcsapi/, where [Server IP] is the IP of the admiral's home server.
Talking to the wrong server will only get you errors.

All endpoints take two common parameters, which must be form-encoded in the request body:

/api_get_master/ship

Returns information about all shipgirls known to the game (including enemies).

Warning: The response data is VERY BIG (>500kb).

Params:

Response: array

/api_get_master/stype

Returns meta-info about ship types

Params:

Response: array

/api_get_master/furniture

Returns information about all available furniture in the game

Params:

Response: array

/api_get_master/slotitem

Returns information about all equippable items in the game

Params:

Response: array

/api_get_master/useitem

Returns information about all consumable items in the game

Params:

Response: array

/api_get_master/maparea

Returns information about sortie maps

Params:

Response: array

/api_get_master/mapcell

???

Params:

Response: object

/api_get_member/basic

Returns information on the current admiral

Params:

Response: object

/api_get_member/record

Returns more information about you

Params:

Response: array

/api_get_member/ship

Returns information about your ships

Params:

Response: array

/api_get_member/deck

Returns information about your fleets

Params:

Response: array

/api_get_member/material

Returns information about your resources.

  1. Fuel
  2. Ammo
  3. Steel
  4. Bauxite
  5. Instant Construction
  6. Instant Repair
  7. Development Material

Params:

Response: array

/api_get_member/ship2

???

Params:

Response: object

/api_get_member/ship3

???

Params:

Response: object

/api_get_member/ndock

Returns information about your repair docks.

Params:

Response: array

/api_get_member/kdock

Returns information about your crafting docks.

Params:

Response: array

/api_get_member/furniture

Returns information about your furniture.

Params:

Response: array

/api_get_member/slotitem

Returns information about your equippable items.

Response is a subset of /apigetmaster/slotitem, with blank (but still present) apiinfo field, no apisortno and the extra response data listed below. Yes, I was too lazy to write it all over again, you caught me.

Params:

Response: array

/api_get_member/useitem

Returns information about your consumable items.

Params:

Response: array

/api_get_member/actionlog

Returns a journal of sorts of past in-game events.

Params:

Response: array

/api_get_member/logincheck

???

Params:

Response: object

/api_req_hokyu/charge

Called when you resupply your ships

Params:

Response: object

/api_req_map/start

Starts a sortie

Params:

Response:

/api_req_sortie/battle

Tells the client what happened during a day battle

Params:

Response:

/api_req_sortie/battleresult

Final results of a battle

Params:

Response:

/api_req_battle_midnight/battle

Tells the client what happened during a night battle

Params:

Response: