$ npm install moe-api
import TraceMoe from 'moe-api'
const moe = new TraceMoe()
const TraceMoe = require('moe-api').default
const moe = new TraceMoe()
const moe = new TraceMoe({
apiKey: 'ABC',
cutBorders: false,
anilistInfo: true,
mute: false,
size: 1
})
apiKey
: Your API key, you can safely ignore this if you don't have it.cutBorders
: Cut away unnecessary parts of the images that would affect search results accuracy. Default isfalse
.anilistInfo
: Include AniList info. Default istrue
.mute
: Mute generated video. Default isfalse
.size
: Size of generated media.0
small,1
medium, and2
large. Default is1
.
import TraceMoe from 'moe-api'
const moe = new TraceMoe()
async function sourceFromUrl(url) {
const res = await moe.traceFromUrl(url)
console.log(res)
}
sourceFromUrl('https://images.plurk.com/32B15UXxymfSMwKGTObY5e.jpg')
moe.traceFromUrl(url)
url
string of media URL that can be decoded byffmpeg
.
Get source from given media URL.
moe.traceFromFile(filePath)
filePath
string of existing media path.
Get source from given file.
moe.traceFromBase64(base64)
base64
string of Base64 or data URL.
Get source from Base64 string or data URL.
moe.me()
Check the search quota and limit for your account (with API key) or IP address (without API key).
For more info please check trace.moe API docs.
moe-api © SlavyanDesu, released under the MIT License. Authored and maintained by SlavyanDesu.