Skip to main content
POST
/
api
/
homebrew
/
analytics
/
installs
/homebrew/analytics/installs
curl --request POST \
  --url https://api.anysite.io/api/homebrew/analytics/installs \
  --header 'Content-Type: application/json' \
  --header 'access-token: <api-key>' \
  --data '
{
  "count": 2,
  "timeout": 300,
  "period": "30d",
  "category": "install"
}
'
[
  {
    "name": "<string>",
    "@type": "HomebrewInstallRank",
    "rank": 0,
    "install_count": 0,
    "percent": 123,
    "category": "",
    "period": ""
  }
]

Authorizations

access-token
string
header
required

API token from the dashboard

Headers

access-token
string
required

Body

application/json
count
integer
required

Number of ranked entries to return

Required range: x >= 1
timeout
integer
default:300

Max scrapping execution timeout (in seconds)

Required range: 20 <= x <= 1500
period
enum<string>
default:30d

Aggregation period

Available options:
30d,
90d,
365d
category
enum<string>
default:install

Analytics category

Available options:
install,
install-on-request,
build-error,
cask-install

Response

Successful Response

name
string
required
@type
string
default:HomebrewInstallRank
rank
integer
default:0
install_count
integer
default:0
percent
number | null
category
string
default:""
period
string
default:""