Jisho

×
8f4ddb1551bb7568bde1f22e1d30268b
3 Replies ・ Started by les_crutons_count at 2022-01-15 23:15:57 UTC ・ Last reply by Kimtaro Admin at 2022-01-18 03:09:46 UTC

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?

15852489a21bd5600c1a95364d3ca75a
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.

8f4ddb1551bb7568bde1f22e1d30268b
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.

2986330e38386f92fee4774b0c54ed66
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

to reply.