The Tayara.tn scraper is a search API that returns Ads and their details. You can define filters to narrow your search results with region,min and max price.
MIT License
The Tayara.tn API is a search API that returns Ads and their details. You can define filters to narrow your search results with region,min and max price. Note: It can take up to a few minutes for an advanced search. This API is written in JS.
Returns json data about a Ads.
https://tayaratn.herokuapp.com/search
Method:
GET
URL Params
Required:
region=[region]&product=[product&keywords]&min=[minprice]&max=[maxprice]
Data Params
None
Success Response:
{"articles":[{"price":"1 000DT","link":"https://www.tayara.tn/fr/tunis/tlphones/iphone-6s_8268836.htm","title":"iphone 6s"},{"price":"1 000DT","link":"https://www.tayara.tn/fr/tunis/tlphones/iphone-6s_8268801.htm","title":"iphone 6s"},{...}
Error Response:
{ status : "error" }
Sample Call:
$.ajax({
url: "https://tayaratn.herokuapp.com/search?min=1000&max=1000®ion=tunis&product=iphone",
dataType: "json",
type : "GET",
success : function(r) {
console.log(r);
}
});
kerim selmi
MIT License