> ## Documentation Index
> Fetch the complete documentation index at: https://docs.socq.ai/llms.txt
> Use this file to discover all available pages before exploring further.

# Age and Gender Detection

> Estimate a creator's age range and gender from the profile photo on Instagram, TikTok, YouTube, X or Threads.

# Age and Gender Detection

Sort a creator list by demographic before you spend time reviewing content. The estimate is read from the face in the profile photo and comes back as an age range, a gender and a confidence score. It works best on personal accounts with a clear headshot; logos and group photos leave the age and gender fields empty.

```json theme={"dark"}
{
  "url": "https://x.com/levelsio"
}
```

Provide one Instagram, TikTok, YouTube, X or Threads profile URL in url. Age and gender are estimated from the face in the profile photo. Each lookup costs 1 credit and returns one row. A profile that does not exist fails with a refund.

## Standard Result Fields

Task results use the stable SocQ fields below. Source-specific field names and formats are normalized without inferring or enriching values that the source did not provide. To request a smaller field set, use `fields` for MCP queries, `_result_fields` for typed tools, or `--result-fields` in the CLI. Declared fields remain present when their value is `null`.

| Field | Type | Nullable | Description |
| - | - | - | - |
| `id` | `string` | Yes | Network and handle of the profile, such as `instagram:levelsio`. |
| `platform` | `string` | No | Platform the result belongs to, such as `instagram` or `linkedin`. |
| `resource` | `string` | No | SocQ resource represented by the result, such as `videos` or `comments`. |
| `type` | `string` | No | Category of the result item, such as `video`, `post`, or `comment`. |
| `url` | `string` | Yes | Profile URL that was analyzed. |
| `published_at` | `string` | Yes | Time the source item was published, in ISO 8601 format when available. |
| `collected_at` | `string` | No | Time SocQ collected or processed this result, in ISO 8601 format. |
| `network` | `string` | Yes | Network of the profile, such as `instagram` or `tiktok`. |
| `username` | `string` | Yes | Handle of the profile. |
| `age_min` | `integer` | Yes | Lower bound of the estimated age range, in years. |
| `age_max` | `integer` | Yes | Upper bound of the estimated age range, in years. |
| `gender` | `string` | Yes | Estimated gender, `male` or `female`, read from the face in the profile photo. |
| `gender_confidence` | `number` | Yes | Confidence of the gender estimate, from 0 to 100. |

The following example shows the response format for a completed task. Actual data depends on your query.

## Completed Task Response

```json theme={"dark"}
{
  "code": 200,
  "data": {
    "task_id": "example-creator-age-gender",
    "status": "succeeded",
    "public_id": "creator/age-gender",
    "result_count": 1,
    "credits_amount": 1,
    "results": {
      "limit": 50,
      "next_cursor": null,
      "has_more": false,
      "schema_id": "age-gender",
      "schema_version": "1.0",
      "items": [
        {
          "id": "x:levelsio",
          "platform": "creator",
          "resource": "age-gender",
          "type": "age-gender",
          "url": "https://x.com/levelsio",
          "published_at": null,
          "collected_at": "2026-11-17T23:54:15.463717Z",
          "network": "x",
          "username": "levelsio",
          "age_min": 24,
          "age_max": 30,
          "gender": "male",
          "gender_confidence": 50.693355560302734
        }
      ]
    }
  }
}
```


## OpenAPI

````yaml api-manual/agent-api/agent-api.json POST /v1/creator/age-gender
openapi: 3.1.0
info:
  title: SocQ Agent API
  version: v1-87892a6484c2
  description: Asynchronous social data API generated from the SocQ Capability Registry.
servers:
  - url: https://api.socq.ai
security: []
paths:
  /v1/creator/age-gender:
    post:
      tags:
        - creator
      summary: Age and Gender Detection API
      description: Estimate the age range and gender of a creator from the profile photo.
      operationId: socq_creator_age_gender
      requestBody:
        required: true
        content:
          application/json:
            schema:
              $schema: https://json-schema.org/draft/2020-12/schema
              type: object
              additionalProperties: false
              properties:
                callback_url:
                  type: string
                  format: uri
                url:
                  type: string
                  minLength: 1
                  description: >-
                    Public profile URL, such as
                    https://www.instagram.com/<username> or
                    https://www.tiktok.com/@<username>.
              required:
                - url
              description: >-
                Provide one Instagram, TikTok, YouTube, X or Threads profile URL
                in url. Age and gender are estimated from the face in the
                profile photo, which suits accounts run by a person.
      responses:
        '200':
          description: Task accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSubmitResponse'
        '422':
          description: Input validation failed
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentValidationErrorResponse'
      security:
        - bearerAuth: []
        - apiKeyAuth: []
components:
  schemas:
    AgentSubmitResponse:
      type: object
      properties:
        code:
          type: integer
          const: 200
        data:
          type: object
          properties:
            task_id:
              type: string
            status:
              type: string
            created_time:
              type:
                - string
                - 'null'
          required:
            - task_id
            - status
    AgentValidationErrorResponse:
      type: object
      properties:
        code:
          type: integer
          const: 422
        error:
          type: object
          properties:
            message:
              type: string
            type:
              type: string
            details:
              type: object
          required:
            - message
            - type
      required:
        - code
        - error
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````

This documentation is built and hosted on [Mintlify](https://mintlify.com), a developer documentation platform.