Stranice

Napomena
Expert level
The API key should be sent as a Bearer token in the Authorization header of the request. Get your API key.
List

API endpoint:

GET
https://webinfo.me/api/v1/websites

Request example:

curl --location --request GET 'https://webinfo.me/api/v1/websites' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Parameter
Vrsta
Opis
search
optional string
The search query.
search_by
optional string
Pretraži po. Possible values are: domain for Domen. Defaults to: domain.
sort_by
optional string
Sortiraj po. Possible values are: id for Date created, domain for Domen. Defaults to: id.
sort
optional string
Sortiraj. Possible values are: desc for Opadajuće, asc for Uzlazno. Defaults to: desc.
per_page
optional integer
Broj rezultata po stranici. Possible values are: 10, 25, 50, 100. Defaults to: 10.
Show

API endpoint:

GET
https://webinfo.me/api/v1/websites/{id}

Request example:

curl --location --request GET 'https://webinfo.me/api/v1/websites/{id}' \
--header 'Accept: application/json' \
--header 'Authorization: Bearer {api_key}'
Store

API endpoint:

POST
https://webinfo.me/api/v1/websites

Request example:

curl --location --request POST 'https://webinfo.me/api/v1/websites' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}' \
--data-urlencode 'domain={domain}'
Parameter
Vrsta
Opis
domain
required string
The domain name.
privacy
optional integer
Privatnost stranice sa statistikom. Possible values are: 0 for Javno, 1 for Privatno, 2 for Lozinka. Defaults to: 1.
password
optional string
Lozinka za stranicu sa statistikom. Radi samo sa privacy postavljenim na 2.
email
optional integer
Izvještaji putem emaila. Possible values are: 0 for Disabled, 1 for Enabled. Defaults to: 0.
exclude_bots
optional integer
Isključite standarde botove u sistemu praćenja. Possible values are: 0 for Disabled, 1 for Enabled. Defaults to: 1.
exclude_params
optional string
Exclude URL query parameters from being tracked. Jedna po redu..
exclude_ips
optional string
Isključite IP adrese od praćenja. Jedna po redu..
Update

API endpoint:

PUT PATCH
https://webinfo.me/api/v1/websites/{id}

Request example:

curl --location --request PUT 'https://webinfo.me/api/v1/websites/{id}' \
--header 'Content-Type: application/x-www-form-urlencoded' \
--header 'Authorization: Bearer {api_key}'
Parameter
Vrsta
Opis
privacy
optional integer
Privatnost stranice sa statistikom. Possible values are: 0 for Javno, 1 for Privatno, 2 for Lozinka.
password
optional string
Lozinka za stranicu sa statistikom. Radi samo sa privacy postavljenim na 2.
email
optional integer
Izvještaji putem emaila. Possible values are: 0 for Disabled, 1 for Enabled.
exclude_bots
optional integer
Isključite standarde botove u sistemu praćenja. Possible values are: 0 for Disabled, 1 for Enabled.
exclude_params
optional string
Exclude URL query parameters from being tracked. Jedna po redu..
exclude_ips
optional string
Isključite IP adrese od praćenja. Jedna po redu..
Obriši

API endpoint:

DELETE
https://webinfo.me/api/v1/websites/{id}

Request example:

curl --location --request DELETE 'https://webinfo.me/api/v1/websites/{id}' \
--header 'Authorization: Bearer {api_key}'