---
schema_version: "1"
id: c9bb38dba579d322d38adbd53a14890a9d53327b5e8bfdbe6e285d7d779cd01b
title: Search Scope and Order
collection: developer
version: current
locale: en-us
portal_url: https://docs.salesforce.com/developer/current/en-us/platform/api-rest/guides/resources/resources-search-scope-order.md
canonical_url: https://developer.salesforce.com/docs/platform/api-rest/guide/resources-search-scope-order.html
source_site: developer.salesforce.com
content_type: documentation
content_hash: 3f6750bf396e67d0cd845736dad64681fd4e5eafc37ba1385b43669d838849de
products:
  - REST API Developer Guide
  - Platform Developer Content
---

# Search Scope and Order

Returns an ordered list of objects in the default global search scope of a logged-in user. Global search keeps track of which objects the user interacts with and how often, and arranges the search results accordingly. Objects used most frequently appear at the top of the list.

The returned list reflects the object order in the user’s default search scope, including any pinned objects on the user’s search results page. This call is useful if you want to implement a custom search results page using the optimized global search scope. The search string must be URL-encoded.

## Syntax

**URI:** `/services/data/vXX.X/search/scopeOrder`

**Formats:** JSON, XML

**HTTP Method:** GET

**Authentication:** `Authorization: Bearer token`

## Example

See [Get the Default Search Scope and Order](https://developer.salesforce.com/docs/platform/api-rest/do-me/dome-retrieve-search-scope-order.md).

