dados.gov.pt Pages API

Pages related operations (beta)

GitHub OpenAPI

Operations 4

GET /pages/ List or search all pages #
POST /pages/ Create page #
GET /pages/{page}/ Get page #
PUT /pages/{page}/ Update page #

Work with this as data

Every API here is available over the APIs.io API and to AI agents over MCP.

MCP server

One button, every client — Claude, Cursor, VS Code and the rest.

https://apis.io/mcp

Tools for apis

7 MCP tools reach this
  • find_apisBrowse and filter every API in the catalog.
  • get_api_artifactsOne API's artifacts, grouped by type.
  • get_openapiThe primary OpenAPI for this API.
  • find_similar_apisAPIs that look like this one.
  • apis_io_searchSTART HERE — APIs, providers and tags for one query, each with its total.
  • resolveTurn a domain, URL or GitHub org into the provider it belongs to.
  • find_cohortsEvery scored population of providers in the catalog.
All 92 tools →

Call it yourself

curl for this page
This API
curl "https://apis.io/api/v1/apis/open-government-portugal:open-government-portugal-pages-api"
All apis
curl "https://apis.io/api/v1/apis?limit=25"

Calls without X-API-Key need no key. Calls with it need a paid plan — get a key.

Get an API key

Free tier, no form to fill in. Signing in shares your email address with us — we store it to create your key and to recognise you if you sign in with another provider. See our Privacy Policy and Terms.

A second provider on the same verified email joins the account you already have.

OpenAPI Specification

open-government-portugal-pages-api-openapi.yml Raw ↑
openapi: 3.2.0
info:
  description: uData API
  title: uData Pages API
  version: '1.0'
servers:
- url: /api/1
tags:
- description: Pages related operations (beta)
  name: Pages
paths:
  /pages/:
    get:
      operationId: list_pages
      parameters:
      - description: The page to display
        in: query
        name: page
        schema:
          type: integer
          default: 1
      - description: The page size
        in: query
        name: page_size
        schema:
          type: integer
          default: 20
      - description: The field (and direction) on which sorting apply
        in: query
        name: sort
        schema:
          type: string
          enum:
          - created
          - last_modified
          - -created
          - -last_modified
      - in: query
        name: owner
        schema:
          type: string
      - in: query
        name: organization
        style: form
        explode: true
        schema:
          type: array
          items:
            type: string
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/PagePage'
      summary: List or search all pages
      tags:
      - Pages
    post:
      operationId: create_page
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '201':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page%20%28read%29'
        '400':
          description: Validation error
      tags:
      - Pages
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Page%20%28write%29'
        required: true
      summary: Create page
      x-summary-source: derived
  /pages/{page}/:
    parameters:
    - in: path
      name: page
      required: true
      schema:
        type: string
    get:
      operationId: get_page
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page%20%28read%29'
      tags:
      - Pages
      summary: Get page
      x-summary-source: derived
    put:
      operationId: update_page
      parameters:
      - description: An optional fields mask
        in: header
        name: X-Fields
        schema:
          type: string
          format: mask
      responses:
        '200':
          description: Success
          content:
            application/json:
              schema:
                $ref: '#/components/schemas/Page%20%28read%29'
      tags:
      - Pages
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/Page%20%28write%29'
        required: true
      summary: Update page
      x-summary-source: derived
components:
  schemas:
    PagePermissions:
      properties:
        delete:
          type: boolean
        edit:
          type: boolean
      type: object
    PagePage:
      properties:
        data:
          description: The page data
          items:
            $ref: '#/components/schemas/Page__read'
          type: array
        next_page:
          description: The next page URL if exists
          type: string
        page:
          description: The current page
          minimum: 1
          type: integer
        page_size:
          description: The page size used for pagination
          minimum: 0
          type: integer
        previous_page:
          description: The previous page URL if exists
          type: string
        total:
          description: The total paginated items
          minimum: 0
          type: integer
      required:
      - page
      - page_size
      - total
      type: object
    Badge__read:
      properties:
        kind:
          type: string
      required:
      - kind
      type: object
    BaseReference:
      discriminator:
        propertyName: class
      properties:
        class:
          description: The object class
          type: string
        id:
          description: The object unique identifier
          type: string
      required:
      - class
      - id
      type: object
    OrganizationPermissions:
      properties:
        delete:
          type: boolean
        edit:
          type: boolean
        harvest:
          type: boolean
        members:
          type: boolean
        private:
          type: boolean
      type: object
    UserReference:
      allOf:
      - $ref: '#/components/schemas/BaseReference'
      - properties:
          avatar:
            description: The user avatar URL
            type: string
          avatar_thumbnail:
            description: The user avatar thumbnail URL. This is the square (500x500) and cropped version.
            type: string
          first_name:
            description: The user first name
            readOnly: true
            type: string
          last_name:
            description: The user larst name
            readOnly: true
            type: string
          page:
            description: The user web page URL
            readOnly: true
            type: string
          slug:
            description: The user permalink string
            readOnly: true
            type: string
          uri:
            description: The API URI for this user
            readOnly: true
            type: string
        type: object
    OrganizationReference:
      allOf:
      - $ref: '#/components/schemas/BaseReference'
      - properties:
          acronym:
            description: The organization acronym
            type: string
          badges:
            description: The organization badges
            items:
              $ref: '#/components/schemas/Badge__read'
            readOnly: true
            type: array
          logo:
            description: The organization logo URL
            type: string
          logo_thumbnail:
            description: The organization logo thumbnail URL. This is the square (100x100) and cropped version.
            type: string
          name:
            description: The organization name
            readOnly: true
            type: string
          page:
            description: The organization web page URL
            readOnly: true
            type: string
          permissions:
            allOf:
            - $ref: '#/components/schemas/OrganizationPermissions'
            readOnly: true
          slug:
            description: The organization string used as permalink
            readOnly: true
            type: string
          uri:
            description: The API URI for this organization
            readOnly: true
            type: string
        type: object
    Page__read:
      properties:
        blocs:
          items:
            type: object
          type: array
        created_at:
          format: date-time
          readOnly: true
          type: string
        id:
          readOnly: true
          type: string
        last_modified:
          format: date-time
          readOnly: true
          type: string
        organization:
          allOf:
          - $ref: '#/components/schemas/OrganizationReference'
          description: Only present if owner is not set. Can only be set to an organization of the current authenticated user.
        owner:
          allOf:
          - $ref: '#/components/schemas/UserReference'
          description: Only present if organization is not set. Can only be set to the current authenticated user.
        permissions:
          allOf:
          - $ref: '#/components/schemas/PagePermissions'
          readOnly: true
      required:
      - created_at
      - id
      - last_modified
      type: object
  securitySchemes:
    apikey:
      in: header
      name: X-API-KEY
      type: apiKey