This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| { | |
| "openapi": "3.0.0", | |
| "info": { | |
| "title": "Siputzx API", | |
| "version": "1.0.0", | |
| "description": "A versatile API server with a wide range of endpoints, including AI-powered services, anime content scraping, file downloads, and Cloudflare AI integrations." | |
| }, | |
| "tags": [ | |
| { | |
| "name": "AI", |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const axios = require('axios'); | |
| const FormData = require('form-data'); | |
| const getVideoData = async (url, format = 'mp4') => { | |
| try { | |
| const formDataInfo = new FormData(); | |
| formDataInfo.append('url', url); | |
| const { data: info } = await axios.post('https://ytdown.siputzx.my.id/api/get-info', formDataInfo, { | |
| headers: { ...formDataInfo.getHeaders() } |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| const axios = require('axios'); | |
| const cheerio = require('cheerio'); | |
| const url = require('url'); | |
| class YoutubeConverter { | |
| constructor() { | |
| this.headers = { | |
| 'accept': 'text/html,application/xhtml+xml,application/xml;q=0.9,image/avif,image/webp,image/apng,*/*;q=0.8,application/signed-exchange;v=b3;q=0.7', | |
| 'accept-language': 'id-ID,id;q=0.9,en-US;q=0.8,en;q=0.7', | |
| 'user-agent': 'Mozilla/5.0 (Linux; Android 10; K) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Mobile Safari/537.36', |