# social.grain.actor.getProfile

> Get an actor's profile with gallery stats and follow relationships.

- Kind: query
- Authority: actor.grain.social
- Lexicon: 1
- Published by [grain.social](https://lexicon.garden/identity/did:plc:e7rftrdyz5e2rw4y6ocszew2), the NSID's authority

## Links

- [Documentation](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.actor.getProfile)
- [Schema JSON](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.actor.getProfile/schema.json)
- [Analytics](https://lexicon.garden/lexicon/did:plc:e7rftrdyz5e2rw4y6ocszew2/social.grain.actor.getProfile/analytics)

## Query (`social.grain.actor.getProfile`)

Type: query · GET

### Parameters (query string)

- `actor` (string · at-identifier, required)

### Output (application/json)

- `schema` (ref)
  - Reference: `social.grain.actor.defs#profileViewDetailed`

### Errors

- `AccountTakedown`: An admin, or the account's host, took it down.
- `AccountDeactivated`: The account's host says it is deactivated.

## Schema

```json
{
  "$type": "com.atproto.lexicon.schema",
  "defs": {
    "main": {
      "description": "Get an actor's profile with gallery stats and follow relationships.",
      "errors": [
        {
          "description": "An admin, or the account's host, took it down.",
          "name": "AccountTakedown"
        },
        {
          "description": "The account's host says it is deactivated.",
          "name": "AccountDeactivated"
        }
      ],
      "output": {
        "encoding": "application/json",
        "schema": {
          "ref": "social.grain.actor.defs#profileViewDetailed",
          "type": "ref"
        }
      },
      "parameters": {
        "properties": {
          "actor": {
            "format": "at-identifier",
            "type": "string"
          }
        },
        "required": [
          "actor"
        ],
        "type": "params"
      },
      "type": "query"
    }
  },
  "id": "social.grain.actor.getProfile",
  "lexicon": 1
}
```
