organizations

List organization datasets for the org page

Changed on

Deleted and archived datasets are never exposed here unless the caller explicitly asks for them via the back-office status filters (?deleted=true / ?archived=true, which require authentication), so the public datasets tab never shows them regardless of who is viewing. Members may still see the org's private drafts.

get/organizations/{org}/datasets/

Request

  • Base URL
    https://dados.gov.pt/api/1
  • URL
    https://dados.gov.pt/api/1/organizations/{org}/datasets/
  • Auth
    none declared

Query parameters

qstring

The search query

sort'title' | 'created' | 'last_update' | 'reuses' | 'followers' | 'views' | '-title' | '-created' | '-last_update' | '-reuses' | '-followers' | '-views'

The field (and direction) on which sorting apply

pageinteger

The page to display

page_sizeinteger

The page size

tagstring[]
licensestring[]
featuredboolean

If set to true, it will filter on featured datasets only. If set to false, it will exclude featured datasets.

geozonestring[]
granularitystring[]
temporal_coveragestring
organizationstring[]
badgestring[]
organization_badge'public-service' | 'certified' | 'association' | 'company' | 'local-authority'
ownerstring
followed_bystring

(beta, subject to change/be removed)

formatstring[]
format_familystring[]

Filter on a resource format family. Repeatable; repeats are OR'ed.

schemastring
schema_versionstring
access_type'open' | 'open_with_account' | 'restricted'
topicstring
frequencystring[]
creditstring
dataservicestring
reusestring
archivedboolean

If set to true, it will filter on archived datasets only. If set to false, it will exclude archived datasets. User must be authenticated and results are limited to user visibility

deletedboolean

If set to true, it will filter on deleted datasets only. If set to false, it will exclude deleted datasets. User must be authenticated and results are limited to user visibility

privateboolean

If set to true, it will filter on private datasets only. If set to false, it will exclude private datasets. User must be authenticated and results are limited to user visibility

modified_sincestring

Filter datasets modified since this ISO date (e.g. 2024-01-01)

Headers

X-Fieldsstring mask

An optional fields mask

Response

Success

next_pagestring

The next page URL if exists

pageinteger required

The current page

page_sizeinteger required

The page size used for pagination

previous_pagestring

The previous page URL if exists

totalinteger required

The total paginated items

Example response

{
  "data": [
    {
      "access_audiences": [
        {
          "condition": "yes",
          "role": "local_authority_and_administration"
        }
      ],
      "access_type": "open",
      "access_type_reason_category": "confidentiality_of_proceedings_of_public_authorities",
      "frequency": "continuous",
      "spatial": {
        "geom": {
          "type": "Point"
        }
      }
    }
  ]
}

Changes

    • info

      added the new optional query request parameter format_family

    • info

      added the new optional query request parameter access_type

    • info

      added the new optional query request parameter badge

    • info

      added the new optional query request parameter frequency

    • info

      added the new optional query request parameter modified_since