posts
get/posts/

Request

  • Base URL
    https://dados.gov.pt/api/1
  • URL
    https://dados.gov.pt/api/1/posts/
  • Auth
    none declared

Query parameters

pageinteger

The page to display

page_sizeinteger

The page size

sort'created_at' | 'modified' | 'created' | 'last_modified' | 'name' | 'headline' | 'published' | '-created_at' | '-modified' | '-created' | '-last_modified' | '-name' | '-headline' | '-published'

The field (and direction) on which sorting apply

qstring
kind'news' | 'page'
with_draftsboolean

True also returns the unpublished posts (only for super-admins)

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

Changes