:doc:`SNS <../../sns>` / Client / list_subscriptions

******************
list_subscriptions
******************



.. py:method:: SNS.Client.list_subscriptions(**kwargs)

  

  Returns a list of the requester's subscriptions. Each call returns a limited list of subscriptions, up to 100. If there are more subscriptions, a ``NextToken`` is also returned. Use the ``NextToken`` parameter in a new ``ListSubscriptions`` call to get further results.

   

  This action is throttled at 30 transactions per second (TPS).

  

  See also: `AWS API Documentation <https://docs.aws.amazon.com/goto/WebAPI/sns-2010-03-31/ListSubscriptions>`_  


  **Request Syntax**
  ::

    response = client.list_subscriptions(
        NextToken='string'
    )
    
  :type NextToken: string
  :param NextToken: 

    Token returned by the previous ``ListSubscriptions`` request.

    

  
  
  :rtype: dict
  :returns: 
    
    **Response Syntax**

    
    ::

      {
          'Subscriptions': [
              {
                  'SubscriptionArn': 'string',
                  'Owner': 'string',
                  'Protocol': 'string',
                  'Endpoint': 'string',
                  'TopicArn': 'string'
              },
          ],
          'NextToken': 'string'
      }
      
    **Response Structure**

    

    - *(dict) --* 

      Response for ListSubscriptions action

      
      

      - **Subscriptions** *(list) --* 

        A list of subscriptions.

        
        

        - *(dict) --* 

          A wrapper type for the attributes of an Amazon SNS subscription.

          
          

          - **SubscriptionArn** *(string) --* 

            The subscription's ARN.

            
          

          - **Owner** *(string) --* 

            The subscription's owner.

            
          

          - **Protocol** *(string) --* 

            The subscription's protocol.

            
          

          - **Endpoint** *(string) --* 

            The subscription's endpoint (format depends on the protocol).

            
          

          - **TopicArn** *(string) --* 

            The ARN of the subscription's topic.

            
      
    
      

      - **NextToken** *(string) --* 

        Token to pass along to the next ``ListSubscriptions`` request. This element is returned if there are more subscriptions to retrieve.

        
  
  **Exceptions**
  
  *   :py:class:`SNS.Client.exceptions.InvalidParameterException`

  
  *   :py:class:`SNS.Client.exceptions.InternalErrorException`

  
  *   :py:class:`SNS.Client.exceptions.AuthorizationErrorException`

  