Download OpenAPI specification:Download
API for managing site blocking, ISPs, abuse reports, and site suggestions
const request = require('request'); const options = {method: 'GET', url: 'https://inetc.kat.directory/'}; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
| category | string Filter sites by category, separated by commas |
| limit | integer Default: 50 Number of sites to return |
| offset | integer Default: 0 Number of sites to skip |
| sort | string Default: "id" Sort sites by field |
| order | string Default: "asc" Enum: "asc" "desc" Sort order |
const request = require('request'); const options = { method: 'GET', url: 'https://inetc.kat.directory/sites', qs: { category: 'SOME_STRING_VALUE', limit: 'SOME_INTEGER_VALUE', offset: 'SOME_INTEGER_VALUE', sort: 'SOME_STRING_VALUE', order: 'SOME_STRING_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": 0,
- "domain": "string",
- "ping_url": "string",
- "categories": [
- "string"
], - "block_reports": 0,
- "unblock_reports": 0,
- "last_reported_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]| domain required | string |
| ping_url | string |
| categories required | Array of strings |
{- "domain": "string",
- "ping_url": "string",
- "categories": [
- "string"
]
}{- "id": 0,
- "domain": "string",
- "ping_url": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}const request = require('request'); const options = {method: 'GET', url: 'https://inetc.kat.directory/sites/%7Bid%7D'}; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": 0,
- "domain": "string",
- "ping_url": "string",
- "categories": [
- "string"
], - "block_reports": 0,
- "unblock_reports": 0,
- "last_reported_at": "2019-08-24T14:15:22Z",
- "blocked_by_isps": [
- {
- "id": 0,
- "latitude": 0.1,
- "longitude": 0.1,
- "name": "string",
- "block_reports": 0,
- "unblock_reports": 0,
- "last_reported_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}const request = require('request'); const options = {method: 'GET', url: 'https://inetc.kat.directory/isps/%7Bid%7D'}; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": 0,
- "latitude": 0.1,
- "longitude": 0.1,
- "name": "string",
- "blocks": [
- {
- "id": 0,
- "domain": "string",
- "site_id": 0,
- "last_reported_at": "2019-08-24T14:15:22Z",
- "block_reports": 0,
- "unblock_reports": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
], - "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}| limit | integer Default: 50 Number of ISPs to return |
| offset | integer Default: 0 Number of ISPs to skip |
| sort | string Default: "id" Sort ISPs by field |
| order | string Default: "asc" Enum: "asc" "desc" Sort order |
const request = require('request'); const options = { method: 'GET', url: 'https://inetc.kat.directory/isps', qs: { limit: 'SOME_INTEGER_VALUE', offset: 'SOME_INTEGER_VALUE', sort: 'SOME_STRING_VALUE', order: 'SOME_STRING_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": 0,
- "latitude": 0.1,
- "longitude": 0.1,
- "name": "string",
- "block_reports": 0,
- "unblock_reports": 0,
- "last_reported_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]| latitude required | number <float> |
| longitude required | number <float> |
| name required | string |
{- "latitude": 0.1,
- "longitude": 0.1,
- "name": "string"
}{- "id": 0,
- "latitude": 0.1,
- "longitude": 0.1,
- "name": "string",
- "block_reports": 0,
- "unblock_reports": 0,
- "last_reported_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}const request = require('request'); const options = {method: 'GET', url: 'https://inetc.kat.directory/blocks'}; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": 0,
- "site_id": 0,
- "client_id": 0,
- "isp_id": 0,
- "last_reported_at": "2019-08-24T14:15:22Z",
- "block_reports": 0,
- "unblock_reports": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]| site_id required | integer |
| client_id required | integer |
| isp_id required | integer |
| is_blocked required | boolean |
{- "site_id": 0,
- "client_id": 0,
- "isp_id": 0,
- "is_blocked": true
}{- "id": 0,
- "site_id": 0,
- "client_id": 0,
- "isp_id": 0,
- "last_reported_at": "2019-08-24T14:15:22Z",
- "block_reports": 0,
- "unblock_reports": 0,
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}const request = require('request'); const options = {method: 'GET', url: 'https://inetc.kat.directory/abuse-reports'}; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": 0,
- "site_id": 0,
- "reason": "string",
- "status": "pending",
- "resolved_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]| site_id required | integer |
| reason required | string |
{- "site_id": 0,
- "reason": "string"
}{- "id": 0,
- "site_id": 0,
- "reason": "string",
- "status": "pending",
- "resolved_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}| category | string Filter sites by category, separated by commas |
| limit | integer Default: 50 Number of sites to return |
| offset | integer Default: 0 Number of sites to skip |
| sort | string Default: "id" Sort sites by field |
| order | string Default: "asc" Enum: "asc" "desc" Sort order |
const request = require('request'); const options = { method: 'GET', url: 'https://inetc.kat.directory/sites/suggestions', qs: { category: 'SOME_STRING_VALUE', limit: 'SOME_INTEGER_VALUE', offset: 'SOME_INTEGER_VALUE', sort: 'SOME_STRING_VALUE', order: 'SOME_STRING_VALUE' } }; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": 0,
- "domain": "string",
- "ping_url": "string",
- "categories": [
- "string"
], - "reason": "string",
- "status": "pending",
- "resolve_reason": "string",
- "linked_site": 0,
- "resolved_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]| domain required | string |
| ping_url | string |
| categories | Array of strings |
| reason required | string |
{- "domain": "string",
- "ping_url": "string",
- "categories": [
- "string"
], - "reason": "string"
}{- "id": 0,
- "domain": "string",
- "ping_url": "string",
- "categories": [
- "string"
], - "reason": "string",
- "status": "pending",
- "resolve_reason": "string",
- "linked_site": 0,
- "resolved_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}const request = require('request'); const options = {method: 'GET', url: 'https://inetc.kat.directory/sites/suggestions/%7Bid%7D'}; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
{- "id": 0,
- "domain": "string",
- "ping_url": "string",
- "categories": [
- "string"
], - "reason": "string",
- "status": "pending",
- "resolve_reason": "string",
- "linked_site": 0,
- "resolved_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}| id required | integer |
| domain | string |
| ping_url | string |
| categories | Array of strings |
| resolve_reason required | string |
| linked_site | integer |
| status required | string Enum: "pending" "accepted" "rejected" |
{- "domain": "string",
- "ping_url": "string",
- "categories": [
- "string"
], - "resolve_reason": "string",
- "linked_site": 0,
- "status": "pending"
}{- "id": 0,
- "domain": "string",
- "ping_url": "string",
- "categories": [
- "string"
], - "reason": "string",
- "status": "pending",
- "resolve_reason": "string",
- "linked_site": 0,
- "resolved_at": "2019-08-24T14:15:22Z",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}const request = require('request'); const options = {method: 'GET', url: 'https://inetc.kat.directory/categories'}; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
[- {
- "id": 0,
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}
]| name required | string |
{- "name": "string"
}{- "id": 0,
- "name": "string",
- "created_at": "2019-08-24T14:15:22Z",
- "updated_at": "2019-08-24T14:15:22Z"
}const request = require('request'); const options = {method: 'GET', url: 'https://inetc.kat.directory/health'}; request(options, function (error, response, body) { if (error) throw new Error(error); console.log(body); });
"ok"