API reference/mGIS Analytics
GETstatefulexact public snapshot

Perform aggregate operation on a single dataset

/aggregate

Perform aggregate operation on a single dataset

Exact public source snapshot

This operation is retained because its version-labelled public specification differs structurally from another generation. It is comparison evidence, not a promise of current support, compatibility, entitlement, or availability.

Call the operation

GEThttps://mgis-api.mapmyindia.com/aggregate?datasetNme=india&columnname=anzee&operation=Median
Base URLhttps://mgis-api.mapmyindia.com/
Authenticationbearer
Journey roleobserve
Content typesNo request body

Parameters

NameLocationTypeDescriptionExample
datasetNmerequired
querystring

The dataset name of whose information has to be fetched.

india
columnnamerequired
querystring

column name on which the aggregate operation has to be performed

anzee
operationrequired
querystring

aggregate operators which are acceptable are Count, Average, Max, Median, Min, StdDev and Sum

Median
singlePass
queryboolean

If TRUE computes all aggregation values in a single pass. Its default value is set true

true
dataStoreName
querystring

Name of datastore where adaptor published.

adaptor

Build your request in eight languages

Change source-backed examples once, validate required inputs, and copy the synchronized cURL, JavaScript, Python, Java, C#, Go, PHP, or Ruby request. Credentials remain environment references, and this page never sends a provider request.

Local request composerCode stays local · fixtures are explicit
GETRequest inputs
5 editable · 0 protected
Generated in eight languages
Environment-backed credentials
GEThttps://mgis-api.mapmyindia.com/aggregate?datasetNme=india&columnname=anzee&operation=Median&singlePass=true&dataStoreName=adaptor
Credential-free sandboxExecute this contract without a provider call
How fixtures work
Generated from your inputs
curl --request GET \
  --url 'https://mgis-api.mapmyindia.com/aggregate?datasetNme=india&columnname=anzee&operation=Median&singlePass=true&dataStoreName=adaptor' \
  --header "Accept: application/json" \
  --header "Authorization: Bearer ${MAPPLS_ACCESS_TOKEN}"

Credential-safe by constructionSet MAPPLS_ACCESS_TOKEN only in your trusted runtime. Code generation stays local. Sandbox execution sends only bounded fixture inputs to this developer platform and never reads a credential or calls Mappls.

Send a production-shaped request

Examples use environment-backed access tokens, explicit timeouts where supported, status checks, and JSON bodies derived from the source schema. Replace sample identifiers and coordinates with values from your application.

GET /aggregate
curl --request GET \
  --url 'https://mgis-api.mapmyindia.com/aggregate?datasetNme=india&columnname=anzee&operation=Median' \
  --header 'Authorization: Bearer YOUR_ACCESS_TOKEN'

Responses

200

OK

206

Impartial Content.

400

Bad Request, User made an error while creating a valid request.

404

No data found in database.

422

Parameter missing

500

Internal server error.

200 response fields

FieldTypeDescriptionExample
code
string

Response Code

200
result
object

No field description in the source contract.

example
result.GroupByAttributes
array<string>

No field description in the source contract.

example
result.AggregationResults
array<array<number>>

No field description in the source contract.

example
result.AggregationFunctions
array<string>

No field description in the source contract.

example
result.AggregationAttribute
string

Attribute on which aggregate function performed

latitude
Response example
{
  "code": "200",
  "result": {
    "GroupByAttributes": [
      "example"
    ],
    "AggregationResults": [
      [
        "21.168174"
      ]
    ],
    "AggregationFunctions": [
      "Median"
    ],
    "AggregationAttribute": "latitude"
  }
}

Operate it safely

observe

This operation observes durable platform state. Preserve resource identifiers and account for pagination, delay, and eventual consistency.

Keep credentials and raw tokens out of source, client bundles, prompts, and logs.Record the operation ID, status, latency, retry count, and source contract version in traces.Classify 4xx responses before retrying; back off and add jitter for retryable 5xx or transport failures.Persist resource identifiers and apply commands exactly once in effect across retries and event replay.

Contract provenance

Source file
mappls-developer-platform/data/corpus/public-api-contracts/mapmyindia-mgis-apis/docs/v1/custom/dqv-apis.yml
SHA-256
ec78e94e77644b4d9ff44c58916c40813cc7f96798318569b33204ebd94fba04
Normalization
Fields are parsed from OpenAPI. Operational guidance and language samples are generated and labeled separately.