API endpoint:
https://www.iranstats.ir/api/v1/websites
Request example:
curl --location --request GET 'https://www.iranstats.ir/api/v1/websites' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
search
search_by
domain
for دامنه. Defaults to: domain
.favorite
sort_by
id
for تاریخ ایجاد, domain
for دامنه. Defaults to: id
.sort
desc
for نزولی, asc
for صعودی. Defaults to: desc
.per_page
10
, 25
, 50
, 100
. Defaults to: 25
.API endpoint:
https://www.iranstats.ir/api/v1/websites/{id}
Request example:
curl --location --request GET 'https://www.iranstats.ir/api/v1/websites/{id}' \ --header 'Accept: application/json' \ --header 'Authorization: Bearer {api_key}'
API endpoint:
https://www.iranstats.ir/api/v1/websites
Request example:
curl --location --request POST 'https://www.iranstats.ir/api/v1/websites' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}' \ --data-urlencode 'domain={domain}'
domain
privacy
0
for عمومی, 1
for خصوصی, 2
for رمز عبور. Defaults to: 0
.password
privacy
set to 2
.email
0
for غیرفعال, 1
for فعال. Defaults to: 0
.exclude_bots
0
for غیرفعال, 1
for فعال. Defaults to: 1
.exclude_params
exclude_ips
API endpoint:
https://www.iranstats.ir/api/v1/websites/{id}
Request example:
curl --location --request PUT 'https://www.iranstats.ir/api/v1/websites/{id}' \ --header 'Content-Type: application/x-www-form-urlencoded' \ --header 'Authorization: Bearer {api_key}'
privacy
0
for عمومی, 1
for خصوصی, 2
for رمز عبور.password
privacy
set to 2
.email
0
for غیرفعال, 1
for فعال.exclude_bots
0
for غیرفعال, 1
for فعال.exclude_params
exclude_ips
favorite
API endpoint:
https://www.iranstats.ir/api/v1/websites/{id}
Request example:
curl --location --request DELETE 'https://www.iranstats.ir/api/v1/websites/{id}' \ --header 'Authorization: Bearer {api_key}'