Hello Detectives! This API will allow you to search raw data about Detective Conan characters and cases, derived from the Detective Conan World wiki. Why? Because nothing has existed like this before and Detective Conan is an institution.
The data is stored in JSON files that are loaded into a database on the server, accessible via a Weppy REST API, which you can self-host if you accept CoAi as your One True Pairing. Right now, that database is SQLite, but it will be changed to PostgreSQL when it would make sense to do so. Eventually, I'll set up a demonstration box and write a Python wrapper for this API, but this project is in early stages.
-
Clone this repository.
git clone https://github.com/lethargilistic/dcapi.git
-
Install Weppy.
pip install weppy
-
Create
keys.py
and defineDB_PIPE_KEY
as astr
for use as your database key. -
Initialize the database.
weppy -a dcapi setup
-
Run the Weppy development server.
weppy -a dcapi run
-
Make the API calls. Weppy defaults to
127.0.0.1:8000
.
Here is an example GET request for data on a character:
GET [api_url]/v0/character/[character_id]
You can also search a character by name, whether that's their name in Japanese or romanji, or their name from the Funimation English dub and manga.
GET [api_url]/v0/character/Ai Haibara
- Character data (characters major enough to have their own page on Detective Conan World only)
- Case data (manga and anime only)
- Crossreferencing characters in cases (See the cases where Conan and Ai both appear)
- Migrate from SQLite to PostgreSQL.
- Create a command to set the database key? 770?
- Use search library for text search. Whoosh?