SP.Web.lists property (sp.js)

Gets the collection of all lists that are contained in the Web site available to the current user based on the permissions of the current user.

Applies to: apps for SharePoint | SharePoint Foundation 2013 | SharePoint Server 2013

var value = SP.Web.get_lists ()

Return value

Type: SP.ListCollection

A collection of SP.ListCollection objects.

REST resource endpoint

See Web resource for more information.

Endpoint URI structure

http://<sitecollection>/<site>/_api/web/lists

HTTP requests

This resource supports the following HTTP commands:

  • POST

POST syntax

POST http://<sitecollection>/<site>/_api/web/lists

GET syntax

GET http://<sitecollection>/<site>/_api/web/lists