Свежие объявления с телефонами, сразу в твой скрипт
Фильтры как в боте, в ответ объявления с телефонами продавцов. Каждый следующий запрос отдаёт только новое.
import requests
HEADERS = {"X-API-Key": "fp_ВАШ_КЛЮЧ"}
BODY = {
"platform": "kleinanzeigen",
"filters": {
"query": "iphone 13",
"price": [100, 500],
"with_phone": True,
},
}
task = requests.post(
url="https://api.fuck-api.xyz/v1/tasks",
json=BODY,
headers=HEADERS,
timeout=40,
).json()["task"]
ads = requests.get(
url=f"https://api.fuck-api.xyz/v1/tasks/{task['id']}/ads",
params={"wait": 20},
headers=HEADERS,
timeout=40,
).json()["ads"]
Что придёт в ads, сокращённо:
{
"ads": [
{
"title": "iPhone 13 128 GB",
"price": 340,
"currency": "EUR",
"phone": "+4915100000000",
"url": "https://www.kleinanzeigen.de/ad/2384712650",
"published_at": "2026-12-06T16:57:42Z"
}
]
}
Как начать
-
Возьми ключ
В @fuckparser_bot нажми «🔑 API» в главном меню и скопируй ключ, он начинается с
fp_. -
Изучи документацию
-
Интегрируй в свой софт
Базовый пример на Python.
BODYдля своих фильтров собирает страница площадки.import time import requests HEADERS = {"X-API-Key": "fp_ВАШ_КЛЮЧ"} BODY = { "platform": "kleinanzeigen", "filters": { "query": "iphone 13", "price": [100, 500], "with_phone": True, }, "limit": 200, } def main(): while True: response = requests.post( url="https://api.fuck-api.xyz/v1/tasks", json=BODY, headers=HEADERS, timeout=40, ) if response.status_code not in (429, 503): break retry_time = int(response.headers.get("Retry-After", 5)) time.sleep(retry_time) if response.status_code != 200 or not response.json().get("task"): print(response.status_code, response.text[:300]) return task_id = response.json()["task"]["id"] while True: response = requests.get( url=f"https://api.fuck-api.xyz/v1/tasks/{task_id}/ads", params={"wait": 20}, headers=HEADERS, timeout=40, ) if response.status_code in (429, 503): retry_time = int(response.headers.get("Retry-After", 5)) time.sleep(retry_time) continue if response.status_code != 200: print(response.status_code, response.text[:300]) return answer = response.json() for ad in answer["ads"]: print(ad["title"], ad.get("phone"), ad["url"]) if not answer["ads"] and answer["task"]["status"] == "done": return time.sleep(5) main()
Площадки
- Vintedvinted.com
- Wallapopwallapop.com
- Depopdepop.com
- Gumtreegumtree.com
- OLXolx.pl
- Kleinanzeigenkleinanzeigen.de
- Quokaquoka.de
- Willhabenwillhaben.at
- Ländleanzeigerlaendleanzeiger.at
- Marktplaatsmarktplaats.nl
- 2dehands2dehands.be
- 2ememain2ememain.be
- Leboncoinleboncoin.fr
- Subitosubito.it
- Milanunciosmilanuncios.com
- Jófogásjofogas.hu
- Ricardoricardo.ch
- Mercarimercari.com
- OfferUpofferup.com
- Poshmarkposhmark.com
- Kijijikijiji.ca
- Finnfinn.no
- Toritori.fi
- Dbadba.dk
- Beebsbeebs.app
- Andelemandeleandelemandele.lv
- KupujemProdajemkupujemprodajem.com
- Reverbreverb.com
- Bazošbazos.cz
- Fiverrfiverr.com
- Njuškalonjuskalo.hr
- Carousellcarousell.sg
- Blocketblocket.se
- Bolhabolha.com
- Jijijiji.ng
- Ouedknissouedkniss.com
- Otomotootomoto.pl
- DoneDealdonedeal.ie
- Yad2yad2.co.il
- Harajharaj.com.sa
- Etsyetsy.com
- Lajumatelajumate.ro
- Oglasnikoglasnik.hr
- Whatnotwhatnot.com
- Юлаyoula.ru