{"id":15024584,"url":"https://github.com/leviself56/edgeos-api","last_synced_at":"2026-04-03T10:38:25.063Z","repository":{"id":222856216,"uuid":"758558347","full_name":"leviself56/EdgeOS-API","owner":"leviself56","description":"Php code for querying statistics from Ubiquiti Edgeswitch","archived":false,"fork":false,"pushed_at":"2024-02-16T20:29:41.000Z","size":24,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-19T18:43:51.380Z","etag":null,"topics":["php7","rest-api","ubiquiti","ubiquiti-edgeos"],"latest_commit_sha":null,"homepage":"","language":"PHP","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/leviself56.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-02-16T15:24:02.000Z","updated_at":"2024-10-10T07:16:35.000Z","dependencies_parsed_at":null,"dependency_job_id":"16ee8ac7-981f-4400-89af-0bbab2b05314","html_url":"https://github.com/leviself56/EdgeOS-API","commit_stats":null,"previous_names":["leviself56/edgeos-api"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leviself56%2FEdgeOS-API","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leviself56%2FEdgeOS-API/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leviself56%2FEdgeOS-API/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/leviself56%2FEdgeOS-API/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/leviself56","download_url":"https://codeload.github.com/leviself56/EdgeOS-API/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":243324266,"owners_count":20273098,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["php7","rest-api","ubiquiti","ubiquiti-edgeos"],"created_at":"2024-09-24T20:00:36.416Z","updated_at":"2025-12-26T11:02:18.079Z","avatar_url":"https://github.com/leviself56.png","language":"PHP","funding_links":[],"categories":[],"sub_categories":[],"readme":"# EdgeOS REST API\n## Php code for querying statistics from Ubiquiti Edgeswitch\n\nServer will need access to the switch in the same subnet/vlan.\nThe file `api.php` allows a remote server (like Zabbix) to query the switch and retrieve the datasets via HTTP POST.\nThis code can be further expanded to include POST, PATCH or PUT to manipulate the remote switch.\n\nCurrent functions:\n+ `get.sfps`\n+ `get.interfaces`\n+ `get.system.info`\n\n\n\n\nExample usage:\n\n```POST http://localhost/EdgeOS/api.php```\n\n```Content-Type: application/json```\n```\n{\n  \"ip\": \"10.15.100.170\",\n  \"username\": \"ubnt\",\n  \"password\": \"ubnt\",\n  \"function\": \"get.sfps\"\n}\n```\n\n\nSample Response:\n```\n{\n  \"0/1\": {\n    \"temperature\": 24,\n    \"voltage\": 3.281,\n    \"current\": 0,\n    \"rxPower\": -40,\n    \"txPower\": -40\n  },\n  \"0/2\": {\n    \"temperature\": 23.5,\n    \"voltage\": 3.341,\n    \"current\": 37.17,\n    \"rxPower\": -7.552,\n    \"txPower\": -2.184\n  },\n  \"0/3\": {\n    \"temperature\": 18.6,\n    \"voltage\": 3.291,\n    \"current\": 17.982,\n    \"rxPower\": -11.249,\n    \"txPower\": -5.612\n  }\n}\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleviself56%2Fedgeos-api","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fleviself56%2Fedgeos-api","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fleviself56%2Fedgeos-api/lists"}