PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/bisexual?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/bisexual?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/blur?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/blur?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/circle?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/circle?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/colorviewer?hex=ffffff').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/colorviewer?hex=ffffff'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/heart?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/heart?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
{
hex: 'ffffff'
}
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/horny?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/horny?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/its-so-stupid?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/its-so-stupid?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/jpg?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/jpg?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/lesbian?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/lesbian?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/lgbt?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/lgbt?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/lied?username=Telk&avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/lied?username=Telk&avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/lolice?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/lolice?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/namecard?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/namecard?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/nobitches?no=no+sra+update').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/nobitches?no=no+sra+update'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/nonbinary?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/nonbinary?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/oogway?quote=sra+is+poggers').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/oogway?quote=sra+is+poggers'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/oogway2?quote=sra+is+poggers').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/oogway2?quote=sra+is+poggers'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/pansexual?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/pansexual?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/pixelate?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/pixelate?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
{
r: 255,
g: 255,
b: 255
}
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/simpcard?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/simpcard?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/spin?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/spin?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/tonikawa?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/tonikawa?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/transgender?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/transgender?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/tweet?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/tweet?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)
PNG image buffer
Status: 400 | Response type: json{
error: "missing x query"
}
Status: 429 | Response type: json{
"error": "Too many requests, please try again later."
}
const phin = require('phin')
let fs = require('fs')
phin('https://some-random-api.ml/canvas/blur?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png').then(res => {
if (res.statusCode !== 200) {
console.log('Bad status code')
console.log(JSON.parse(res.body))
}
fs.writeFile('./image.png', res.body, (err) => {
if (err) return console.log('Something went wrong when writing the file')
console.log('Image has been written')
})
})
from requests import get
from os import getcwd
URL = 'https://some-random-api.ml/canvas/blur?avatar=https://cdn.discordapp.com/avatars/560789882738573324/bc220b0eeeabbe234026e4881f3c3b9c.png'
resp = get(URL)
if resp.status_code == 200:
open('image.png', 'wb').write(resp.content)
print(f'File saved in {getcwd()}')
elif resp.status_code != 200:
jsonresp = resp.json()
print(resp.status_code)
print(jsonresp)