> For clean Markdown of any page, append .md to the page URL.
> For a complete documentation index, see https://docs.middesk.com/llms.txt.
> For AI client integration (Claude Code, Cursor, etc.), connect to the MCP server at https://docs.middesk.com/_mcp/server.

# Search jurisdictions

GET https://api.middesk.com/v1/agent/jurisdictions/search

Search for jurisdictions by name, PSD code, or other criteria. Supports filtering by state, tax type, and jurisdiction type. Results are paginated.

Reference: https://docs.middesk.com/api-reference/entity-management/jurisdictions/search-jurisdictions

## Authentication

- `Authorization` header (bearer token, required) — Bearer authentication of the form `Bearer <token>`, where token is your auth token.

## Request

### Query parameters

- `state` (string, optional) — Two-letter US state abbreviation (e.g., OH, PA)
- `q` (string, optional) — Search query (name, PSD code, or municipality)
- `page` (integer, optional) — Page number for pagination
- `per_page` (integer, optional) — Number of results per page
- `tax_type` (string, optional) — Filter by tax type (e.g., CITY, EIT, LST)
- `local_only` (string, optional) — When true, returns only local jurisdictions
- `slug` (string, optional) — Filter by jurisdiction slug

## Response

### 200

jurisdictions search results

- `object` (string, optional)
- `data` (list of AgentJurisdiction, optional)
- `url` (string, optional)
- `has_more` (boolean, optional)
- `total_count` (integer, optional)

## Types

### AgentJurisdiction

- `object` (string, required)
- `slug` (string, required) — Unique identifier for the jurisdiction
- `name` (string, required) — Full name of the jurisdiction
- `state` (string, required) — US state abbreviation
- `type` (string, optional) — Type of tax (e.g., City Tax, State Tax)
- `label` (string, optional) — Display label for the jurisdiction
- `agency_name` (string, optional) — Name of the tax agency
- `agency_slug` (string, optional) — Unique identifier for the agency
- `agency_items` (list of string, optional) — List of items collected by the agency
- `city` (string, optional, nullable) — City name if applicable

## Examples

**Response**

```json
{
  "object": "list",
  "data": [
    {
      "object": "agent_jurisdiction",
      "slug": "cincinnati_city_tax",
      "name": "Cincinnati City Tax",
      "state": "OH",
      "type": "City Tax",
      "label": "Cincinnati",
      "agency_name": "Cincinnati Income Tax Division",
      "agency_slug": "oh_cincinnati_city",
      "agency_items": [
        "Cincinnati Account Number"
      ],
      "city": "Cincinnati"
    }
  ],
  "url": "/v1/agent/jurisdictions/search",
  "has_more": false,
  "total_count": 1
}
```

**SDK Code**

```python Ohio jurisdictions search
import requests

url = "https://api.middesk.com/v1/agent/jurisdictions/search"

headers = {"Authorization": "Bearer <token>"}

response = requests.get(url, headers=headers)

print(response.json())
```

```javascript Ohio jurisdictions search
const url = 'https://api.middesk.com/v1/agent/jurisdictions/search';
const options = {method: 'GET', headers: {Authorization: 'Bearer <token>'}};

try {
  const response = await fetch(url, options);
  const data = await response.json();
  console.log(data);
} catch (error) {
  console.error(error);
}
```

```go Ohio jurisdictions search
package main

import (
	"fmt"
	"net/http"
	"io"
)

func main() {

	url := "https://api.middesk.com/v1/agent/jurisdictions/search"

	req, _ := http.NewRequest("GET", url, nil)

	req.Header.Add("Authorization", "Bearer <token>")

	res, _ := http.DefaultClient.Do(req)

	defer res.Body.Close()
	body, _ := io.ReadAll(res.Body)

	fmt.Println(res)
	fmt.Println(string(body))

}
```

```ruby Ohio jurisdictions search
require 'uri'
require 'net/http'

url = URI("https://api.middesk.com/v1/agent/jurisdictions/search")

http = Net::HTTP.new(url.host, url.port)
http.use_ssl = true

request = Net::HTTP::Get.new(url)
request["Authorization"] = 'Bearer <token>'

response = http.request(request)
puts response.read_body
```

```java Ohio jurisdictions search
import com.mashape.unirest.http.HttpResponse;
import com.mashape.unirest.http.Unirest;

HttpResponse<String> response = Unirest.get("https://api.middesk.com/v1/agent/jurisdictions/search")
  .header("Authorization", "Bearer <token>")
  .asString();
```

```php Ohio jurisdictions search
<?php
require_once('vendor/autoload.php');

$client = new \GuzzleHttp\Client();

$response = $client->request('GET', 'https://api.middesk.com/v1/agent/jurisdictions/search', [
  'headers' => [
    'Authorization' => 'Bearer <token>',
  ],
]);

echo $response->getBody();
```

```csharp Ohio jurisdictions search
using RestSharp;

var client = new RestClient("https://api.middesk.com/v1/agent/jurisdictions/search");
var request = new RestRequest(Method.GET);
request.AddHeader("Authorization", "Bearer <token>");
IRestResponse response = client.Execute(request);
```

```swift Ohio jurisdictions search
import Foundation

let headers = ["Authorization": "Bearer <token>"]

let request = NSMutableURLRequest(url: NSURL(string: "https://api.middesk.com/v1/agent/jurisdictions/search")! as URL,
                                        cachePolicy: .useProtocolCachePolicy,
                                    timeoutInterval: 10.0)
request.httpMethod = "GET"
request.allHTTPHeaderFields = headers

let session = URLSession.shared
let dataTask = session.dataTask(with: request as URLRequest, completionHandler: { (data, response, error) -> Void in
  if (error != nil) {
    print(error as Any)
  } else {
    let httpResponse = response as? HTTPURLResponse
    print(httpResponse)
  }
})

dataTask.resume()
```