Skip to main content
POST
Get Hospital Information

Request contract

  • Method and path: POST /apis/v1/api-ninjas/get-hospitals
  • Availability: enabled
  • Request URL template: https://api.aisa.one/apis/v1/api-ninjas/get-hospitals
Complete OpenAPI definition Effective request declaration (including authentication and referenced schemas):

Cost and request rules

Usage-based pricing. Default request estimate: $0.00089 USD. The final charge depends on actual usage. Your account price may differ; use a request quote where supported.

Authorizations

Authorization
string
header
required

Bearer authentication header of the form Bearer <token>, where <token> is your auth token.

Body

application/json
city
string

City where the hospital is located (e.g., 'New York', 'Los Angeles').

Examples:

"New York"

"Los Angeles"

county
string

County where the hospital is located (e.g., 'New York County', 'Los Angeles County').

Examples:

"New York County"

"Los Angeles County"

limit
integer

Number of results to return per request (maximum 100, free users limited to 5).

Required range: 1 <= x <= 100
max_latitude
number

Maximum latitude coordinate for geographic filtering (range: -90 to 90).

Required range: -90 <= x <= 90
max_longitude
number

Maximum longitude coordinate, applied locally within the requested provider page (range: -180 to 180). Requires a name or location filter; coordinate-only search is not supported.

Required range: -180 <= x <= 180
min_latitude
number

Minimum latitude coordinate for geographic filtering (range: -90 to 90).

Required range: -90 <= x <= 90
min_longitude
number

Minimum longitude coordinate, applied locally within the requested provider page (range: -180 to 180). Requires a name or location filter; coordinate-only search is not supported.

Required range: -180 <= x <= 180
name
string

Hospital name to search for (e.g., 'General Hospital', 'Memorial'). Partial matches are supported.

Examples:

"General Hospital"

"Memorial"

offset
integer

Provider-row offset to skip the first N results. Geographic bounds are enforced within each provider page; advance offset to inspect further pages.

Required range: x >= 0
state
string

State where the hospital is located (e.g., 'NY', 'CA', 'Texas').

Examples:

"NY"

"CA"

"Texas"

zipcode
string

Hospital ZIP code (e.g., '10001', '90001').

Examples:

"10001"

"90001"

Response

Tool result data

details
object[]
required