> For the complete documentation index, see [llms.txt](https://docs.eseye.com/llms.txt). Markdown versions of documentation pages are available by appending `.md` to page URLs; this page is available as [Markdown](https://docs.eseye.com/api-reference/api-reference-pt-br/api-de-localizacao/sim-location/export-sim-locations-as-a-kmz-file.md).

# Export SIM locations as a KMZ file

Returns a compressed Keyhole Markup Language (KMZ) file detailing the Google Earth location of one or more SIMs. Install Google Earth or Google My Maps to import the file and view the mapped locations.

Limit each request to a maximum of 10 ICCIDs to reduce load on the server.

In Postman, test the request using Send before you use Send and Download.

**Optional fields**

Send `null` without quotes for any object you do not want to set. The value remains as previously set. To set a new value, replace `null` with the value in quotes. To remove an existing value, send an empty string.

```json
{"openapi":"3.1.0","info":{"title":"Location API","version":"1.0"},"tags":[{"name":"SIM location"}],"servers":[{"url":"https://location.eseye.com","description":"Production"}],"security":[{"sessionCookie":[]}],"components":{"securitySchemes":{"sessionCookie":{"type":"apiKey","in":"cookie","name":"PHPSESSID","description":"The session cookie established when the user logs in. Sent as\n`Cookie: PHPSESSID=<CookieNumber>`.\n\nThe Location API username and password are sent separately, in the request\nbody of each call.\n"}},"schemas":{"KmzRequest":{"allOf":[{"$ref":"#/components/schemas/Credentials"},{"type":"object","properties":{"request_id":{"type":"string","description":"A request identifier for tracking responses."},"group":{"type":"string","description":"The group name for the SIMs. If left blank, the request is not limited\nto a group.\n"},"iccid":{"type":"array","description":"The list of one or more SIMs that you want to locate, by Integrated\nCircuit Card Identifier. Search for a maximum of 10 ICCIDs in one\nrequest to reduce the load on the server.\n","maxItems":10,"items":{"type":"string"}}}}]},"Credentials":{"type":"object","properties":{"username":{"type":"string","description":"The Eseye-assigned Location API username."},"password":{"type":"string","format":"password","description":"The Eseye-assigned Location API password."}},"required":["username","password"]},"ErrorResponse":{"type":"object","description":"The body returned when a request fails. See the Location API error codes for the\nmeaning of each `errorCode`.\n","properties":{"status":{"$ref":"#/components/schemas/Status"},"request_id":{"type":"string","description":"The returned request identifier, for tracking responses."}}},"Status":{"type":"object","description":"Details about the request status.","properties":{"status":{"type":"string","description":"`OK` when the request processed successfully, `ERR` when the request failed.\n","enum":["OK","ERR"]},"errorCode":{"type":"string","description":"Empty when the request processed successfully. Otherwise the specific error\ncode.\n"},"errorMessage":{"type":"string","description":"Empty when the request processed successfully. Otherwise an explanation of\nthe error.\n"}}}}},"paths":{"/index/kmz":{"post":{"operationId":"exportKmz","tags":["SIM location"],"summary":"Export SIM locations as a KMZ file","description":"Returns a compressed Keyhole Markup Language (KMZ) file detailing the Google\nEarth location of one or more SIMs. Install Google Earth or Google My Maps to\nimport the file and view the mapped locations.\n\nLimit each request to a maximum of 10 ICCIDs to reduce load on the server.\n\nIn Postman, test the request using Send before you use Send and Download.\n\n**Optional fields**\n\nSend `null` without quotes for any object you do not want to set. The value\nremains as previously set. To set a new value, replace `null` with the value in\nquotes. To remove an existing value, send an empty string.\n","requestBody":{"required":true,"content":{"application/json":{"schema":{"$ref":"#/components/schemas/KmzRequest"}}}},"responses":{"200":{"description":"A compressed KML file containing the mapped SIM locations. Add a `.kml`\nextension to the file name when you save it, then import the file into\nGoogle Earth or Google My Maps to view the SIM locations.\n\nA request that fails returns a JSON body instead of the file. Check\n`status.status` to determine whether the export succeeded.\n","content":{"application/octet-stream":{"schema":{"type":"string","format":"binary"}},"application/json":{"schema":{"$ref":"#/components/schemas/ErrorResponse"}}}}}}}}}
```


---

# 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 by asking a question.

Perform an HTTP GET request on the following URL with the `ask` and `goal` query parameters:

```
GET https://docs.eseye.com/api-reference/api-reference-pt-br/api-de-localizacao/sim-location/export-sim-locations-as-a-kmz-file.md?ask=<question>&goal=<user_goal>
```

`ask` is the immediate question: it should be specific, self-contained, and written in natural language.
`goal` is what the user is ultimately trying to achieve, the reason they need the answer. Sharing it helps GitBook give you a better, more relevant answer. A goal is most helpful when it describes the outcome the user wants rather than restating the question. For example, with `ask=how do I create an API token`, a goal like `automate deployments from our CI pipeline` lets GitBook tailor the answer to that use case.

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.
