Browse — daemonports API
Systems and their categories.
A FreeBSD port, or a category of another system
GET /{category}/{port}/index.json
/www/nginx/index.json is FreeBSD's www/nginx (kind: port);
/openbsd/www/index.json is OpenBSD's www category (kind: category).
Authorization: none
Parameters
| Name | In | Type | Description |
|---|---|---|---|
category (required) |
path | string |
A FreeBSD category, or a system (openbsd, netbsd, dragonfly …) |
port (required) |
path | string |
A port's directory, or the system's category |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The port or the category. | oneOf Port | Category (application/json) |
404 |
No such page. The body is the site's HTML 404 page, not JSON. |
Deprecated, broken and restricted ports, counted per system
GET /status/index.json
Authorization: none
Responses
| Status | Description | Body |
|---|---|---|
200 |
A row per system, a count per kind. | Status (application/json) |
One system's ports of one status, the soonest to expire first
GET /status/{system}/{kind}/index.json
Authorization: none
Parameters
| Name | In | Type | Description |
|---|---|---|---|
system (required) |
path | string |
|
kind (required) |
path | string |
One of "deprecated", "broken", "ignored", "forbidden", "restricted". |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The list. | Status (application/json) |
404 |
No such page. The body is the site's HTML 404 page, not JSON. |
What changed this week, counted per system
GET /changes/index.json
Authorization: none
Responses
| Status | Description | Body |
|---|---|---|
200 |
New, updated and removed ports per system over seven days. | Changes (application/json) |
One system's week, day by day
GET /changes/{system}/index.json
Authorization: none
Parameters
| Name | In | Type | Description |
|---|---|---|---|
system (required) |
path | string |
Responses
| Status | Description | Body |
|---|---|---|
200 |
Days, newest first, each with its new, updated and removed ports. | Changes (application/json) |
404 |
No such page. The body is the site's HTML 404 page, not JSON. |
One system's changes on one day
GET /changes/{system}/{date}/index.json
There is a page for each day of the last 90 with a change; it stays as it is once the day is over.
Authorization: none
Parameters
| Name | In | Type | Description |
|---|---|---|---|
system (required) |
path | string |
|
date (required) |
path | string (date) |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The day's new, updated and removed ports, and the days around it. | Changes (application/json) |
404 |
No such page. The body is the site's HTML 404 page, not JSON. |
A system other than FreeBSD, or a FreeBSD category
GET /{section}/index.json
/openbsd/index.json is the OpenBSD tree (kind: system);
/www/index.json is FreeBSD's www category (kind: category).
FreeBSD itself is in /index.json.
Authorization: none
Parameters
| Name | In | Type | Description |
|---|---|---|---|
section (required) |
path | string |
Responses
| Status | Description | Body |
|---|---|---|
200 |
The system or the category. | oneOf System | Category (application/json) |
404 |
No such page. The body is the site's HTML 404 page, not JSON. |