> ## Documentation Index > Fetch the complete documentation index at: https://docs.graphiant.com/llms.txt > Use this file to discover all available pages before exploring further. # /v2/site/{siteId}/lan-segments > Get route count for all the LAN Segments in a site ## OpenAPI ````json POST /v2/site/{siteId}/lan-segments { "openapi": "3.0.0", "info": { "title": "Graphiant APIs", "version": "1.0.0", "description": "Graphiant API documentation." }, "servers": [ { "url": "https://api.graphiant.com" } ], "security": [ { "jwtAuth": [] } ], "tags": [], "paths": { "/v2/site/{siteId}/lan-segments": { "post": { "security": [ { "jwtAuth": [] } ], "parameters": [ { "in": "header", "name": "Authorization", "required": true, "schema": { "type": "string" }, "description": "Bearer token. Format: Bearer " }, { "name": "siteId", "in": "path", "required": true, "description": "", "schema": { "type": "integer", "format": "int64", "example": 1234567891011 } } ], "requestBody": { "required": true, "content": { "application/json": { "schema": { "$ref": "#/components/schemas/v2SiteSiteIdLanSegmentsPostRequest" } } } }, "responses": { "200": { "description": "OK", "content": { "application/json": { "schema": { "$ref": "#/components/schemas/v2SiteSiteIdLanSegmentsPostResponse" } } } } }, "description": "Get route count for all the LAN Segments in a site" } } }, "components": { "schemas": { "v2SiteSiteIdLanSegmentsPostRequest": { "type": "object", "properties": { "timeWindow": { "$ref": "#/components/schemas/statsmonV2TimeWindow" } }, "additionalProperties": false }, "v2SiteSiteIdLanSegmentsPostResponse": { "type": "object", "properties": { "deviceSegments": { "type": "array", "items": { "$ref": "#/components/schemas/statsmonV2DeviceSegments" } } }, "additionalProperties": false }, "statsmonV2TimeWindow": { "type": "object", "properties": { "bucketSizeSec": { "type": "integer", "format": "int32", "example": 123, "minimum": 0 }, "oldTs": { "$ref": "#/components/schemas/googleProtobufTimestamp" }, "recentTs": { "$ref": "#/components/schemas/googleProtobufTimestamp" } }, "additionalProperties": false }, "statsmonV2DeviceSegments": { "type": "object", "properties": { "deviceId": { "type": "integer", "format": "int64", "example": 1234567891011 }, "vrfRoutes": { "type": "array", "items": { "$ref": "#/components/schemas/statsmonV2VrfRoutes" } } }, "additionalProperties": false }, "googleProtobufTimestamp": { "type": "object", "properties": { "nanos": { "type": "integer", "format": "int32", "example": 123 }, "seconds": { "type": "integer", "format": "int64", "example": 1234567891011 } }, "additionalProperties": false }, "statsmonV2VrfRoutes": { "type": "object", "properties": { "ts": { "$ref": "#/components/schemas/googleProtobufTimestamp" }, "vrfRoute": { "type": "array", "items": { "$ref": "#/components/schemas/statsmonV2VrfRoute" } } }, "additionalProperties": false }, "statsmonV2VrfRoute": { "type": "object", "properties": { "ipv4Routes": { "type": "integer", "format": "int64", "example": 1234567891011 }, "ipv6Routes": { "type": "integer", "format": "int64", "example": 1234567891011 }, "totalRoutes": { "type": "integer", "format": "int64", "example": 1234567891011 }, "vrfName": { "type": "string", "example": "example string" } }, "additionalProperties": false } }, "securitySchemes": { "jwtAuth": { "type": "apiKey", "in": "header", "name": "authorization", "description": "Use `Bearer `" } } } } ````