Report-Specific API Parameters

Report-specific API parameters let you filter the data you retrieve from a COMET Data report. They are the same filters you see on the report form in COMET Data, such as Registration start date from. You add them to the API URL to retrieve only the records you need, for example, a single person or a single date range.

The filters are applied in the same way as when you run the report on screen. API calls return only the data you request and run as quickly as the report does in COMET Data.

The easiest way to add filters to an API URL is to go to My Reports in COMET Data and click your saved report. The report form opens with the saved filters already filled in. Change or add the filters you need, then click Copy API Code. The copied URL contains your API key and every filter you changed compared to the saved report.

Filtering by Column Key is not supported. URLs that filter by Column Keys from the response (for example personID=12345 or registrationStatus=*confirmed), wildcards (*), or label values (for example label_gender_F) still run, but these filters are ignored, so the call returns data without them. If you have existing integrations that use them, update your URLs to use report parameters as described in this article.

Authorizations

Role

Can do

Cannot do

User with COMET Data API access

Generate and copy API codes for reports in My Reports. Use Copy API Code on a saved report to get a URL with changed filters.

–

User without COMET Data API access

–

See or use Copy API Code.

Anyone using the API URL (for example, an external developer)

Add filters to the URL, or change the values of filters saved in the report.

Use filters the report does not have, because they are ignored. Get data outside the access of the user who created the API code, because the call is refused.

Before you start, make sure that:

  1. You have been granted access to the COMET Data API.

  2. The report is saved in My Reports. To learn how to save a report and generate its API code, see API Access to COMET Data.

The data an API URL can return depends on the active profile of the user who created the API code. We recommend creating API codes with a user who has only one profile.

If you delete a report from My Reports, every API URL for that report stops working.

Filtering

An API call can use filters from two places:

  • Filters saved in the report. These are the filters that were set when the report was saved in My Reports. They apply to every call made with that API code.

  • Filters added to the URL. You can add these to any call to further narrow the results.

The two sets are combined. If the same filter is both saved in the report and added to the URL, the value in the URL is used. For example, say the saved report has Registration start date from set to 1 January 2026. If the URL contains RegistrationStartDateFrom=2026-06-01, the call uses 1 June 2026 instead.

You can only use the filters that are on that report's form. To filter by an ID, the report must have a matching filter. For example, if the report has a Person ID filter, PersonId=12345 returns only that person's records.

The system checks every filter, both saved and added, against the access of the user who created the API code. If any filter asks for data outside that access, the call is refused. You get nothing back, not even partial data. This protects data that the user who shared the API code is not allowed to see. See Access Rules for COMET Data.

A filter the report does not recognize is ignored without any error. This happens when the report has no such filter, or when the name is misspelled or wrongly capitalized. The call then returns more data than you expected. Check the names carefully, as described in Parameter names and value formats below.

Step-by-step guide

How to copy an API URL with filters

This is for users with access to the COMET Data API.

  1. In COMET Data, go to My Reports.

  2. Click the saved report.
    The report form opens with the saved filters already filled in.

  3. Change the values of existing filters or add new ones.

  4. Click Copy API Code.
    The URL is copied to your clipboard. It contains your API key and every filter you changed compared to the saved report.

  5. Paste the URL wherever you need it, for example, in an email to an external developer.

Calls made with this URL use the filters saved in the report plus the ones you changed. The saved report itself stays as it was.

If you don't see Copy API Code, you have not been granted COMET Data API access.

slika-20261028-093500.png

This button is different from Copy API Code in the My Reports options menu. See Two "Copy API Code" options compared below.

Add or change filters in the API URL

This is for anyone using the API URL, for example, an external developer.

  1. Start from the API URL for the report, for example:
    https://<comet-url>/data-backend/api/public/areports/run/0/25/?API_KEY=XXXX

  2. For each filter, add & followed by the filter name, = and the value, for example:
    …?API_KEY=XXXX&PersonId=12345

  3. To change a value saved in the report, add the same filter with the new value. The URL value is used instead of the saved one.

  4. Run the call.
    The response contains only the matching records and lists all filters that were applied. See What you get back below.

For the correct filter names and how to write each value type, see Parameter names and value formats below. If the results are not what you expected, see Troubleshooting.

Parameter names and value formats

Filter names

  • Each filter name matches the filter's label on the report form, written as one word with each word capitalized. For example, Registration start date from becomes RegistrationStartDateFrom.

  • Names always start with a capital letter.

  • Names are case-sensitive. registrationStartDateFrom is not recognized and is ignored.

The only exception is changedAfter, which keeps its name and format: a date and time in UTC, written as YYYYMMDDHHmmSS. See Generic API Parameters.

Value formats

Type of value

How to write it

Example

One ID (for example, a person, club, organization or association)

The ID number

PersonId=12345

Several IDs

IDs separated by commas, no spaces

CompetitionType=1,2,3

Date

yyyy-MM-dd

RegistrationStartDateFrom=2026-01-01

Date and time

yyyy-MM-dd HH:mm:ss.SSS

2026-01-01 08:30:00.000

Yes/no

true or false

true

Date range

Use the …From and …To filters together

RegistrationStartDateFrom=2026-01-01&RegistrationStartDateTo=2026-06-30

Filters that offer a fixed list of options on the form also take IDs. For example, Organization type uses 10 for Association, 60 for Club, 70 for Stadium, and 210 for Intermediary agency.

To find the IDs for a filter: open the saved report in My Reports, select the values you need on the report form, and click Copy API Code. The copied URL shows the filter names and IDs for your selection.

Wildcards (*) and label values (such as label_gender_F) are not supported. Filters that use them are ignored.

"Copy API Code" options compared

COMET Data has two options with almost the same name. They copy different URLs:

Where

What it copies

Use it when

My Reports → options menu → Copy API code

The API URL for the report exactly as saved

You want the report's data with its saved filters only

Saved report form → Copy API Code

The API URL plus every filter you changed on the form

You want the same report with different or extra filters, without changing the saved report

Both URLs use the same API code. Deleting the report from My Reports stops both of them from working.

What you get back

Applied filters

In addition to the report data, the response lists every filter applied to the call. This includes the filters saved in the report and the ones added to the URL. Each entry shows the filter name, for example, PersonId or RegistrationStartDateFrom, and the value used. Depending on the filter, the value is:

  • a single ID or a list of IDs

  • true or false

  • a date

  • text

Filters that were ignored do not appear in this list.

Dates in this list use the time zone and date format of your organization's COMET system. This also applies to changedAfter, even though you send it in UTC.

For the rest of the response, such as columns, results, and paging, see API Access to COMET Data.

When access is refused

If any filter, saved or added, requests data beyond the access of the user who created the API code, the call returns 403 Forbidden with a message explaining why. No data is returned.

Key rules and limitations

Rule

What happens if it isn't followed

Use only filters that are on the report's form.

The filter is ignored, and the call returns more data than expected.

Write filter names exactly as described, starting with a capital letter.

The filter is ignored. Names are case-sensitive.

Don't use Column Keys, wildcards (*), or label values.

The filter is ignored. These are not supported.

Write values in the correct format (IDs, yyyy-MM-dd, true/false, and so on).

The call returns a bad request error, for example, for PersonId=abc.

Filters may only request data within the access scope of the user who created the API code.

The call returns a 403 Forbidden response with no data.

Keep the report in My Reports for as long as the API URLs are in use.

Deleting the report stops every API URL from working.

Filters in the URL never change the saved report. They only apply to that call.

The usual API limits still apply: at most 10 calls per second and 1000 results per page. See API Access to COMET Data.