Sunday, April 19, 2026
SharePoint

REST API URL Builder

Construct SharePoint REST API endpoint URLs with correct OData parameters.

Configuration
Generated REST URL
// Configure options on the left to generate the REST API URL

How to Use the SharePoint REST API URL Builder

The SharePoint REST API URL Builder constructs complete _api endpoint URLs with correct OData query parameters for SharePoint Online and SharePoint Server 2016+. Paste the generated URL directly into browser developer tools, Postman, or your JavaScript fetch code.

Select a target resource (List Items, Web, Site, Current User, or Search), enter the list name if applicable, then add OData parameters to filter, shape, and sort the response. Switch to the JavaScript fetch() code output to get a ready-to-run code snippet including the required Accept and X-RequestDigest headers.

Key OData Parameters

  • $select — Comma-separated list of fields to return. Use Author/Title syntax to return fields from expanded lookups.
  • $filter — OData filter expression. Supports eq, ne, gt, lt, startswith(), substringof(), and logical and/or.
  • $expand — Expand lookup/person fields to retrieve their sub-properties. Example: Author,Editor.
  • $orderby — Sort results. Supports multiple fields: Modified desc, Title asc.
  • $top — Maximum items to return. SharePoint limits this to 5,000 for list items.

Mutation Requests (POST / PATCH / DELETE)

Write operations require an X-RequestDigest header containing a valid request digest token. Fetch it by calling /_api/contextinfo first. The generated fetch code handles this automatically by including the correct header structure and IF-MATCH header for PATCH and DELETE operations.