Unfortunately, it’s not that simple, as words are not included or not based on the kanji they contain but on their usefulness as words, for a learner on that level. You can see this here in Jisho: #jlpt-n5 - Jisho.org . In the JLPT those words will be used in hiragana and so that does not pose a problem.
Unfortunately, the JLPT tag is not exposed through Jisho’s API (there is a feature discussion which is 4 or 5 years old by now, so I don’t expect them to do anything about it at any point in time). When I wrote the JLPT indicator userscript I therefore decided to set up my own backend for that purpose. Feel free to pull the data from it that you need!