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

# Keyword Difficulty

> Batch keyword ranking-difficulty scores.

# Keyword Difficulty

```json theme={"system"}
{"keywords":["keyword research","seo tools"],"location_code":2840,"language_code":"en"}
```

Accepts up to 1,000 keywords and returns a 0–100 difficulty score per available keyword.


## OpenAPI

````yaml api-manual/agent-api/agent-api.json POST /v1/seo/keyword-difficulty
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/keyword-difficulty:
    post:
      tags:
        - seo
      summary: Keyword Difficulty API
      description: Calculate ranking difficulty for each input keyword.
      operationId: socq_seo_keyword_difficulty
      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
                keywords:
                  type: array
                  items:
                    type: string
                    minLength: 1
                    maxLength: 80
                  minItems: 1
                  maxItems: 1000
                  description: Keywords to analyze in one batch.
                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.
                results_limit:
                  type: integer
                  minimum: 1
                  maximum: 2000
              required:
                - keywords
      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

````