{"repo":"mistval/unofficial-jisho-api","free":true,"listed":false,"github":"https://github.com/mistval/unofficial-jisho-api","clone":"git clone https://github.com/mistval/unofficial-jisho-api.git","description":"Encapsulates the official Jisho.org API and also provides kanji, example, and stroke diagram search.","language":"JavaScript","stars":175,"topics":["jisho","dictionary","japanese","japanese-language","api"],"license":"MIT","category":"api-integrations-sdks","readme_excerpt":"unofficial-jisho-api This module encapsulates the official Jisho.org API and also provides kanji and example search features that scrape Jisho.org. This module is intended for server-side use cases. It might be possible to use this module in a browser application, but you are likely to encounter CORS errors, and would need to use a proxy server to circumvent them. Installation In a Node.js project: npm install unofficial-jisho-api Basic usage Below are some basic examples. There's more detailed documentation here. Word/phrase search (provided by official Jisho API) This returns the same results as the official Jisho.org API. See the discussion of that here. Kanji search This outputs the following: Example search This outputs the following: Word/phrase scraping This scrapes the word/phrase page on Jisho.org. This can get you some data that the official API doesn't have, such as JLPT level and part-of-speech. The official API ( searchForPhrase ) should be preferred if it has the data you need. This outputs the following: CommonJS You can require this module as a CommonJS module. Just const JishoAPI = require('unofficial-jisho-api'); . Parsing HTML strings You can provide the HTML responses from Jisho yourself. This can be useful if you need to use a CORS proxy or something. You can do whatever you need to do to get the HTML and then provide it to this module's parsing functions. For example: Parse kanji page HTML Parse example page HTML Parse phrase page HTML About Permission t","default_branch":null,"files":null,"tree":[],"storefront":"/r/mistval","claimed":false,"request_supported":{"post":"https://gitbuyer.com/r/mistval/unofficial-jisho-api/request-supported","requests":0},"note":"indexed from public GitHub; nothing is for sale on this page. Clone it from GitHub. Paid listings live at /search."}