# BARS Docs ## Docs - [Find nearest airport](https://docs.stopbars.com/api-reference/airports/find-nearest-airport.md): Returns the nearest airport to a given latitude/longitude. Results are cached in 5NM buckets for high performance. - [Get airport data](https://docs.stopbars.com/api-reference/airports/get-airport-data.md): Fetch airport(s) by ICAO(s) or by continent. - [Delete current user account](https://docs.stopbars.com/api-reference/auth/delete-current-user-account.md) - [Get authenticated account information](https://docs.stopbars.com/api-reference/auth/get-authenticated-account-information.md) - [Get VATSIM network status for API key](https://docs.stopbars.com/api-reference/auth/get-vatsim-network-status-for-api-key.md): Validates a BARS API key and returns the user's current VATSIM connection status parsed from slurper.vatsim.net. - [Regenerate API key](https://docs.stopbars.com/api-reference/auth/regenerate-api-key.md): Generates a new API key for the authenticated user (24h cooldown). - [Update preferred display name mode](https://docs.stopbars.com/api-reference/auth/update-preferred-display-name-mode.md) - [VATSIM OAuth callback](https://docs.stopbars.com/api-reference/auth/vatsim-oauth-callback.md): Exchanges authorization code for a VATSIM token and redirects to frontend with token. - [Download a file from CDN](https://docs.stopbars.com/api-reference/cdn/download-a-file-from-cdn.md) - [Submit a contact form](https://docs.stopbars.com/api-reference/contact/submit-a-contact-form.md): Public endpoint to submit a contact/support message. Limited to 1 submission per 24 hours per IP. - [Delete a contribution](https://docs.stopbars.com/api-reference/contributions/delete-a-contribution.md): Deletes a contribution only when it is pending or rejected. Staff (Product Manager or higher) or the original submitter may perform this action. - [Get a specific contribution](https://docs.stopbars.com/api-reference/contributions/get-a-specific-contribution.md) - [Get most used packages](https://docs.stopbars.com/api-reference/contributions/get-most-used-packages.md) - [Get top contributors](https://docs.stopbars.com/api-reference/contributions/get-top-contributors.md) - [List contributions](https://docs.stopbars.com/api-reference/contributions/list-contributions.md) - [Submit a new contribution](https://docs.stopbars.com/api-reference/contributions/submit-a-new-contribution.md) - [List current BARS data packages](https://docs.stopbars.com/api-reference/data/list-current-bars-data-packages.md): Public metadata for installer MSFS data packages (models & removals). Returns size, hash and timestamps. - [Delete a division airport request](https://docs.stopbars.com/api-reference/divisions/delete-a-division-airport-request.md) - [Get division details](https://docs.stopbars.com/api-reference/divisions/get-division-details.md) - [Get divisions for current user](https://docs.stopbars.com/api-reference/divisions/get-divisions-for-current-user.md) - [List all divisions](https://docs.stopbars.com/api-reference/divisions/list-all-divisions.md) - [List division airports](https://docs.stopbars.com/api-reference/divisions/list-division-airports.md) - [List division members](https://docs.stopbars.com/api-reference/divisions/list-division-members.md) - [List public EuroScope files for an airport](https://docs.stopbars.com/api-reference/euroscope/list-public-euroscope-files-for-an-airport.md) - [List public FAQs](https://docs.stopbars.com/api-reference/faq/list-public-faqs.md) - [Generate Light Supports and BARS XML](https://docs.stopbars.com/api-reference/generation/generate-light-supports-and-bars-xml.md): Upload raw XML and generate both light supports XML and processed BARS XML. - [Get latest approved BARS map XML (raw content) for an airport & package](https://docs.stopbars.com/api-reference/generation/get-latest-approved-bars-map-xml-raw-content-for-an-airport-&-package.md) - [List GitHub contributors](https://docs.stopbars.com/api-reference/github/list-github-contributors.md) - [Get download statistics (per product)](https://docs.stopbars.com/api-reference/installer/get-download-statistics-per-product.md) - [Get latest release for a product](https://docs.stopbars.com/api-reference/installer/get-latest-release-for-a-product.md) - [List all product releases (optionally filtered)](https://docs.stopbars.com/api-reference/installer/list-all-product-releases-optionally-filtered.md) - [Record a product download](https://docs.stopbars.com/api-reference/installer/record-a-product-download.md): Increments the download counter for the latest release of the given product. A given IP is only counted once per product+version within a rolling 24 hour window. After 24h the same IP can increment again. - [Get global NOTAM](https://docs.stopbars.com/api-reference/notam/get-global-notam.md) - [Bulk update stopbar-to-lead-on links for an airport](https://docs.stopbars.com/api-reference/points/bulk-update-stopbar-to-lead-on-links-for-an-airport.md): Apply multiple link and unlink operations in a single request. Supports multiple stopbars per lead-on. - [Get a single point by ID](https://docs.stopbars.com/api-reference/points/get-a-single-point-by-id.md) - [Get all lead-ons linked to a stopbar](https://docs.stopbars.com/api-reference/points/get-all-lead-ons-linked-to-a-stopbar.md) - [Get all stopbar-to-lead-on links for an airport](https://docs.stopbars.com/api-reference/points/get-all-stopbar-to-lead-on-links-for-an-airport.md) - [Get multiple points by IDs](https://docs.stopbars.com/api-reference/points/get-multiple-points-by-ids.md) - [Link a lead-on to a stopbar for auto-toggle](https://docs.stopbars.com/api-reference/points/link-a-lead-on-to-a-stopbar-for-auto-toggle.md) - [List lighting/navigation points for airport](https://docs.stopbars.com/api-reference/points/list-lightingnavigation-points-for-airport.md) - [Unlink a lead-on from a stopbar](https://docs.stopbars.com/api-reference/points/unlink-a-lead-on-from-a-stopbar.md) - [Establish a WebSocket for an airport](https://docs.stopbars.com/api-reference/realtime/establish-a-websocket-for-an-airport.md): Performs a WebSocket upgrade to stream real-time airport state. Requires: - GET with `Upgrade: websocket` - `airport` (ICAO, 4 chars) and an API key via either: - `key` query parameter, or - `Authorization: Bearer ` header The API key is forwarded as a Bearer token to the airport's Dura… - [Get current lighting/network state](https://docs.stopbars.com/api-reference/state/get-current-lightingnetwork-state.md): Returns state for a single airport or all airports. Use `airport=vatsimradar` for VATSIM Radar format (objects include `lights`; `offline` omitted; offline airports excluded). - [Static mapping of state IDs to light colors](https://docs.stopbars.com/api-reference/state/static-mapping-of-state-ids-to-light-colors.md): Returns a lightweight, static list of light state codes and their direction colors. - [Redirect to API documentation](https://docs.stopbars.com/api-reference/system/redirect-to-api-documentation.md): Redirects to the hosted API documentation site. - [System/service health check](https://docs.stopbars.com/api-reference/system/systemservice-health-check.md) - [List public vatSys profile XMLs](https://docs.stopbars.com/api-reference/vatsys/list-public-vatsys-profile-xmls.md) - [Getting Started](https://docs.stopbars.com/contributions/getting-started.md) - [Overview](https://docs.stopbars.com/contributions/index.md) - [Mapping Polygons](https://docs.stopbars.com/contributions/mapping.md) - [Submission](https://docs.stopbars.com/contributions/submission.md) - [Testing Your Contribution](https://docs.stopbars.com/contributions/testing.md) - [Configuration](https://docs.stopbars.com/euroscope/config.md) - [Guide](https://docs.stopbars.com/euroscope/guide.md) - [Overview](https://docs.stopbars.com/euroscope/index.md) - [Installation](https://docs.stopbars.com/euroscope/installation.md) - [Configuration](https://docs.stopbars.com/pilot-client/config.md) - [Overview](https://docs.stopbars.com/pilot-client/index.md) - [Installation](https://docs.stopbars.com/pilot-client/installation.md) - [INTAS](https://docs.stopbars.com/vatsys/INTAS.md) - [Legacy](https://docs.stopbars.com/vatsys/Legacy.md) - [Configuration](https://docs.stopbars.com/vatsys/config.md) - [Overview](https://docs.stopbars.com/vatsys/index.md) - [Installation](https://docs.stopbars.com/vatsys/installation.md) - [Profile Types](https://docs.stopbars.com/vatsys/profiletypes.md) ## OpenAPI Specs - [openapi](https://docs.stopbars.com/api-reference/openapi.json) ## Optional - [Discord](https://stopbars.com/discord) - [GitHub](https://github.com/stopbars) - [Donate](https://opencollective.com/stopbars)