---
title: US County Search API
slug: search-counties
url: https://apyhub.com/dosvak/service/search-counties
provider: Dosvak LLC
categories: [Geolocation, Standard Data]
tags: [county-search, location-lookup, administrative-areas, geolocation, reference-data]
auth: api_key
---

# US County Search API

Look up county matches from a text query, with optional result limiting. Built for address workflows, jurisdiction checks, and location search.

## Endpoints

| Method | URL | Description | Atoms |
| --- | --- | --- | --- |
| GET | `https://api.eu.apyhub.com/dosvak/search-counties` | What it does Searches for counties using a query string and optionally limits the number of results… | 100 |

## Examples

### Search counties

#### Quickstart

Search counties by query, optionally limiting the number of results.

```bash
curl -X GET "https://api.eu.apyhub.com/dosvak/search-counties?query=Los+Angeles&limit=10" \
  -H "apy-token: $APY_TOKEN"
```

#### What you'll get back

Returns a JSON object containing the search query, the number of matching counties, the matching county records, and attribution details.

```json
{
  "query": "california",
  "count": 5,
  "results": [
    {
      "county_fips": "06037",
      "county_name": "Los Angeles County",
      "state_name": "California",
      "population": 9757179,
      "median_household_income": "80794",
      "poverty_rate": "13.1",
      "unemployment_rate": "5.4"
    },
    {
      "county_fips": "06073",
      "county_name": "San Diego County",
      "state_name": "California",
      "population": 3298799,
      "median_household_income": null,
      "poverty_rate": null,
      "unemployment_rate": null
    }
  ],
  "attribution": []
}
```

## About

## What it does
US County Search lets you search for U.S. counties by name and returns matching county records and get matching results back in a structured response. Send a `query` string, and optionally set `limit` to control how many matches you want returned.

Use it when you need county-level reference data in forms, address workflows, jurisdiction checks, or analytics pipelines. The endpoint is designed for simple lookup flows where a user types a place name such as "Los Angeles" and your app needs to resolve it to county matches without maintaining its own county dataset.

County Search keeps the request surface small: `query` is required, and `limit` defaults to 50 with a maximum of 200. The response schema is open-ended, so you should treat the payload as a structured county search result rather than rely on undocumented fields.

If you're building location search, county selection, or administrative-region validation into a product, County Search gives you a focused lookup endpoint for that step in the workflow.

## Usage

Base URL: `https://api.eu.apyhub.com` (default region — see
`GET https://apyhub.com/api/public/regions` for the rest).

Authenticate with an ApyHub API key in the `apy-token` header.
Full docs and a live playground: https://apyhub.com/dosvak/service/search-counties
