GET
/api/application/locationsFetching locations
Query parameters
pageper_page- Max is 100.
short_code
Request
GET
/api/application/locationscurl "https://panel.example.com/api/application/locations" \ -H "Authorization: Bearer <token>" \ -H "Accept: application/json"
use Illuminate\Support\Facades\Http; $response = Http::withToken($token) ->acceptJson() ->get('https://panel.example.com/api/application/locations');
const response = await fetch('https://panel.example.com/api/application/locations', { headers: { Authorization: `Bearer ${token}`, Accept: 'application/json', }, })
Response
{ "data": [ { "id": 187, "short_code": "103", "description": "103", "nodes_count": 0, "servers_count": 0 }, { "id": 188, "short_code": "101", "description": "screw you chit", "nodes_count": 0, "servers_count": 0 }, { "id": 189, "short_code": "113", "description": "113", "nodes_count": 0, "servers_count": 0 } ], "meta": { "pagination": { "total": 5139, "count": 50, "per_page": 50, "current_page": 1, "total_pages": 103, "links": { "next": "https://advinservers.com/api/admin/locations?page=2" } } } }
- page
- per_page
- max is 100
- short_code