Newsroom API Documentation
Everything you need to integrate pr.co into your website or app.

Supported Formats

json

GET /v1/pressrooms/:pressroom_id/videos.json

Retrieves a list of videos for a specific pressroom

Supported Formats

json

Errors

Code Description
404 Missing

Examples

GET /v1/pressrooms/1011/videos.json
200
{
  "data": [
    {
      "title": "Hyves belt me met nieuws",
      "description": "",
      "url": "http://www.youtube.com/watch?v=VAbY4WeTV5o",
      "embed": {
        "width": 567,
        "height": 344,
        "html": "<object width=\"567\" height=\"344\"><param name=\"movie\" value=\"http://www.youtube.com/e/VAbY4WeTV5o\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><param name=\"wmode\" value=\"transparent\"></param><embed wmode=\"transparent\" src=\"http://www.youtube.com/e/VAbY4WeTV5o\" type=\"application/x-shockwave-flash\" width=\"567\" height=\"344\" allowscriptaccess=\"always\" allowfullscreen=\"true\"></embed></object>"
      },
      "thumbnail": {
        "width": 480,
        "height": 360,
        "url": "http://i3.ytimg.com/vi/VAbY4WeTV5o/hqdefault.jpg"
      },
      "id": 1,
      "permalink": "/videos/1",
      "type": "video"
    }
  ],
  "paging": {
    "page": 0,
    "limit": 30,
    "total": 30
  }
}

Params

Param name Description
pressroom_id
required

Pressroom id or pressroom domain

Validations:

  • Must be a String


GET /v1/pressrooms/:pressroom_id/videos/:id.json

Retrieve a specific video for a pressroom

Supported Formats

json

Errors

Code Description
404 Missing

Examples

GET /v1/pressrooms/1011/videos/1.json
200
{
  "data": {
    "title": "Hyves belt me met nieuws",
    "description": "",
    "url": "http://www.youtube.com/watch?v=VAbY4WeTV5o",
    "embed": {
      "width": 567,
      "height": 344,
      "html": "<object width=\"567\" height=\"344\"><param name=\"movie\" value=\"http://www.youtube.com/e/VAbY4WeTV5o\"></param><param name=\"allowFullScreen\" value=\"true\"></param><param name=\"allowscriptaccess\" value=\"always\"></param><param name=\"wmode\" value=\"transparent\"></param><embed wmode=\"transparent\" src=\"http://www.youtube.com/e/VAbY4WeTV5o\" type=\"application/x-shockwave-flash\" width=\"567\" height=\"344\" allowscriptaccess=\"always\" allowfullscreen=\"true\"></embed></object>"
    },
    "thumbnail": {
      "width": 480,
      "height": 360,
      "url": "http://i3.ytimg.com/vi/VAbY4WeTV5o/hqdefault.jpg"
    },
    "id": 1,
    "permalink": "/videos/1",
    "type": "video"
  }
}

Params

Param name Description
pressroom_id
required

Pressroom id or pressroom domain

Validations:

  • Must be a String

id
required

Video id

Validations:

  • Must be a String