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

# List Cities For State

Return the available city options for a state code.

# OpenAPI definition

```json
{
  "openapi": "3.0.1",
  "info": {
    "title": "Content Rule Profiles",
    "version": "1.0.0",
    "description": "Content rule profile endpoints for managing reusable profile-based geo and access rules."
  },
  "servers": [
    {
      "url": "https://api.zype.com/"
    }
  ],
  "security": [
    {
      "api_key": []
    }
  ],
  "components": {
    "securitySchemes": {
      "api_key": {
        "type": "apiKey",
        "name": "api_key",
        "in": "query"
      }
    }
  },
  "paths": {
    "/v3/content_rule_profiles/cities_for_state": {
      "get": {
        "tags": [
          "Content Rule Profiles"
        ],
        "summary": "List Cities For State",
        "description": "Return the available city options for a state code.",
        "operationId": "listCitiesForState",
        "parameters": [
          {
            "name": "state",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Two-letter state code, for example `CA` or `NY`."
          }
        ],
        "responses": {
          "200": {
            "description": "City options for the selected state.",
            "content": {
              "application/json": {
                "schema": {
                  "title": "LocationOptionsResponse",
                  "type": "object",
                  "properties": {
                    "results": {
                      "type": "array",
                      "items": {
                        "title": "LocationOption",
                        "type": "object",
                        "properties": {
                          "id": {
                            "type": "string"
                          },
                          "text": {
                            "type": "string"
                          }
                        }
                      }
                    }
                  }
                }
              }
            }
          },
          "403": {
            "description": "Forbidden",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/paths/~1v3~1content_rule_profiles/get/responses/403/content/application~1json/schema"
                }
              }
            }
          }
        }
      }
    }
  }
}
```