> For the complete documentation index, see [llms.txt](https://space-axolotls.gitbook.io/space-axolotls-docs/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://space-axolotls.gitbook.io/space-axolotls-docs/geojson.md).

# GeoJSON

This is not a dynamic API, but rather a static endpoint that serves a GeoJSON file directly from a GitHub repository. It is part of the datasets project by DataHub.io, which provides clean, ready-to-u

**Overview**

* Provider: DataHub.io (via the `datasets` repository on GitHub).
* Purpose: To provide the polygonal geometries (borders) of all countries in the world in a single file.
* Authentication: None required. It is a public file.
* Data Format: GeoJSON.

**Endpoint**

The endpoint is simply the direct URL to the file. It does not accept parameters.

```
https://raw.githubusercontent.com/datasets/geo-countries/master/data/countries.geojson
```

**Response Structure (GeoJSON)**

The response is a GeoJSON object of type `FeatureCollection`. Each `feature` in the collection represents a country.

* `geometry`: An object of type `Polygon` or `MultiPolygon` that contains the coordinate arrays defining the country's borders.
* `properties`: An object with the country's metadata.

Example of a country `feature` (Mexico):

JSON

```
{
  "type": "Feature",
  "properties": {
    "ADMIN": "Mexico",
    "ISO_A3": "MEX"
  },
  "geometry": {
    "type": "MultiPolygon",
    "coordinates": [
      [
        [
          [-108.232537, 23.011831],
          [-108.455623, 22.864332],
          // ... many more coordinates defining the border ...
          [-86.840332, 21.173841],
          [-86.828859, 21.176465]
        ]
      ],
      // ... other polygons for islands, etc. ...
    ]
  }
}
```


---

# Agent Instructions
This documentation is published with GitBook. GitBook is the documentation platform designed so that both humans and AI agents can read, navigate, and reason over technical content effectively. Learn more at gitbook.com.

## Querying This Documentation
If you need additional information that is not directly available in this page, you can query the documentation dynamically by asking a question.

Perform an HTTP GET request on the current page URL with the `ask` query parameter, and the optional `goal` query parameter:

```
GET https://space-axolotls.gitbook.io/space-axolotls-docs/geojson.md?ask=<question>&goal=<endgoal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is optional and describes the broader end goal you are ultimately trying to accomplish on behalf of the user. GitBook uses it to tailor the answer towards what is most useful for that goal.

The response will contain a direct answer to the question and relevant excerpts and sources from the documentation.

Use this mechanism when the answer is not explicitly present in the current page, you need clarification or additional context, or you want to retrieve related documentation sections.
