api2-moebooru

Api moebooru konachan.net (TypeScript)

Usage no npm install needed!

<script type="module">
  import api2Moebooru from 'https://cdn.skypack.dev/api2-moebooru';
</script>

README

Moebooru API

A API wrapper that reads the HTML of the site and extracts info

This library supports fetching:

  • Posts,
  • List of Posts,
  • tags/characters/parodies/catagories/groups/artists

Install

npm install --save api2-moebooru

API

const MoebooruAPI = require('api2-moebooru') 
const api = new MoebooruAPI();
api.post.id(297045).then((post)=> console.log(JSON.stringify(post, null, 2)));