API for Yad2 Website
npm i yad2.js
- Head over to https://yad2.co.il
- Search for something
- Apply filters as you wish
- Copy the following into the console. every time you apply filter - you will get the complete
URL
XMLHttpRequest.prototype.open = (method, url) => {
if (/\/feed-search-legacy|\/api\/feed\//.test(url)) alert("Copy this URL: " + url)
else originalOpen.apply(this, arguments)
}
- Copy the URL and use it
import { feedSearch } from 'yad2.js'
const {responseData} = feedSearch('<URL>')
console.log(responseData.data) // TypeScript friendly!
- โ TypeScript friendly
- ๐ Super Lightweight
- ๐ Fast
Solve Captches using 2captcha