> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.getedulead.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.getedulead.com/_mcp/server.

# GetSearch

GET https://api.getedulead.com/v4/searches/{id}

GetSearch returns a search the caller sees by id.

Reference: https://docs.getedulead.com/api-reference/searches/get

## Authentication

- `Authorization` header (bearer token, required) — A team API key, sent as `Authorization: Bearer <key>`.
- `Authorization` header (bearer token, required) — The Cognito access token of a signed-in Edulead user (`edulead auth login`), sent as `Authorization: Bearer <token>`.

## Request

### Path parameters

- `id` (string, required) — Identifier of the resource, assigned by Edulead and opaque to callers.

## Response

### 200

Success

- `search` (edulead.v4.Search, optional) — Search is a saved search.

## Types

### edulead.v4.Search

Search is a saved search.

- `id` (string, optional) — Identifier of the resource, assigned by Edulead and opaque to callers.
- `name` (string, optional) — The search's name, trimmed; required when updated.
- `entity` (enum, optional) — enum.defined_only = true
  - Allowed values: `SEARCH_ENTITY_UNSPECIFIED`, `SEARCH_ENTITY_CONTACT`, `SEARCH_ENTITY_INSTITUTION`
- `source` (string, optional) — The console page it ran on: PEOPLE_SEARCH or INSTITUTIONS_SEARCH; empty when not recorded.
- `query` (string, optional) — The console URL query that runs it again: q (the filters, base64), sortBy, sortDir, page.
- `starred` (boolean, optional) — Starred by its owner.
- `shared` (boolean, optional) — Shared with the team.
- `owner_id` (string, optional) — The user who ran it; only they may change it.
- `sharer_id` (string, optional) — The user who shared it; empty when not shared.
- `last_used_time` (datetime, optional) — When it was last run, or last unstarred.
- `create_time` (datetime, optional) — When Edulead created the resource.
- `update_time` (datetime, optional) — When any field last changed.

## Examples

**Response**

```json
{
  "search": {
    "id": "string",
    "name": "string",
    "entity": "SEARCH_ENTITY_UNSPECIFIED",
    "source": "string",
    "query": "string",
    "starred": true,
    "shared": true,
    "owner_id": "string",
    "sharer_id": "string",
    "last_used_time": "2023-01-15T01:30:15.01Z",
    "create_time": "2023-01-15T01:30:15.01Z",
    "update_time": "2023-01-15T01:30:15.01Z"
  }
}
```

**SDK Code**

```python
import requests

url = "https://api.getedulead.com/v4/searches/id"

headers = {"Authorization": "Bearer <apiKey>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript
const url = 'https://api.getedulead.com/v4/searches/id';
const options = {method: 'GET', headers: {Authorization: 'Bearer <apiKey>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.getedulead.com/v4/searches/id"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <apiKey>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby
require 'uri'
require 'net/http'

url = URI("https://api.getedulead.com/v4/searches/id")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <apiKey>'

response = http.request(request)
puts response.read_body
```

```java
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.getedulead.com/v4/searches/id")
  .header("Authorization", "Bearer <apiKey>")
  .asString();
```

```php
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.getedulead.com/v4/searches/id', [
  'headers' => [
    'Authorization' => 'Bearer <apiKey>',
  ],
]);

echo $response->getBody();
```

```csharp
using RestSharp;

var client = new RestClient("https://api.getedulead.com/v4/searches/id");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <apiKey>");
IRestResponse response = client.Execute(request);
```

```swift
import Foundation

let headers = ["Authorization": "Bearer <apiKey>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.getedulead.com/v4/searches/id")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```