Sites are websites, such as might be crawled. Sites must be registered within the system, after which Crawls may be created.
Create a Site.
https://github.com/tiredpixel/isoxya-api/blob/latest/bin/isoxya-api-create-site
Name | Edition | Type | Description |
---|---|---|---|
channels |
Pro | number? | channels, used for scaling Crawlers |
rate_limit |
Pro | number? | rate limit (reqs/s) (decimal) |
url |
string | URL (absolute) |
Response parameters are as for /site/:site_id GET.
POST /site HTTP/1.1
content-type: application/json
{
"channels": null,
"rate_limit": null,
"url": "http://example.com"
}
HTTP/1.1 201 Created
content-type: application/json
location: /site/aHR0cDovL2V4YW1wbGUuY29tOjgw
{
"channels": 1,
"href": "/site/aHR0cDovL2V4YW1wbGUuY29tOjgw",
"rate_limit": 1,
"url": "http://example.com:80"
}
Read a Site.
https://github.com/tiredpixel/isoxya-api/blob/latest/bin/isoxya-api-read
Name | Edition | Type | Description |
---|---|---|---|
channels |
Pro | number | channels, used for scaling Crawlers |
href |
string | Href | |
rate_limit |
Pro | number | rate limit (reqs/s) (decimal) |
url |
string | Site URL (absolute) |
HTTP/1.1 200 OK
content-type: application/json
{
"channels": 1,
"href": "/site/aHR0cDovL2V4YW1wbGUuY29tOjgw",
"rate_limit": 1,
"url": "http://example.com:80"
}