---
updatedAt: 2026-08-20T21:31:37.000Z
agentTools:
  projectIndex: https://artisttools.readme.io/llms.txt
---

# Get keyword autocomplete suggestions

Returns market-specific keyword suggestions related to a seed phrase. Use them to explore alternative wording and expand keyword research. Suggestions are returned as phrases only and can change over time; use the keyword endpoints separately when you need stored keyword metrics.

# OpenAPI definition

```json
{
  "openapi": "3.0.3",
  "info": {
    "title": "artist.tools V2 API",
    "description": "REST API for accessing artist.tools data about Spotify playlists, tracks, artists and curators, as well as miscellaneous utilities. All endpoints are read-only and require an `x-api-key` sent as a request header.",
    "version": "2.0.0"
  },
  "servers": [
    {
      "url": "https://api.artist.tools/v2",
      "description": "Production server"
    }
  ],
  "security": [
    {
      "ApiKeyAuth": []
    }
  ],
  "tags": [
    {
      "name": "Keywords",
      "description": "Keyword research data and market-specific phrase discovery."
    }
  ],
  "paths": {
    "/keywords/autocomplete": {
      "get": {
        "tags": [
          "Keywords"
        ],
        "summary": "Get keyword autocomplete suggestions",
        "description": "Returns market-specific keyword suggestions related to a seed phrase. Use them to explore alternative wording and expand keyword research. Suggestions are returned as phrases only and can change over time; use the keyword endpoints separately when you need stored keyword metrics.",
        "parameters": [
          {
            "name": "q",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string",
              "minLength": 1,
              "maxLength": 80
            },
            "description": "Seed phrase to expand. Leading and trailing whitespace is removed."
          },
          {
            "name": "market",
            "in": "query",
            "schema": {
              "type": "string",
              "pattern": "^[a-zA-Z]{2}$",
              "default": "us"
            },
            "description": "Supported two-letter keyword market code."
          }
        ],
        "responses": {
          "200": {
            "$ref": "#/components/responses/KeywordAutocompleteResponse"
          },
          "400": {
            "$ref": "#/components/responses/BadRequest"
          },
          "502": {
            "$ref": "#/components/responses/UpstreamError"
          }
        }
      }
    }
  },
  "components": {
    "securitySchemes": {
      "ApiKeyAuth": {
        "type": "apiKey",
        "in": "header",
        "name": "x-api-key"
      }
    },
    "schemas": {
      "SuccessEnvelope": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": true
          },
          "status": {
            "type": "integer",
            "example": 200
          }
        },
        "required": [
          "success",
          "status"
        ]
      },
      "KeywordAutocompleteData": {
        "type": "object",
        "description": "Normalized autocomplete request and its ordered, de-duplicated phrase suggestions. No keyword metrics are included.",
        "properties": {
          "query": {
            "type": "string",
            "description": "Trimmed seed phrase supplied by the customer."
          },
          "market": {
            "type": "string",
            "description": "Validated lowercase market code used for the request."
          },
          "suggestions": {
            "type": "array",
            "maxItems": 50,
            "description": "Up to 50 non-empty phrases in source order after case-insensitive de-duplication. Keyword metrics are intentionally excluded.",
            "items": {
              "type": "string",
              "maxLength": 160
            }
          }
        },
        "required": [
          "query",
          "market",
          "suggestions"
        ]
      },
      "ErrorResponse": {
        "type": "object",
        "properties": {
          "success": {
            "type": "boolean",
            "example": false
          },
          "error": {
            "type": "string"
          },
          "status": {
            "type": "integer"
          }
        },
        "required": [
          "success",
          "error",
          "status"
        ]
      }
    },
    "responses": {
      "KeywordAutocompleteResponse": {
        "description": "Market-specific suggestions for the supplied seed phrase.",
        "content": {
          "application/json": {
            "schema": {
              "allOf": [
                {
                  "$ref": "#/components/schemas/SuccessEnvelope"
                },
                {
                  "type": "object",
                  "properties": {
                    "type": {
                      "type": "string",
                      "enum": [
                        "keyword_autocomplete"
                      ]
                    },
                    "data": {
                      "$ref": "#/components/schemas/KeywordAutocompleteData"
                    }
                  },
                  "required": [
                    "type",
                    "data"
                  ]
                }
              ]
            },
            "examples": {
              "suggestions": {
                "summary": "Suggestions found",
                "value": {
                  "success": true,
                  "status": 200,
                  "type": "keyword_autocomplete",
                  "data": {
                    "query": "indie",
                    "market": "us",
                    "suggestions": [
                      "indie music",
                      "indie rock",
                      "indie pop"
                    ]
                  }
                }
              },
              "noSuggestions": {
                "summary": "Valid seed with no suggestions",
                "value": {
                  "success": true,
                  "status": 200,
                  "type": "keyword_autocomplete",
                  "data": {
                    "query": "very specific seed phrase",
                    "market": "us",
                    "suggestions": []
                  }
                }
              }
            }
          }
        }
      },
      "UpstreamError": {
        "description": "An upstream suggestion provider was unavailable. Upstream messages and statuses are not exposed.",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      },
      "BadRequest": {
        "description": "Client error",
        "content": {
          "application/json": {
            "schema": {
              "$ref": "#/components/schemas/ErrorResponse"
            }
          }
        }
      }
    }
  }
}
```