> For the complete documentation index, see [llms.txt](https://developer.parvenu.io/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://developer.parvenu.io/search/company-search/search-states-codes.md).

# Search States Codes

Look up state slug codes by name. Free helper for /company\_search.

## Search States Codes

<mark style="color:green;">`POST`</mark> `/search_company_states`

{% hint style="info" %}
Free — no credits are used. Resolve state values for Company Search.
{% endhint %}

**Headers**

| Name         | Value              |
| ------------ | ------------------ |
| Content-Type | `application/json` |

**Body**

| Name      | Type   | Description                        |
| --------- | ------ | ---------------------------------- |
| `api_key` | string | Your API Key.                      |
| `search`  | string | Text to match against state names. |

**Response**

The rows are under `data`. See [Response Format](/getting-started/response-format.md) for the fields every endpoint returns.

| Field  | Description                       |
| ------ | --------------------------------- |
| `code` | The slug for this state.          |
| `name` | The state name this slug matches. |

`total` is the number of matches returned.

**Example**

{% tabs %}
{% tab title="Input" %}

```json
{
  "api_key": "your_api_key",
  "search": "cali"
}
```

{% endtab %}

{% tab title="Output" %}

```json
{
  "status": "success",
  "data": [
    { "code": "california|us", "name": "California" },
    { "code": "baja-california|mx", "name": "Baja California" }
  ],
  "credits_used": 0,
  "credits_remaining": 4823,
  "total": 2,
  "success": true
}
```

{% endtab %}
{% endtabs %}
