Google Analytics

Segments: list

Requires authorization

Lists segments to which the user has access. Try it now.

In addition to the standard parameters, this method supports the parameters listed in the parameters table.


HTTP request



Parameter name Value Description
Optional query parameters
max-results integer The maximum number of segments to include in this response.
start-index integer An index of the first segment to retrieve. Use this parameter as a pagination mechanism along with the max-results parameter.


This request requires authorization with at least one of the following scopes (read more about authentication and authorization).


Request body

Do not supply a request body with this method.


The response contains one Segment resource for each segment available to the user.

  "kind": "analytics#segments",
  "username": string,
  "totalResults": integer,
  "startIndex": integer,
  "itemsPerPage": integer,
  "previousLink": string,
  "nextLink": string,
  "items": [
    management.segments Resource
Property name Value Description Notes
kind string Collection type for segments.
username string Email ID of the authenticated user
totalResults integer The total number of results for the query, regardless of the number of results in the response.
startIndex integer The starting index of the resources, which is 1 by default or otherwise specified by the start-index query parameter.
itemsPerPage integer The maximum number of resources the response can contain, regardless of the actual number of resources returned. Its value ranges from 1 to 1000 with a value of 1000 by default, or otherwise specified by the max-results query parameter.
items[] list A list of segments.

Try it!

Use the APIs Explorer below to call this method on live data and see the response. Alternatively, try the standalone Explorer.

Authentication required

You need to be signed in with Google+ to do that.

Signing you in...

Google Developers needs your permission to do that.