Skip to content

Make api/v2/data/challenge public #2571

@tordans

Description

@tordans

I am looking for a way to display the detailed progress of a challenge on my campaign website.

The best API I found to get the data that is used on the challenge dashboard in MR is https://maproulette.org/api/v2/data/challenge/ID

Question: Is this true or is there a different API that I can use?

There are two issues with the /data/challenge/ID API:


Issue 1: It is private and requires an apiKey to work.
This is very unfortunate, because it means I have to build workarounds to get this data to show it in a public environment. We cannot just use our MapRoulette API Key in a public JavaScript app, though, so we need to build a proxy on some server – which is what I did for now.

The API, however, does not expose any personal or sensitive data, its just numbers.

==> Please make this API endpoint public (no apiKey required)

This is the data that the Endpoint returns:

z.array(
  z.strictObject({
    id: z.number(),
    name: z.string(),
    actions: z.object({
      total: z.number(),
      available: z.number(),
      fixed: z.number(),
      falsePositive: z.number(),
      skipped: z.number(),
      deleted: z.number(),
      alreadyFixed: z.number(),
      tooHard: z.number(),
      answered: z.number(),
      validated: z.number(),
      disabled: z.number(),
      avgTimeSpent: z.number(),
      tasksWithTime: z.number(),
    }),
  }),
)

Issue 2: Missing documentation
I was not able to find any documentation of this API endpoint at https://maproulette.org/docs/swagger-ui/index.html#/Follow

==> Please add it to the docs, so its easier to find

Metadata

Metadata

Assignees

No one assigned

    Labels

    enhancementNew feature or request

    Type

    No type

    Projects

    Status

    Planned

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions