# Get basic profile by ID

Fetch public profile metadata by numeric user ID. Unavailable metadata is listed in missing_fields.

- Platform: [Instagram](https://docs.upscrape.com/docs/platforms/instagram)
- Capability ID: `instagram.profile.basic`
- Cost: 1 credit per request
- Maximum runtime: 60 seconds
- Execute endpoint: `POST https://data.upscrape.com/execute`

## Request

Use the exact public capability ID in the shared execute envelope.

```bash
curl --request POST \
  --url https://data.upscrape.com/execute \
  --header "Authorization: Bearer $UPSCRAPE_API_KEY" \
  --header "Content-Type: application/json" \
  --header "Prefer: wait=30" \
  --data '{
  "input": {
    "user_id": "528817151"
  },
  "capability": "instagram.profile.basic"
}'
```

## Input


| Field | Type | Required | Description |
| --- | --- | --- | --- |
| `user_id` | `string` | Yes | Numeric Instagram user ID |

### Example input

```json
{
  "user_id": "528817151"
}
```

## Response

Successful output is returned in `results[0].data`.

Raw platform output is intentionally open-ended and may evolve with the upstream source.

### Illustrative sample output

This example shows one response. Values and optional fields vary with the data available.

```json
{
  "data": {
    "biography": "Making the seemingly impossible, possible. ✨",
    "edge_follow": {
      "count": 92
    },
    "external_url": "https://www.nasa.gov",
    "following_count": 92,
    "full_name": "NASA",
    "id": "528817151",
    "is_private": false,
    "is_verified": true,
    "metadata_complete": false,
    "missing_fields": [
      "media_count",
      "bio_links",
      "category"
    ],
    "pk": "528817151",
    "username": "nasa"
  },
  "user_id": "528817151"
}
```
### Illustrative output fields

Derived from the sample above for orientation only. These fields are not a fixed response schema.

| Path | Observed type | Example |
| --- | --- | --- |
| `data` | `object` | 12 fields |
| `data.biography` | `string` | Making the seemingly impossible, possible. ✨ |
| `data.edge_follow` | `object` | 1 fields |
| `data.external_url` | `string` | https://www.nasa.gov |
| `data.following_count` | `integer` | 92 |
| `data.full_name` | `string` | NASA |
| `data.id` | `string` | 528817151 |
| `data.is_private` | `boolean` | false |
| `data.is_verified` | `boolean` | true |
| `data.metadata_complete` | `boolean` | false |
| `data.missing_fields` | `array` | 3 items |
| `data.pk` | `string` | 528817151 |
| `data.username` | `string` | nasa |
| `user_id` | `string` | 528817151 |

## Execution behavior

A `200` response completed inline. A `202` response was queued; poll `GET /jobs/{id}` until the job reaches `completed` or `failed`. Use an `Idempotency-Key` when retrying must not create a duplicate logical job.

## Related documentation

- [Authentication](https://docs.upscrape.com/docs/api/authentication)
- [Jobs and results](https://docs.upscrape.com/docs/api/jobs)
- [Errors and retries](https://docs.upscrape.com/docs/api/errors)
- [Idempotency](https://docs.upscrape.com/docs/api/idempotency)
