9Hits API#
9Hits API allows you to access and manage some resources from the 9Hits Panel. You can get your API key from your profile page.
Get profile#
Return your profile information.
Sample Response
{
"status": "ok",
"messages": null,
"data": {
"username": "daniel",
"email": "[email protected]",
"joined": "2015-02-21 15:32:44",
"token": "1a8cb897ca8b97c897c98a7cbd880123",
"funds": 38.288,
"slots": {
"used": 5,
"available": 78
},
"points": 803.57,
"membership": "VIP",
"membershipEndDate": "2021-01-31 22:03:27"
}
}
Get custom user-agents#
Return all your custom user-agent group.
Sample Response
Get campaigns#
Return your campaigns.
Sample Request
Get your first 100 campaign:
GET https://panel.9hits.com/api/siteGet?key=YOUR_API_KEY
Get your first 500 campaign:
GET https://panel.9hits.com/api/siteGet?key=YOUR_API_KEY&limit=500&page=1
Get all your campaigns filtered by title or url:
GET https://panel.9hits.com/api/siteGet?key=YOUR_API_KEY&filter=my%20site
GET https://panel.9hits.com/api/siteGet?key=YOUR_API_KEY&filter=my-site.com
Get a single campaign by id:
GET https://panel.9hits.com/api/siteGet?key=YOUR_API_KEY&filter=id:812031
Sample Response
{
"status": "ok",
"messages": [
"Fetched 1"
],
"data": [
{
"id": 812031,
"title": "My Site",
"isAdult": false,
"hasCoinMining": false,
"urls": [
"https://my-site.com"
],
"referrers": {
"mode": "basic",
"urls": [
"https://www.facebook.com",
"https://www.google.com",
]
},
"duration": [
59,
70
],
"platform": {
"os": {
"win": 20,
"linux": 5,
"mac": 25,
"android": 38,
"ios": 12
},
"browsers": {
"chrome": 60,
"edge": 30,
"opera": 4,
"safari": 3,
"firefox": 3
},
"custom": [
{
"value": 743,
"weight":56
},
{
"value": 8523,
"weight": 44
}
],
"usage": {
"system": 10,
"fixed": 30,
"custom": 60
}
},
"macros": "await WaitForLoading();\r\nwhile(true)\r\n{\r\n await Delay(Random(5000, 15000));\r\n await ClickRandomLink();\r\n}",
"popupMacros": "await WaitForLoading();\r\nwhile(true)\r\n{\r\n await Delay(Random(5000, 15000));\r\n await ClickRandomLink();\r\n}",
"connectionTypes": [
"system",
"http",
"socks4",
"socks5",
"ssh"
],
"connectionSpeed": "slow+",
"performance": "slow+",
"geo": {
"rule": "all",
"by": "country",
"codes": null
},
"acceptLanguages": null,
"capping": {
"type": "own",
"value": 0,
"shared": 0
},
"maxHits": 0,
"untilDate": "2021/10/13 06:08:04",
"estimatedHits": 123456,
"confirmedHits": 123000,
"maxPopups": 3,
"fingerprintSpoof": true,
"allowProxy": true,
"allowIPv6": true,
"allowBlockedPopups": true,
'ipFilter': {
'type': "0",
'rules': "1.55.*,223.54.1.*,2001:2f:*"
},
"hourlyLimit": {
"speed": "fast",
"hours": [
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
}
]
},
"disJsRate": 0,
"disImageRate": 0,
"disCookieRate": 100,
"cpuUsage": 0.57,
"forceHide": true,
"adSafe": "google-ads",
"webSecurity": false,
"similarWebEnabled": true,
"bypassCf": true,
"viewerVersion": "all",
"userState": "running",
"systemState": "approved"
}
]
}
Warning
The limit
is 100 by default, maximum is 500, the page
starts from 1. The returns are sorted by creation date.
Add new campaign#
The request body contains your campaign information in JSON format.
Sample Request (Simple)
Sample Request (Full)
{
"title": "My Site",
"isAdult": false,
"hasCoinMining": false,
"urls": [
"http://my-site.com/about.html",
"http://my-site.com/pricing.html"
],
"referrers": {
"mode": "advanced", //basic
"urls": [ //if mode is basic, urls should be array ["http://url1", "http://url2"]
{
"url": "https://www.fb.com",
"rate": 70
},
{
"url": "https://www.twitter.com",
"rate": 30
}
]
},
"duration": [
22, //from
70 //to
],
"platform": {
"os": { //OS usage rate
"win": 20,
"linux": 5,
"mac": 25,
"android": 38,
"ios": 12
},
"browsers": { //Browser usage rate
"chrome": 60,
"edge": 30,
"opera": 4,
"safari": 3,
"firefox": 3
},
"custom": [ //Custom user agent usage rate
{
"value": 743,
"weight":56
},
{
"value": 8523,
"weight": 44
}
],
"usage": { //User agent source usage rate
"system": 10,
"fixed": 30,
"custom": 60
}
},
"macros": "await WaitForLoading();\r\nwhile(true)\r\n{\r\n await Delay(Random(5000, 15000));\r\n await ClickRandomLink();\r\n}",
"popupMacros": "await WaitForLoading();\r\nwhile(true)\r\n{\r\n await Delay(Random(5000, 15000));\r\n await ClickRandomLink();\r\n}",
"connectionTypes": [
"system",
"http",
"socks4",
"socks5",
"ssh"
],
"connectionSpeed": "medium+", //slow+, good+
"performance": "medium+", //slow+, good+
"geo": {
"rule": "all", //any, except
"by": "country", //continent
"codes": ["US", "VN"]
},
"acceptLanguages": null, //["VN", "US"]
"capping": {
"type": "shared", //own
"value": 86400, //in seconds
"shared": 324153 //if type is shared, here is the master campaign id
},
"maxHits": 110,
"untilDate": "2021/10/13 06:08:04",
"maxPopups": 3,
"fingerprintSpoof": true,
"allowProxy": false,
"allowIPv6": false,
"allowBlockedPopups": false,
'ipFilter': {
'type': "0", //0: by session ip, 1: by machine ip, 2: by all
'rules': "1.55.*,223.54.1.*,2001:2f:*"
},
"hourlyLimit": {
"speed": "fast", //slow
"hours": [ //Array with 24 elements corresponds to 24 hours from 00 to 23
{
"min": 0,
"max": 0
},
{
"min": 10,
"max": 10
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
},
{
"min": 0,
"max": 0
}
]
},
"disJsRate": 0,
"disImageRate": 0,
"disCookieRate": 100,
"forceHide": true,
"adSafe": "google-ads", //can be empty
"webSecurity": false,
"similarWebEnabled": true,
"bypassCf": true,
"viewerVersion": "all",
"userState": "running" //paused
}
Update a campaign#
The request body contains your campaign information in JSON format, just similar to the request body of the Add Campaign API
, but you need to add the campaign id
, you don't need to submit all campaign information, just specify the information you need to update. You can also submit resetHitCounter (optional) as true to reset hit counter.
Sample Request
Delete campaigns#
Delete your campaigns by id
Session stats#
Get your session stats
Sample Response
Transfer points#
Transfer points from your account to an other member
Sample Response
Transfer funds#
Transfer funds from your account to an other member. This function is for reseller only.
Sample Response
Tip
Want more functions? Feel free to make a request!