harvest

Preview a single harvest source given an ID or a slug

Changed on
get/harvest/source/{source}/preview/

Request

  • Base URL
    https://dados.gov.pt/api/1
  • URL
    https://dados.gov.pt/api/1/harvest/source/{source}/preview/
  • Auth
    none declared

Headers

X-Fieldsstring mask

An optional fields mask

Response

Success

createdstring date-time required

The job creation date

endedstring date-time

The job end date

idstring required

The job execution ID

sourcestring required

The source owning the job

startedstring date-time

The job start date

status'pending' | 'initializing' | 'initialized' | 'processing' | 'done' | 'done-errors' | 'failed' required

The job status

Example response

{
  "items": [
    {
      "dataservice": {
        "title": "My awesome API"
      },
      "dataset": {
        "access_audiences": [
          {
            "condition": "yes",
            "role": "local_authority_and_administration"
          }
        ],
        "community_resources": [
          {
            "checksum": {
              "type": "sha1"
            },
            "filetype": "file",
            "type": "main"
          }
        ],
        "contact_points": [
          {
            "role": "contact"
          }
        ],
        "frequency": "continuous",
        "resources": [
          {
            "checksum": {
              "type": "sha1"
            },
            "filetype": "file",
            "type": "main"
          }
        ],
        "spatial": {
          "geom": {
            "type": "Point"
          }
        }
      },
      "status": "pending"
    }
  ],
  "status": "pending"
}

Changes