-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathplatform@v2.1.yaml
More file actions
1794 lines (1765 loc) · 58.8 KB
/
platform@v2.1.yaml
File metadata and controls
1794 lines (1765 loc) · 58.8 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
308
309
310
311
312
313
314
315
316
317
318
319
320
321
322
323
324
325
326
327
328
329
330
331
332
333
334
335
336
337
338
339
340
341
342
343
344
345
346
347
348
349
350
351
352
353
354
355
356
357
358
359
360
361
362
363
364
365
366
367
368
369
370
371
372
373
374
375
376
377
378
379
380
381
382
383
384
385
386
387
388
389
390
391
392
393
394
395
396
397
398
399
400
401
402
403
404
405
406
407
408
409
410
411
412
413
414
415
416
417
418
419
420
421
422
423
424
425
426
427
428
429
430
431
432
433
434
435
436
437
438
439
440
441
442
443
444
445
446
447
448
449
450
451
452
453
454
455
456
457
458
459
460
461
462
463
464
465
466
467
468
469
470
471
472
473
474
475
476
477
478
479
480
481
482
483
484
485
486
487
488
489
490
491
492
493
494
495
496
497
498
499
500
501
502
503
504
505
506
507
508
509
510
511
512
513
514
515
516
517
518
519
520
521
522
523
524
525
526
527
528
529
530
531
532
533
534
535
536
537
538
539
540
541
542
543
544
545
546
547
548
549
550
551
552
553
554
555
556
557
558
559
560
561
562
563
564
565
566
567
568
569
570
571
572
573
574
575
576
577
578
579
580
581
582
583
584
585
586
587
588
589
590
591
592
593
594
595
596
597
598
599
600
601
602
603
604
605
606
607
608
609
610
611
612
613
614
615
616
617
618
619
620
621
622
623
624
625
626
627
628
629
630
631
632
633
634
635
636
637
638
639
640
641
642
643
644
645
646
647
648
649
650
651
652
653
654
655
656
657
658
659
660
661
662
663
664
665
666
667
668
669
670
671
672
673
674
675
676
677
678
679
680
681
682
683
684
685
686
687
688
689
690
691
692
693
694
695
696
697
698
699
700
701
702
703
704
705
706
707
708
709
710
711
712
713
714
715
716
717
718
719
720
721
722
723
724
725
726
727
728
729
730
731
732
733
734
735
736
737
738
739
740
741
742
743
744
745
746
747
748
749
750
751
752
753
754
755
756
757
758
759
760
761
762
763
764
765
766
767
768
769
770
771
772
773
774
775
776
777
778
779
780
781
782
783
784
785
786
787
788
789
790
791
792
793
794
795
796
797
798
799
800
801
802
803
804
805
806
807
808
809
810
811
812
813
814
815
816
817
818
819
820
821
822
823
824
825
826
827
828
829
830
831
832
833
834
835
836
837
838
839
840
841
842
843
844
845
846
847
848
849
850
851
852
853
854
855
856
857
858
859
860
861
862
863
864
865
866
867
868
869
870
871
872
873
874
875
876
877
878
879
880
881
882
883
884
885
886
887
888
889
890
891
892
893
894
895
896
897
898
899
900
901
902
903
904
905
906
907
908
909
910
911
912
913
914
915
916
917
918
919
920
921
922
923
924
925
926
927
928
929
930
931
932
933
934
935
936
937
938
939
940
941
942
943
944
945
946
947
948
949
950
951
952
953
954
955
956
957
958
959
960
961
962
963
964
965
966
967
968
969
970
971
972
973
974
975
976
977
978
979
980
981
982
983
984
985
986
987
988
989
990
991
992
993
994
995
996
997
998
999
1000
openapi: 3.0.3
info:
title: Explore API
version: v2.1
description: |-
The Opendatasoft Explore API v2 is organized around REST. It provides access to all the data available through the platform in a coherent, hierarchical way.
- Only the HTTP `GET` method is supported.
- All API endpoints return JSON.
- Endpoints are organized in a hierarchical way describing the relative relationship between objects.
- All responses contain a list of links allowing easy and relevant navigation through the API endpoints.
- All endpoints use the [Opendatasoft Query Language (ODSQL)](https://help.opendatasoft.com/apis/ods-explore-v2/#section/Opendatasoft-Query-Language-(ODSQL)). This means that, most of the time, parameters work the same way for all endpoints.
- While the `records` endpoint is subject to a [limited number of returned records](https://help.opendatasoft.com/apis/ods-explore-v2/#tag/Dataset/operation/getRecords), the `exports` endpoint has no limitations.
contact:
email: support@opendatasoft.com
license:
name: Copyright Opendatasoft
url: https://legal.opendatasoft.com/en/terms-of-use.html
servers:
- url: https://documentation-resources.opendatasoft.com/api/explore/v2.1
security:
- apikey: []
tags:
- name: Catalog
description: API to enumerate datasets
- name: Dataset
description: API to work on records
paths:
/catalog/datasets:
get:
summary: Query catalog datasets
operationId: getDatasets
tags:
- Catalog
description: Retrieve available datasets.
parameters:
- $ref: '#/components/parameters/select'
- $ref: '#/components/parameters/where'
- $ref: '#/components/parameters/order_by'
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/offset'
- $ref: '#/components/parameters/refine'
- $ref: '#/components/parameters/exclude'
- $ref: '#/components/parameters/lang'
- $ref: '#/components/parameters/timezone'
- $ref: '#/components/parameters/group_by'
- $ref: '#/components/parameters/include_links'
- $ref: '#/components/parameters/include_app_metas'
responses:
'200':
description: A list of available datasets
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/datasets'
examples:
datasets:
$ref: '#/components/examples/datasets-v2.1'
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/exports:
get:
summary: List export formats
operationId: listExportFormats
tags:
- Catalog
description: List available export formats
responses:
'200':
description: A list of available export formats
content:
application/json; charset=utf-8:
schema:
type: object
properties:
links:
type: array
items:
$ref: '#/components/schemas/links'
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/exports/{format}:
get:
summary: Export a catalog
operationId: exportDatasets
tags:
- Catalog
description: Export a catalog in the desired format.
parameters:
- $ref: '#/components/parameters/format-catalog'
- $ref: '#/components/parameters/select'
- $ref: '#/components/parameters/where'
- $ref: '#/components/parameters/order_by'
- $ref: '#/components/parameters/group_by'
- $ref: '#/components/parameters/limit_export'
- $ref: '#/components/parameters/offset'
- $ref: '#/components/parameters/refine'
- $ref: '#/components/parameters/exclude'
- $ref: '#/components/parameters/lang'
- $ref: '#/components/parameters/timezone'
responses:
'200':
description: Return a file
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/exports/csv:
get:
summary: Export a catalog in CSV
operationId: exportCatalogCSV
tags:
- Catalog
description: Export a catalog in CSV (Comma Separated Values). Specific parameters are described here
parameters:
- name: delimiter
in: query
required: false
schema:
type: string
enum:
- ;
- ','
- "\t"
- '|'
default: ;
description: Sets the field delimiter of the CSV export
- name: list_separator
in: query
required: false
schema:
type: string
default: ','
description: Sets the separator character used for multivalued strings
- name: quote_all
in: query
required: false
schema:
type: boolean
default: false
description: Set it to true to force quoting all strings, i.e. surrounding all strings with quote characters
- name: with_bom
in: query
required: false
schema:
type: boolean
default: true
description: |-
Set it to true to force the first characters of the CSV file to be a Unicode Byte Order Mask (0xFEFF). It usually makes Excel correctly open the output CSV file without warning.
**Warning:** the default value of this parameter is `false` in v2.0 and `true` starting with v2.1
responses:
'200':
description: Return a file
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/exports/dcat{dcat_ap_format}:
get:
summary: Export a catalog in RDF/XML (DCAT)
operationId: exportCatalogDCAT
tags:
- Catalog
description: Export a catalog in RDF/XML described with DCAT (Data Catalog Vocabulary). Specific parameters are described here
parameters:
- $ref: '#/components/parameters/dcat_format'
- name: include_exports
in: query
required: false
schema:
$ref: '#/components/schemas/enum-format-datasets'
description: Sets the datasets exports exposed in the DCAT export. By default, all exports are exposed.
examples:
legacy:
summary: Only expose csv, json and geojson datasets exports
value: csv,json,geojson
- name: use_labels_in_exports
in: query
required: false
schema:
type: boolean
default: true
description: If set to `true`, this parameter will make distributions output the label of each field rather than its name. This parameter only applies on distributions that contain a list of the fields in their output (e.g., CSV, XLSX).
responses:
'200':
description: Return a file
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/facets:
get:
summary: List facet values
operationId: getDatasetsFacets
tags:
- Catalog
description: |-
Enumerate facet values for datasets and returns a list of values for each facet.
Can be used to implement guided navigation in large result sets.
parameters:
- $ref: '#/components/parameters/facet'
- $ref: '#/components/parameters/refine'
- $ref: '#/components/parameters/exclude'
- $ref: '#/components/parameters/where'
- $ref: '#/components/parameters/timezone'
responses:
'200':
description: An enumeration of facets
content:
application/json; charset=utf-8:
schema:
type: object
properties:
links:
type: array
items:
$ref: '#/components/schemas/links'
facets:
type: array
items:
$ref: '#/components/schemas/facet_enumeration'
examples:
catalog_facets:
$ref: '#/components/examples/catalog_facets'
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/datasets/{dataset_id}/records:
get:
summary: Query dataset records
operationId: getRecords
tags:
- Dataset
description: Perform a query on dataset records.
parameters:
- $ref: '#/components/parameters/dataset_id'
- $ref: '#/components/parameters/select'
- $ref: '#/components/parameters/where'
- $ref: '#/components/parameters/group_by'
- $ref: '#/components/parameters/order_by'
- $ref: '#/components/parameters/limit'
- $ref: '#/components/parameters/offset'
- $ref: '#/components/parameters/refine'
- $ref: '#/components/parameters/exclude'
- $ref: '#/components/parameters/lang'
- $ref: '#/components/parameters/timezone'
- $ref: '#/components/parameters/include_links'
- $ref: '#/components/parameters/include_app_metas'
responses:
'200':
description: Records
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/records'
examples:
records:
$ref: '#/components/examples/records-v2.1'
group_by_country:
$ref: '#/components/examples/group_by_country-v2.1'
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/datasets/{dataset_id}/exports:
get:
summary: List export formats
operationId: listDatasetExportFormats
tags:
- Dataset
description: List available export formats
parameters:
- $ref: '#/components/parameters/dataset_id'
responses:
'200':
description: A list of available export formats
content:
application/json; charset=utf-8:
schema:
type: object
properties:
links:
type: array
items:
$ref: '#/components/schemas/links'
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/datasets/{dataset_id}/exports/{format}:
get:
summary: Export a dataset
operationId: exportRecords
tags:
- Dataset
description: |-
Export a dataset in the desired format.
**Note:** The `group_by` parameter is only available on exports starting with the v2.1
parameters:
- $ref: '#/components/parameters/dataset_id'
- $ref: '#/components/parameters/format-datasets'
- $ref: '#/components/parameters/select'
- $ref: '#/components/parameters/where'
- $ref: '#/components/parameters/order_by'
- $ref: '#/components/parameters/group_by'
- $ref: '#/components/parameters/limit_export'
- $ref: '#/components/parameters/refine'
- $ref: '#/components/parameters/exclude'
- $ref: '#/components/parameters/lang'
- $ref: '#/components/parameters/timezone'
- $ref: '#/components/parameters/use_labels'
- $ref: '#/components/parameters/compressed'
- $ref: '#/components/parameters/epsg'
responses:
'200':
description: Return a file
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/datasets/{dataset_id}/exports/csv:
get:
summary: Export a dataset in CSV
operationId: exportRecordsCSV
tags:
- Dataset
description: Export a dataset in CSV (Comma Separated Values). Specific parameters are described here
parameters:
- $ref: '#/components/parameters/dataset_id'
- name: delimiter
in: query
required: false
schema:
type: string
enum:
- ;
- ','
- "\t"
- '|'
default: ;
description: Sets the field delimiter of the CSV export
- name: list_separator
in: query
required: false
schema:
type: string
default: ','
description: Sets the separator character used for multivalued strings
- name: quote_all
in: query
required: false
schema:
type: boolean
default: false
description: Set it to true to force quoting all strings, i.e. surrounding all strings with quote characters
- name: with_bom
in: query
required: false
schema:
type: boolean
default: true
description: |-
Set it to true to force the first characters of the CSV file to be a Unicode Byte Order Mask (0xFEFF). It usually makes Excel correctly open the output CSV file without warning.
**Warning:** the default value of this parameter is `false` in v2.0 and `true` starting with v2.1
responses:
'200':
description: Return a file
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/datasets/{dataset_id}/exports/parquet:
get:
summary: Export a dataset in Parquet
operationId: exportRecordsParquet
tags:
- Dataset
description: Export a dataset in Parquet. Specific parameters are described here
parameters:
- $ref: '#/components/parameters/dataset_id'
- name: parquet_compression
in: query
required: false
schema:
type: string
enum:
- snappy
- zstd
default: snappy
description: Sets the compression parameter for the Parquet export file
responses:
'200':
description: Return a file
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/datasets/{dataset_id}/exports/gpx:
get:
summary: Export a dataset in GPX
operationId: exportRecordsGPX
tags:
- Dataset
description: Export a dataset in GPX. Specific parameters are described here
parameters:
- $ref: '#/components/parameters/dataset_id'
- name: name_field
in: query
required: false
schema:
type: string
description: Sets the field that is used as the 'name' attribute in the GPX output
- name: description_field_list
in: query
required: false
schema:
type: string
description: Sets the fields to use in the 'description' attribute of the GPX output
- name: use_extension
in: query
required: false
schema:
type: boolean
default: true
description: |-
Set it to true to use the `<extension>` tag for attributes (as GDAL does). Set it to false to use the `<desc>` tag for attributes.
**Warning:** the default value of this parameter is `false` in v2.0 and `true` starting with v2.1
responses:
'200':
description: Return a file
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/datasets/{dataset_id}:
get:
summary: Show dataset information
operationId: getDataset
tags:
- Catalog
description: |-
Returns a list of available endpoints for the specified dataset, with metadata and endpoints.
The response includes the following links:
* the attachments endpoint
* the files endpoint
* the records endpoint
* the catalog endpoint.
parameters:
- $ref: '#/components/parameters/dataset_id'
- $ref: '#/components/parameters/select'
- $ref: '#/components/parameters/lang'
- $ref: '#/components/parameters/timezone'
- $ref: '#/components/parameters/include_links'
- $ref: '#/components/parameters/include_app_metas'
responses:
'200':
description: The dataset
content:
application/json; charset=utf-8json:
schema:
$ref: '#/components/schemas/dataset'
examples:
dataset:
$ref: '#/components/examples/dataset-v2.1'
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/datasets/{dataset_id}/facets:
get:
summary: List dataset facets
operationId: getRecordsFacets
tags:
- Dataset
description: |
Enumerates facet values for records and returns a list of values for each facet.
Can be used to implement guided navigation in large result sets.
parameters:
- $ref: '#/components/parameters/dataset_id'
- $ref: '#/components/parameters/where'
- $ref: '#/components/parameters/refine'
- $ref: '#/components/parameters/exclude'
- $ref: '#/components/parameters/facet'
- $ref: '#/components/parameters/lang'
- $ref: '#/components/parameters/timezone'
responses:
'200':
description: Facets enumeration
content:
application/json; charset=utf-8:
schema:
type: object
properties:
links:
type: array
items:
$ref: '#/components/schemas/links'
facets:
type: array
items:
$ref: '#/components/schemas/facet_enumeration'
examples:
facets:
$ref: '#/components/examples/facets'
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/datasets/{dataset_id}/attachments:
get:
summary: List dataset attachments
operationId: getDatasetAttachments
tags:
- Dataset
description: |
Returns a list of all available attachments for a dataset.
parameters:
- $ref: '#/components/parameters/dataset_id'
responses:
'200':
description: List of all available attachments
content:
application/json; charset=utf-8:
schema:
type: object
properties:
links:
type: array
items:
$ref: '#/components/schemas/links'
attachments:
type: array
items:
$ref: '#/components/schemas/attachment'
examples:
attachments:
$ref: '#/components/examples/attachments'
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
/catalog/datasets/{dataset_id}/records/{record_id}:
get:
summary: Read a dataset record
operationId: getRecord
tags:
- Dataset
description: |
Reads a single dataset record based on its identifier.
parameters:
- $ref: '#/components/parameters/dataset_id'
- $ref: '#/components/parameters/record_id'
- $ref: '#/components/parameters/select'
- $ref: '#/components/parameters/lang'
- $ref: '#/components/parameters/timezone'
responses:
'200':
description: A single record
content:
application/json; charset=utf-8:
schema:
$ref: '#/components/schemas/record'
examples:
record:
$ref: '#/components/examples/record-v2.1'
'400':
$ref: '#/components/responses/bad_request'
'401':
description: Unauthorized
'429':
$ref: '#/components/responses/quota'
'500':
description: Internal Server Error
components:
securitySchemes:
apikey:
type: apiKey
description: API key to make authenticated requests.
name: apikey
in: query
parameters:
select:
name: select
in: query
description: |-
Examples:
- `select=size` - Example of select, which only return the "size" field.
- `select=size * 2 as bigger_size` - Example of a complex expression with a label, which returns a new field named "bigger_size" and containing the double of size field value.
- `select=dataset_id, fields` - Example of a select in catalog ODSQL query to only retrieve dataset_id and schema of datasets.
A select expression can be used to add, remove or change the fields to return.
An expression can be:
- a wildcard ('*'): all fields are returned.
- A field name: only the specified field is returned.
- An include/exclude function: All fields matching the include or exclude expression are included or excluded. This expression can contain wildcard.
- A complex expression. The result of the expression is returned. A label can be set for this expression, and in that case, the field will be named after this label.
schema:
type: string
where:
name: where
in: query
description: |-
A `where` filter is a text expression performing a simple full-text search that can also include logical operations
(NOT, AND, OR...) and lots of other functions to perform complex and precise search operations.
For more information, see [Opendatasoft Query Language (ODSQL)](<https://help.opendatasoft.com/apis/ods-explore-v2/#section/Opendatasoft-Query-Language-(ODSQL)/Where-clause>) reference documentation.
schema:
type: string
order_by:
name: order_by
in: query
description: |-
Example: `order_by=sum(age) desc, name asc`
A comma-separated list of field names or aggregations to sort on, followed by an order (`asc` or `desc`).
Results are sorted in ascending order by default. To sort results in descending order, use the `desc` keyword.
style: form
explode: false
schema:
type: string
limit:
name: limit
in: query
description: |
Number of items to return.
To use with the `offset` parameter to implement pagination.
The maximum possible value depends on whether the query contains a `group_by` clause or not.
For a query **without** a `group_by`:
- the maximum value for `limit` is 100,
- `offset+limit` should be less than 10000
For a query **with** a `group_by`:
- the maximum value for `limit` is 20000,
- `offset+limit` should be less than 20000
**Note:** If you need more results, please use the /exports endpoint.
schema:
maximum: 100
minimum: -1
type: integer
default: 10
offset:
name: offset
in: query
description: |
Index of the first item to return (starting at 0).
To use with the `limit` parameter to implement pagination.
**Note:** the maximum value depends on the type of query, see the note on `limit` for the details
schema:
minimum: 0
type: integer
default: 0
refine:
name: refine
in: query
description: |-
Example: `refine=modified:2020` - Return only the value `2020` from the `modified` facet.
A facet filter used to limit the result set.
Using this parameter, you can refine your query to display only the selected facet value in the response.
Refinement uses the following syntax: `refine=<FACETNAME>:<FACETVALUE>`
For date, and other hierarchical facets, when refining on one value, all second-level values related to that entry will appear in facets enumeration. For example, after refining on the year 2019, the related second-level month will appear. And when refining on August 2019, the third-level day will appear.
**`refine` must not be confused with a `where` filter. Refining with a facet is equivalent to selecting an entry in the left navigation panel.**
style: form
explode: true
schema:
type: string
exclude:
name: exclude
in: query
description: |-
Examples:
- `exclude=city:Paris` - Exclude the value `Paris` from the `city` facet. Facets enumeration will display `Paris` as `excluded` without any count information.
- `exclude=modified:2019/12` - Exclude the value `2019/12` from the `modified` facet. Facets enumeration will display `2020` as `excluded` without any count information.
A facet filter used to exclude a facet value from the result set.
Using this parameter, you can filter your query to exclude the selected facet value in the response.
`exclude` uses the following syntax: `exclude=<FACETNAME>:<FACETVALUE>`
**`exclude` must not be confused with a `where` filter. Excluding a facet value is equivalent to removing an entry in the left navigation panel.**
style: form
explode: true
schema:
type: string
lang:
name: lang
in: query
description: |-
A language value.
If specified, the `lang` value override the default language, which is "fr".
The language is used to format string, for example in the `date_format` function.
schema:
type: string
enum:
- en
- fr
- nl
- pt
- it
- ar
- de
- es
- ca
- eu
- sv
style: form
timezone:
name: timezone
in: query
description: |-
Set the timezone for datetime fields.
Timezone IDs are defined by the [Unicode CLDR project](https://github.com/unicode-org/cldr). The list of timezone IDs is available in [timezone.xml](https://github.com/unicode-org/cldr/blob/master/common/bcp47/timezone.xml).
schema:
type: string
default: UTC
examples:
UTC:
summary: UTC timezone
value: UTC
Europe/Paris:
summary: Paris timezone
value: Europe/Paris
US/Eastern:
summary: Eastern timezone
value: US/Eastern
Europe/London:
summary: London timezone
value: Europe/London
Europe/Berlin:
summary: Berlin timezone
value: Europe/Berlin
group_by:
name: group_by
in: query
description: |-
Example: `group_by=city_field as city`
A group by expression defines a grouping function for an aggregation.
It can be:
- a field name: group result by each value of this field
- a range function: group result by range
- a date function: group result by date
It is possible to specify a custom name with the 'as name' notation.
style: form
explode: false
schema:
type: string
include_links:
name: include_links
in: query
description: |
If set to `true`, this parameter will add HATEOAS links in the response.
schema:
type: boolean
default: false
include_app_metas:
name: include_app_metas
in: query
description: |
If set to `true`, this parameter will add application metadata to the response.
schema:
type: boolean
default: false
format-catalog:
name: format
in: path
required: true
schema:
type: string
enum:
- csv
- data.json
- dcat
- dcat_ap_ch
- dcat_ap_de
- dcat_ap_se
- dcat_ap_sp
- dcat_ap_it
- dcat_ap_vl
- dcat_ap_benap
- dublin_core
- json
- rdf
- rss
- ttl
- xlsx
description: |-
Format specifier for the catalog export.
`dcat_ap_*` formats are only available upon activation.
See [here](#tag/Catalog/operation/listExportFormats) to get the list of available export formats
style: simple
limit_export:
name: limit
in: query
description: |
Number of items to return in export.
Use -1 (default) to retrieve all records
schema:
minimum: -1
type: integer
default: -1
dcat_format:
name: dcat_ap_format
in: path
required: true
schema:
type: string
enum:
- _ap_ch
- _ap_de
- _ap_se
- _ap_sp
- _ap_it
- _ap_vl
- _ap_benap
description: |-
DCAT format specifier for the catalog export.
`dcat_ap_*` formats are only available upon activation.
style: simple
facet:
name: facet
in: query
description: |
A facet is a field used for simple filtering (through the `refine` and `exclude` parameters) or exploration (with the `/facets` endpoint).
It can also be a function such as `facet=facet(name="field_name")` which is identical to `facet=field_name`. But this `facet()` function
can also take some optional arguments such as `disjunctive`, `hierarchical`, `separator`, `sort` and `limit`.
* `disjunctive`: a boolean `true/false`, whether multiple values can be selected for the facet
* `hierarchical`: a boolean `true/false` if the field is hierarchical. The separator must be given as the argument.
For instance, you can do `facet=facet(name="filepath", hierarchical=true, separator="/")` to retrieve facets related to this field which might look like `"/home/user/file.txt"`
* `separator`: a string, e.g. `/`, `-`, `;`
* `sort`: a string which describes how to sort the facets. Possible arguments are `count` and `-count` for all field types, `alphanum` and `-alphanum` for `date`, `datetime` and `text`, `num` and `-num` for `decimal` and `int`
* `limit`: an integer to limit the number of results
style: form
explode: true
schema:
type: string
dataset_id:
name: dataset_id
in: path
description: |-
The identifier of the dataset to be queried.
You can find it in the "Information" tab of the dataset page or in the dataset URL, right after `/datasets/`.
required: true
schema:
type: string
format-datasets:
name: format
in: path
required: true
schema:
$ref: '#/components/schemas/enum-format-datasets'
style: simple
use_labels:
name: use_labels
in: query
description: |
If set to `true`, this parameter will make exports output the label of each field rather than its name.
This parameter only makes sense for formats that contain a list of the fields in their output.
schema:
type: boolean
default: false
compressed:
name: compressed
in: query
description: |
If set to `true`, this parameter can compress the output file of a specific export format with GZIP, e.g. `.csv.gzip`.
required: false
schema:
type: boolean
default: false
epsg:
name: epsg
in: query
description: |
This parameter sets the EPSG code to project shapes into for formats that support geometric features.
schema:
type: integer
default: 4326
record_id:
name: record_id
in: path
required: true
schema:
type: string
description: Record identifier
schemas:
links:
type: object
properties:
href:
type: string
format: uri
rel:
type: string
enum:
- self
- first
- last
- next
- dataset
- catalog
dataset:
type: object
additionalProperties: {}
properties:
_links:
type: array
items:
$ref: '#/components/schemas/links'
dataset_id:
type: string
dataset_uid:
type: string
readOnly: true
attachments:
type: array