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

Supported Formats

json

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

Retrieves a list of images for a specific pressroom

Supported Formats

json

Errors

Code Description
404 Missing

Examples

GET /v1/pressrooms/1003/images.json
200
{
  "data": [
    {
      "title": "Facebook logo",
      "sizes": {
        "medium": {
          "width": "400",
          "height": "300",
          "url": "https://d3gvv7thuwd750.cloudfront.net/1003/images/1-facebook-logo-medium.jpg"
        },
        "original": {
          "width": "1024",
          "height": "768",
          "url": "https://d3gvv7thuwd750.cloudfront.net/1003/images/1-facebook-logo-original.jpg"
        },
        "large": {
          "width": "1000",
          "height": "750",
          "url": "https://d3gvv7thuwd750.cloudfront.net/1003/images/1-facebook-logo-large.jpg"
        },
        "square": {
          "width": "300",
          "height": "300",
          "url": "https://d3gvv7thuwd750.cloudfront.net/1003/images/1-facebook-logo-square.jpg"
        }
      },
      "pressroom_id": 1003,
      "id": 1,
      "permalink": "/images/1",
      "type": "image",
      "content_type": "jpeg",
      "transparent": false
    }
  ],
  "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/images/:id.json

Retrieve a specific image

Supported Formats

json

Errors

Code Description
404 Missing

Examples

GET /v1/pressrooms/1003/images/1.json
200
{
  "data": {
    "title": "Facebook logo",
    "sizes": {
      "medium": {
        "width": "400",
        "height": "300",
        "url": "https://d3gvv7thuwd750.cloudfront.net/1003/images/1-facebook-logo-medium.jpg"
      },
      "original": {
        "width": "1024",
        "height": "768",
        "url": "https://d3gvv7thuwd750.cloudfront.net/1003/images/1-facebook-logo-original.jpg"
      },
      "large": {
        "width": "1000",
        "height": "750",
        "url": "https://d3gvv7thuwd750.cloudfront.net/1003/images/1-facebook-logo-large.jpg"
      },
      "square": {
        "width": "300",
        "height": "300",
        "url": "https://d3gvv7thuwd750.cloudfront.net/1003/images/1-facebook-logo-square.jpg"
      }
    },
    "pressroom_id": 1003,
    "id": 1,
    "permalink": "/images/1",
    "type": "image",
    "content_type": "jpeg",
    "transparent": false
  }
}

Params

Param name Description
pressroom_id
required

Pressroom id or pressroom domain

Validations:

  • Must be a String

id
required

Image id

Validations:

  • Must be a String