> ## 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.

# Ranked Keywords

> Find keywords a domain, subdomain, or page already ranks for.

# Ranked Keywords

```json theme={"system"}
{
  "target": "microsoft.com",
  "location_code": 2840,
  "language_code": "en",
  "results_limit": 5
}
```

Each item is one ranked keyword record with keyword metrics and the matching search-result position.


## OpenAPI

````yaml api-manual/agent-api/agent-api.json POST /v1/seo/ranked-keywords
openapi: 3.1.0
info:
  title: SocQ Agent API
  version: v1-c8347f9103e7
  description: Asynchronous social data API generated from the SocQ Capability Registry.
servers:
  - url: https://api.socq.ai
security: []
paths:
  /v1/seo/ranked-keywords:
    post:
      tags:
        - seo
      summary: Ranked Keywords API
      description: Find keywords already ranked by a domain or page.
      operationId: socq_seo_ranked_keywords
      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
                language:
                  type: string
                  minLength: 1
                language_code:
                  type: string
                  minLength: 2
                  maxLength: 10
                location_code:
                  type: integer
                  minimum: 1
                  description: Search market location code.
                location_name:
                  type: string
                  minLength: 1
                  description: Search market location name.
                offset:
                  type: integer
                  minimum: 0
                results_limit:
                  type: integer
                  minimum: 1
                  maximum: 1000
                  default: 100
                target:
                  type: string
                  minLength: 1
                  description: Domain, subdomain, or page URL.
              required:
                - target
      responses:
        '200':
          description: Task accepted
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/AgentSubmitResponse'
      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'
            idempotent_replay:
              type: boolean
          required:
            - task_id
            - status
  securitySchemes:
    bearerAuth:
      type: http
      scheme: bearer
    apiKeyAuth:
      type: apiKey
      in: header
      name: x-api-key

````