← Back to API Ninjas
GET/v1/county

Get County Information

Returns details for one or more counties matching the input parameters.

API Ninjas·$0.001 per call

Example code

// Using @orth/sdk - The simplest way to call APIs // Install: npm install @orth/sdk import Orthogonal from "@orth/sdk"; const orthogonal = new Orthogonal({ apiKey: process.env.ORTHOGONAL_API_KEY, }); const output = await orthogonal.run({ api: "api-ninjas", path: "/v1/county" }); console.log(output);

Query parameters

county
string

Full name of the county to search.

zipcode
string

5-digit ZIP code to search.

state
string

2-letter state code (case-insensitive).

limit
number

Number of results to return. Must be between 1 and 30. Default is 1. (Default: 1)

offset
number

Number of results to offset for pagination. Default is 0. (Default: 0)

    Orthogonal - Giving AI agents the tools they need.