گزارش‌ها

یادداشت‌ها
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. کلید API خود را دریافت کنید.
فهرست

نقطه پایانی API:

GET
https://statline.ir/crawl/api/v1/reports

مثال درخواست:

curl --location --request GET 'https://statline.ir/crawl/api/v1/reports' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
پارامتر
نوع
توضیحات
search
اختیاری string
عبارت جستجو
search_by
اختیاری string
جستجو با. Possible values are: url برای URL. Defaults to: url.
project
اختیاری string
نام پروژه
result
اختیاری string
The report result. Possible values are: good برای خوب, decent برای مناسب, bad برای بد.
sort_by
اختیاری string
مرتب‌سازی بر اساس. Possible values are: id برای تاریخ ایجاد, generated_at برای تاریخ تولید, url برای URL, result برای نتیجه. Defaults to: id.
sort
اختیاری string
مرتب‌سازی. Possible values are: desc برای نزولی, asc برای صعودی. Defaults to: desc.
per_page
اختیاری integer
نتایج در هر صفحه. Possible values are: 10, 25, 50, 100. Defaults to: 10.
نمایش

نقطه پایانی API:

GET
https://statline.ir/crawl/api/v1/reports/{id}

مثال درخواست:

curl --location --request GET 'https://statline.ir/crawl/api/v1/reports/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
فروشگاه

نقطه پایانی API:

POST
https://statline.ir/crawl/api/v1/reports

مثال درخواست:

curl --location --request POST 'https://statline.ir/crawl/api/v1/reports' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'url={url}'
پارامتر
نوع
توضیحات
url
الزامی string
The webpage's URL.
privacy
اختیاری integer
Report page privacy. Possible values are: 0 برای عمومی, 1 برای خصوصی, 2 برای کلمه عبور. Defaults to: 0.
password
اختیاری string
The password for the report page. Only works with privacy set to 2.
به‌روزرسانی

نقطه پایانی API:

PUT PATCH
https://statline.ir/crawl/api/v1/reports/{id}

مثال درخواست:

curl --location --request PUT 'https://statline.ir/crawl/api/v1/reports/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
پارامتر
نوع
توضیحات
privacy
اختیاری integer
Report page privacy. Possible values are: 0 برای عمومی, 1 برای خصوصی, 2 برای کلمه عبور.
password
اختیاری string
The password for the report page. Only works with privacy set to 2.
results
اختیاری integer
Update the report results. Possible values are: 0 برای خیر, 1 برای بله. Defaults to: 0.
حذف

نقطه پایانی API:

DELETE
https://statline.ir/crawl/api/v1/reports/{id}

مثال درخواست:

curl --location --request DELETE 'https://statline.ir/crawl/api/v1/reports/{id}' \
--header 'Authorization: Bearer {api_key}'