# computer.localnetwork.directory.searchProjects

> Search published projects. Only active projects unless status or includeInactive says otherwise. Sorts by relevance with q, by distance with a location, and newest first otherwise.

- Kind: query
- Authority: directory.localnetwork.computer
- Lexicon: 1
- Published by [localnetwork.computer](https://lexicon.garden/identity/did:plc:d42l64gsczg6qh2vo243xv5l), not the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.directory.searchProjects)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.directory.searchProjects/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:d42l64gsczg6qh2vo243xv5l/computer.localnetwork.directory.searchProjects/analytics)

## Query (`computer.localnetwork.directory.searchProjects`)

Type: query · GET

### Parameters (query string)

- `country` (string): ISO 3166-1 alpha-2 code.
  - Constraints: minLength: 2, maxLength: 2
- `cursor` (string)
  - Constraints: maxLength: 512
- `feeTiers` (array)
  - Constraints: maxLength: 10
  - `items` (string)
    - Constraints: maxLength: 48
- `formats` (array): Matches projects with any of these formats.
  - Constraints: maxLength: 10
  - `items` (string)
    - Constraints: maxLength: 48
- `genres` (array): Matches projects playing any of these genres or a close subgenre.
  - Constraints: maxLength: 20
  - `items` (string)
    - Constraints: maxLength: 48
- `includeInactive` (boolean): Include hidden and archived projects.
  - Constraints: default: false
- `kinds` (array)
  - Constraints: maxLength: 10
  - `items` (string)
    - Constraints: maxLength: 48
- `latE6` (integer): Latitude in millionths of a degree, like the record's location.latE6.
  - Constraints: minimum: -90000000, maximum: 90000000
- `limit` (integer)
  - Constraints: minimum: 1, maximum: 60, default: 24
- `lngE6` (integer): Longitude in millionths of a degree.
  - Constraints: minimum: -180000000, maximum: 180000000
- `manager` (string · did): Only projects this account manages.
- `q` (string): Words to find in names, taglines, bios, genres, and places. Each word matches as a prefix, and every word must match.
  - Constraints: maxLength: 100
- `radiusKm` (integer)
  - Constraints: minimum: 1, maximum: 2000, default: 50
- `setTypes` (array): Matches projects doing any of these set types.
  - Constraints: maxLength: 10
  - `items` (string)
    - Constraints: maxLength: 48
- `sort` (string)
  - Constraints: maxLength: 32, knownValues: relevance | distance | recent | name
- `status` (string): Only projects with this status.
  - Constraints: maxLength: 32, knownValues: active | hidden | archived
- `unclaimed` (boolean): Only projects nobody manages yet.
  - Constraints: default: false

### Output (application/json)

- `cursor` (string)
  - Constraints: maxLength: 512
- `projects` (array, required)
  - `items` (ref)
    - Reference: `computer.localnetwork.directory.defs#projectView`
- `total` (integer, required): Matching projects across every page.
  - Constraints: minimum: 0

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Search published projects. Only active projects unless status or includeInactive says otherwise. Sorts by relevance with q, by distance with a location, and newest first otherwise.",
      "output": {
        "encoding": "application/json",
        "schema": {
          "properties": {
            "cursor": {
              "maxLength": 512,
              "type": "string"
            },
            "projects": {
              "items": {
                "ref": "computer.localnetwork.directory.defs#projectView",
                "type": "ref"
              },
              "type": "array"
            },
            "total": {
              "description": "Matching projects across every page.",
              "minimum": 0,
              "type": "integer"
            }
          },
          "required": [
            "projects",
            "total"
          ],
          "type": "object"
        }
      },
      "parameters": {
        "properties": {
          "country": {
            "description": "ISO 3166-1 alpha-2 code.",
            "maxLength": 2,
            "minLength": 2,
            "type": "string"
          },
          "cursor": {
            "maxLength": 512,
            "type": "string"
          },
          "feeTiers": {
            "items": {
              "maxLength": 48,
              "type": "string"
            },
            "maxLength": 10,
            "type": "array"
          },
          "formats": {
            "description": "Matches projects with any of these formats.",
            "items": {
              "maxLength": 48,
              "type": "string"
            },
            "maxLength": 10,
            "type": "array"
          },
          "genres": {
            "description": "Matches projects playing any of these genres or a close subgenre.",
            "items": {
              "maxLength": 48,
              "type": "string"
            },
            "maxLength": 20,
            "type": "array"
          },
          "includeInactive": {
            "default": false,
            "description": "Include hidden and archived projects.",
            "type": "boolean"
          },
          "kinds": {
            "items": {
              "maxLength": 48,
              "type": "string"
            },
            "maxLength": 10,
            "type": "array"
          },
          "latE6": {
            "description": "Latitude in millionths of a degree, like the record's location.latE6.",
            "maximum": 90000000,
            "minimum": -90000000,
            "type": "integer"
          },
          "limit": {
            "default": 24,
            "maximum": 60,
            "minimum": 1,
            "type": "integer"
          },
          "lngE6": {
            "description": "Longitude in millionths of a degree.",
            "maximum": 180000000,
            "minimum": -180000000,
            "type": "integer"
          },
          "manager": {
            "description": "Only projects this account manages.",
            "format": "did",
            "type": "string"
          },
          "q": {
            "description": "Words to find in names, taglines, bios, genres, and places. Each word matches as a prefix, and every word must match.",
            "maxLength": 100,
            "type": "string"
          },
          "radiusKm": {
            "default": 50,
            "maximum": 2000,
            "minimum": 1,
            "type": "integer"
          },
          "setTypes": {
            "description": "Matches projects doing any of these set types.",
            "items": {
              "maxLength": 48,
              "type": "string"
            },
            "maxLength": 10,
            "type": "array"
          },
          "sort": {
            "knownValues": [
              "relevance",
              "distance",
              "recent",
              "name"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "status": {
            "description": "Only projects with this status.",
            "knownValues": [
              "active",
              "hidden",
              "archived"
            ],
            "maxLength": 32,
            "type": "string"
          },
          "unclaimed": {
            "default": false,
            "description": "Only projects nobody manages yet.",
            "type": "boolean"
          }
        },
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "computer.localnetwork.directory.searchProjects",
  "lexicon": 1
}
```
