krion
at 2022-01-16 05:24:22 UTC
Although it doesn't have the same amount of data as Jisho, you could try to use KanjiAPI instead:
https://kanjiapi.dev/
But I agree that ideally both the Jisho API and the website should have the same funtionalities.
les_crutons_count
at 2022-01-16 13:05:44 UTC
Thanks! I'll give that a shot as an alternative -- does look like it will probably be sufficient for my immediate needs.
Kimtaro Admin
at 2022-01-18 03:09:46 UTC
@les_crutons_count Sorry there is currently no kanji data in the Jisho API. I will add it add some point in the future, but for now your best bet is probably kanjiapi.dev
Log in to reply.
Can I search for kanji (rather than words) in the Jisho API?
Example: if I manually search Jisho for "弘", I arrive at the URL https://jisho.org/search/%E5%BC%98, with first hit 広い.
If I instead search Jisho manually for "弘 #kanji", my first hit describes the Kanji, like:
弘
5 strokes
Radical: bow 弓
...
When accessing Jisho programmatically, I can use "http://beta.jisho.org/api/v1/search/words?keyword=弘" to get behavior like the first result (word results), but I'm not sure how to get behavior like the second result (kanji results), and aside from one very long thread in the forums, I haven't been able to find Jisho API documentation. Is there a way to limit a search result to Kanji in the Jisho API?