# Introduction

PublicRestAPi adalah layanan yang menyediakan RESTfullApi yang bisa anda pakai secara Gratis.

Jika Anda bingung cara pake Rest APi ini, bisa contek Source Code berikut.

Informasi: Setiap request ke API, jangan lupa sertakan juga headers di bawah ini:

{
    "Accept": "application/json",
    "Content-Type": "application/json",
    "Connection": "keep-alive",
    "Authorization": "Bearer API_TOKEN_HERE"
}                                    

Jika anda mengakses API Login, hapus header "Authorization" :

{
    "Authorization": "Bearer API_TOKEN_HERE"
}                                    

Jika terdapat icon ini maka api tersebut membutuhkan APi Token.

# Login

Dapatkan info api token dengan login melalui api.

FieldTypeRequiredDescription
emailemailYesEmail kamu
passwordYesPassword kamu
### Example Request ###
import requests

def main():
    response = requests.post("https://afara.my.id/api/v3/login", data = '{"email": "[email protected]", "password": "12345678"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Anime Random Image

Random gambar anime.

### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/anime-random-image", headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()

### Example Response ###
{
    "image": "https://cdn.discordapp.com/attachments/688526480069885997/688608696250662942/AmistaAnime.jpg"
}                                    

# Anime Video Scraper

Scraper video anime.

FieldTypeRequiredDescription
qstringYesKata kunci
FieldTypeRequiredDescription
urlurlYesURl 'anime'
FieldTypeRequiredDescription
urlurlYesURl 'episode'
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/anime-video-scraper/search", data = '{"q": "naruto"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()

### Example Response ###
[
    {
        "title": "Naruto",
        "link": "https:\/\/awsubs.co\/anime\/naruto\/"
    },
    {
        "title": "Boruto: Naruto Next Generations",
        "link": "https:\/\/awsubs.co\/anime\/boruto-naruto-next-generations\/"
    },
    {
        "title": "Boruto: Naruto the Movie",
        "link": "https:\/\/awsubs.co\/anime\/boruto-naruto-the-movie\/"
    },
    {
        "title": "Naruto Shippuuden Movie 7 \u2013 The Last",
        "link": "https:\/\/awsubs.co\/anime\/naruto-shippuuden-movie-7-the-last\/"
    },
    {
        "title": "Naruto: Honoo no Chuunin Shiken! Naruto vs. Konohamaru!!",
        "link": "https:\/\/awsubs.co\/anime\/naruto-honoo-no-chuunin-shiken-naruto-vs-konohamaru\/"
    },
    {
        "title": "Naruto Shippuden \u2013 Sunny Side Battle Jump Festa OVA",
        "link": "https:\/\/awsubs.co\/anime\/naruto-shippuden-sunny-side-battle-jump-festa-ova\/"
    },
    {
        "title": "Naruto: Shippuden Movie 5 \u2013 Blood Prison",
        "link": "https:\/\/awsubs.co\/anime\/naruto-shippuden-movie-5-blood-prison\/"
    },
    {
        "title": "Naruto: Shippuden Movie 6 \u2013 Road to Ninja",
        "link": "https:\/\/awsubs.co\/anime\/naruto-shippuden-movie-6-road-to-ninja\/"
    }
]                                    

# Avatar Generator

Random avatar.

FieldTypeRequiredDescription
namestringNoNama
colorstringNoWarna tulisan
backgroundstringNoWarna backgroud
<!-- Example Request -->
<img src="https://afara.my.id/api/v3/avatar-generator?name=RyoDev&color=7F9CF5&background=EBF4FF" alt="Profile">                                    

# Bitly Shortener

Perpendek URl.

FieldTypeRequiredDescription
long_urlurlYesURl yang mau di perpendek.
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/bitly-shortener", data = '{"long_url": "https://ytryo.my.id"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()

### Example Response ###
{
    "created_at": "2020-09-08T01:05:39+0000",
    "link": "https://bit.ly/2FgzeBG",
    "long_url": "https://ytryo.my.id/"
}                                    

# Brainly Scraper

FieldTypeRequiredDescription
qstringYesKata kunci pencarian.
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/brainly-scraper", data = '{"q": "Apa itu lombok?"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                    

# Cinema21 Scraper

Nyari film di Cinema21 aja.

FieldTypeRequiredDescription
qstringYesKata kunci
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/cinema21-scraper", data = '{"q": "Ip Man"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Comicast

Komik scraper.

### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/comicast", headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# DNS Lookup

FieldTypeRequiredDescription
domainstringYesDomain
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/dns-lookup", data = '{"domain": "github.com"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Earthquake

Info gempa live.

### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/earthquake", headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# E-Book

Nyari E-book?

FieldTypeRequiredDescription
qstringYesKata kunci
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/ebook", data = '{"q": "Bahasa Indonesia"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Email Sender

Email sender.

FieldTypeRequiredDescription
fromstringYesDari email
tostringYesKe email
subjectstringYesJudul email
bodystringYesPesan email
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/email-sender", data = '{"from": "[email protected]", "to": "[email protected]", "subject": "Test", "body": "Hello World"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()
    
### Example Response ###
{
    "success": "Email sent successfully."
}                                        

# Fake Data Generator

Fake data generator.

FieldDefaultValueTypeRequiredDescription
subname, address, ipv4, ipv6, email, userAgent, text, title, userName or domainNamestringYesType data yang akan di generate
limit11 - 20integerNoBanyak data yang akan di generate
localeid_IDid_ID, en_US and morestringNoType data yang akan di generate sesuai negara
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/fake-data-generator", data = '{"sub": "email", "limit": "3", "locale": "id_ID"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()

### Example Response ###
[
    "[email protected]",
    "[email protected]",
    "[email protected]"
]                                        

# Freepik Scraper

Nyari logo design di freepik aja.

FieldTypeRequiredDescription
qstringYesKata kunci
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/freepik-scraper", data = '{"q": "Indonesia merdeka"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# File Info Mediafire

Info file Mediafire.

FieldTypeRequiredDescription
urlurlYesURl file
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/fileinfo-mediafire", data = '{"url": "https://www.mediafire.com/file/1q9de86yjco4vf9/BIGO_LIVE_v4.31.2_Apk_Unlimited_Diamond-casdiro.com.apk/file"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()

### Example Response ###
{
    "filename": "BIGO LIVE v4.31.2 Apk Unlimited Diamond-casdiro.com.apk",
    "size": "49.53MB",
    "uploaded_at": "2020-03-19 02:07:37",
    "link": "https:\/\/www.mediafire.com\/download_repair.php?qkey=1q9de86yjco4vf9&dkey=26onhmc8hy6&template=1&origin=click_button"
}                                        

# Free Email Generator

Dapatkan email gratis.

### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/free-email-generator", headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()

### Example Response ###
{
    "email": "[email protected]"
}                                        

# Get User Info

Dapatkan info user seperti name, email, dan role dengan api token.

### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/user", headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()
    
### Example Response ###
{
    "data": {
        "name": "Yt Ryo",
        "email": "[email protected]",
        "email_verified_at": "2020-11-09T23:49:53.000000Z",
        "role": {
            "id": 3,
            "name": "Regular"
        }
    }
}                                        

# Get Youtube Video Link

Ambil link video Youtube.

FieldTypeRequiredDescription
urlurlYesURl video
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/get-youtube-video-link", data = '{"url": "https://youtu.be/3zQM4Ik55Jo"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Get Instagram Media Link

Ambil link media Instagram.

FieldTypeRequiredDescription
urlurlYesURl post
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/get-instagram-media-link", data = '{"url": "https://www.instagram.com/p/CG2INaKJYsx/"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Get Facebook Video Link

Ambil link video Facebook.

FieldTypeRequiredDescription
urlurlYesURl video
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/get-facebook-video-link", data = '{"url": "https://www.facebook.com/vivacoid/videos/787040808801989"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()

### Example Response ###
{
    "sd_link": "https://video.fdps5-1.fna.fbcdn.net/v/t42.1790-2/120317438_1647601858746965_8598013286796337953_n.mp4?_nc_cat=108&ccb=2&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6InN2ZV9zZCJ9&_nc_ohc=RAXiOqrs5x0AX8re3kd&_nc_ht=video.fdps5-1.fna&oh=9c9c20e6675572d091c7fe44c503cefa&oe=5FAAF529",
    "hd_link": "https://scontent.fdps5-1.fna.fbcdn.net/v/t66.36240-6/10000000_903932320010721_1437410159349690563_n.mp4?_nc_cat=103&ccb=2&_nc_sid=985c63&efg=eyJ2ZW5jb2RlX3RhZyI6Im9lcF9oZCJ9&_nc_ohc=uVwJuWx-d4oAX9oohp9&_nc_ht=scontent.fdps5-1.fna&oh=46edda5f9894f6dcbab3563ecfcad527&oe=5FCFD23B"
}                                        

# Github User

Lihat informasi pengguna Github.

FieldTypeRequiredDescription
usernamestringYesUsername pengguna
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/github-user", data = '{"username": "ytryo"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Google Scraper

Google search engine.

FieldTypeRequiredDescription
qstringYesKata kunci
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/google-scraper", data = '{"q": "Pulau Lombok"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Highlight Code

Highlight code.

FieldTypeRequiredDescription
bodystringYesSource code

# Html Viewer

Lihat source code Html halaman website.

FieldTypeRequiredDescription
urlurlYesWebsite page url

# Image Scraper

Image scraper.

FieldTypeRequiredDescription
qstringYesKata kunci
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/image-scraper", data = '{"q": "Lombok"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Instagram User

Lihat informasi pengguna Instagram.

FieldTypeRequiredDescription
usernamestringYesUsername pengguna
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/instagram-user" data = '{"username": "ytryo_"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Indonesian Territory

Wilayah indonesia.

FieldTypeRequiredDescription
districtstringYesKecamatan.
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/indonesian-territory", data = '{"district": "masbagik"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# IP Geolocation

Lacak lokasi IP Address.

FieldTypeRequiredDescription
ipaddressstringYesIP Address atau Hostname
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/ip-geolocation", data = '{"ip": "172.67.162.221"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()
    
### Example Response ###
{
    "status": "success",
    "country": "United States",
    "countryCode": "US",
    "region": "IL",
    "regionName": "Illinois",
    "city": "Chicago",
    "zip": "60666",
    "lat": 41.8781,
    "lon": -87.6298,
    "timezone": "America/Chicago",
    "isp": "Cloudflare, Inc.",
    "org": "Cloudflare, Inc.",
    "as": "AS13335 Cloudflare, Inc.",
    "query": "172.67.162.221"
}                                        

# Joox Music

Joox music.

FieldTypeRequiredDescription
qstringYesNama lagu
FieldTypeRequiredDescription
idstringYesId album
FieldTypeRequiredDescription
idstringYesId musik
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/joox/search", data = '{"q": "Wakil Rakyat"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# My Public IP

Lihat IP Public kamu.

// Example Response
192.168.2.1                                    

# Port Scanner

Scan port.

FieldTypeRequiredDescription
hostnamestringYesIP Address atau Hostname
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/port-scanner", data = '{"hostname": "github.com"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Prank Call Greater Jakarta

Prank Call.

FieldTypeRequiredDescription
numberintegerYesNomer telp target
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/prank-call-greater-jakarta", data = '{"number": "81231232321"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Prank Call Jagreward

Prank Call.

FieldTypeRequiredDescription
numberintegerYesNomer telp target

# Quote Generator

Quote generator.

### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/quote-generator", headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Sim Simi

Ayo chat sama bot.

FieldTypeRequiredDescription
textstringNoPesan
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/sim-simi", data = '{"text": "Hello simsimi"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()

### Example Response ###
{
    "response": "science Saya Suka simsimi simsimi simsimi lucky"
}                                        

# Translate

Text translate.

FieldTypeRequiredDescription
textstringYesText
tostringYesKode bahasa
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/translate", data = '{"text": "Hello World", "to": "id"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()

### Example Response ###
{
    "success": "Hallo Dunia"
}                                        

# Web Page Scanner Info

Scan halaman web.

FieldTypeRequiredDescription
urlurlYesURl halaman web yang akan di scan
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/web-page-scanner-info", data = '{"url": "https://github.com"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Web Page Screenshot

Screenshot halaman web.

FieldDefaultTypeRequiredDescription
urlurlYesURl halaman web yang akan di screenshot
no_adsfalsebooleannoDisable ADS
full_pagefalsebooleannoFullkan tampilan halaman
delaynullintegernoWaktu tunggu
widthautointegernoLebar image
heightautointegernoTinggi image
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/web-page-screenshot", data = '{"url": "https://github.com"}',headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Web Page Crawling

Crawl halaman web.

FieldTypeValueRequiredDescription
urlurlYesURl halaman web yang akan di crawl
typestringShowYes
CodeTagNameDescription
1aCrawl URl tag "a"
2linkCrawl URl tag "link"
3scriptCrawl URl tag "script"
4imgCrawl URl tag "img"
alla, link, script & imgCrawl URl tag "a, link, script & img"
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/web-page-crawling", data = '{"url": "https://github.com", "type": "1"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Weather Forecast

Info cuaca.

FieldTypeRequiredDescription
citystringYesNama kota
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/weather-forecast", data = '{"city": "lombok"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Weather 2

Info cuaca 2.

FieldTypeRequiredDescription
territorystringYesNama Provinsi

# Wiki Pedia

Cari informasi di wikipedia aja.

FieldTypeRequiredDescription
qstringYesKata kunci pencarian.
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/wiki-pedia", data = '{"q": "Lombok"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()                                        

# Writing Bot

Bot nulis.

FieldTypeRequiredDescription
textstringYesMau nulis apa?
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/writing-bot", data = '{"text": "Hello World"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()

### Example Response ###
{
    "url": "https://i.ibb.co/GnzvLzP/cab6bed7fc25.jpg"
}                                        

# Youtube Mp4

Youtube video downloader.

FieldTypeRequiredDescription
urlurlYesLink video youtube.
### Example Request ###
import requests

def main():
    response = requests.get("https://afara.my.id/api/v3/ytmp4", data = '{"url": "https://www.youtube.com/watch?v=wFpIRcuOIm0"}', headers = {
        "Accept": "application/json",
        "Content-Type": "application/json",
        "Connection": "keep-alive",
        "Authorization": "Bearer API_TOKEN_HERE"
    }).json()
    print(response)

if __name__ == "__main__":
    main()

### Example Response ###
{
    "url": "http://ryodev-restapi.herokuapp.com/caches/88451.mp4",
    "msg": "The video will be deleted automatically after 30 minutes."
}