# VA Facilities API

> ## Background This RESTful API provides information about physical VA facilities. Information available includes geographic location, address, phone, hours of operation, and available services. VA operates several different types of facilities, the types represented in this API include: - Health Facilities (vha) - Benefits Facilities (vba) - Cemeteries (nca) - Vet Centers (vc) To read an FAQ on how wait times are calculated, click the "For more information" link on [this page](https://www.accesstocare.va.gov/PWT/SearchWaitTimes). ## Getting Started ### Base URLs The base URLs for the VA Facilities API in the various environments are: - Sandbox: `https://sandbox-api.va.gov/services/va_facilities/v0` - Production: `https://api.va.gov/services/va_facilities/v0` ### Authorization API requests are authorized through a symmetric API token, provided in an HTTP header with name `apikey`. ### Response Formats Clients may request several response formats by setting the `Accept` header. - `application/json` - The default JSON response format complies with JSON API. This media type is *not* available for bulk requests using the `/facilities/all` endpoint. It will return `406 Not Acceptable`. - `application/geo+json` - GeoJSON-compliant format, representing each facility as a feature with a point geometry. - `application/vnd.geo+json` - Deprecated. Prefer application/geo+json. - `text/csv` - Available for the bulk download operation only. Some structured fields are omitted from the CSV response. ### Response Elements Some data elements within the response are only present for facilities of a given type: - The patient satisfaction scores contained in the `satisfaction` element are only applicable to VA health facilities. - The patient wait time values contained in the `wait_times` element are only applicable to VA health facilities. - The list of available services in the `services` element is only applicable to VA health and benefits facilities. - The operational hours special instructions contained in the `operational_hours_special_instructions` element is only applicable to VA health and Vet Center facilities. ### Facility ID Formats and Constraints A facility ID has the format `prefix_stationNumber`. The prefix is one of nca, vc, vba, or vha. Cemeteries may be national (VA) or non-national; non-national cemeteries have the station number prefixed with an `s`. There are no other constraints on the format. Examples: - Health: `vha_402GA` - Benefits: `vba_539GB` - National cemetery: `nca_063` - Non-national cemetery: `nca_s1082` - Vet center: `vc_0872MVC` ### Mobile Facilities The mobile health facilities move regularly within a region. If a facility comes back from this API with `"mobile": "true"`, the latitude/longitude and address could be inaccurate. To get the exact current location, please call the number listed. ## Deprecations - `active_status` field is deprecated and replaced with `operating_status`. - `application/vnd.geo+json` media type is deprecated and replaced by `application/geo+json` ## Reference - [Raw VA Facilities Open API Spec](https://api.va.gov/services/va_facilities/docs/v0/api) - [GeoJSON Format](https://tools.ietf.org/html/rfc7946) - [JSON API Format](https://jsonapi.org/format/)

VA Facilities is a geocoding API from va.gov. Requests are authenticated with an API key. It is served over HTTPS. Its OpenAPI description documents 5 endpoints.

## At a glance

- Category: [Geocoding](https://www.openparable.com/apis/category/geocoding)
- Provider: va.gov
- Authentication: API key
- HTTPS: Yes
- CORS: Not stated
- Documentation: https://va.gov/
- OpenAPI description: https://api.apis.guru/v2/specs/va.gov/facilities/0.0.1/openapi.json
- Version: 0.0.1
- Specification updated: 2021-07-05

## Endpoints

- `GET /facilities` — Query facilities by location or IDs, with optional filters
- `GET /facilities/all` — Bulk download information for all facilities
- `GET /facilities/{id}` — Retrieve a specific facility by ID
- `GET /ids` — Bulk download of all facility IDs
- `GET /nearby` — Retrieve all VA health facilities reachable by driving within the specified time period

## Questions

### Does the VA Facilities API need an API key?

Yes. The VA Facilities API uses API key authentication; the documentation explains how to get credentials.

### Does the VA Facilities API support HTTPS?

Yes, the VA Facilities API is served over HTTPS.

### How many endpoints does the VA Facilities API have?

Its OpenAPI description lists 5 endpoints in version 0.0.1. All of them are shown on this page.

### What are alternatives to the VA Facilities API?

Other Geocoding APIs include Bing Maps, ip-api, OpenStreetMap, GeographQL, IP Address Details.

## Similar geocoding APIs

- [Bing Maps](https://www.openparable.com/apis/bing-maps): Create/customize digital maps based on Bing Maps data
- [ip-api](https://www.openparable.com/apis/ip): Find location with IP address or domain
- [OpenStreetMap](https://www.openparable.com/apis/openstreetmap): Navigation, geolocation and geographical data
- [GeographQL](https://www.openparable.com/apis/geographql): A Country, State, and City GraphQL API
- [IP Address Details](https://www.openparable.com/apis/ip-address-details): Find geolocation with ip address
- [ipapi.co](https://www.openparable.com/apis/ipapi-co): Find IP address location information
- [Mapbox](https://www.openparable.com/apis/mapbox): Create/customize beautiful digital maps
- [HERE Maps](https://www.openparable.com/apis/here-maps): Create/customize digital maps based on HERE Maps data
- [Kakao Maps](https://www.openparable.com/apis/kakao-maps): Kakao Maps provide multiple APIs for Korean maps
- [MapQuest](https://www.openparable.com/apis/mapquest): To access tools and resources to map the world
- [IP2Location](https://www.openparable.com/apis/ip2location): IP geolocation web service to get more than 55 parameters
- [Google Earth Engine](https://www.openparable.com/apis/google-earth-engine): A cloud-based platform for planetary-scale environmental data analysis

Listed from: APIs.guru (CC0). Check the provider's terms before use.

---

Source: https://www.openparable.com/apis/va-facilities (OpenParable). Cite the canonical URL above.
