API Documentation
The Infogram API platform connects your website or application with the infographics.

GET infographics/:id

Retrieves infographic or the information of it the in the given format. In place of the :id you should put the the ID of an infographic.

Resource URL

https://infogr.am/service/v1/infographics/:id

Parameters

Name Required Description
format no String, default json. Format in which the requested infographic should be retrieved. Choose from json, pdf, png, or html.

Return value

In case of JSON request format, returns the JSON string with the following field structure:

Field name Type Field description
id String Infographic ID
title String Infographic title
theme_id Integer Theme identifier of the infographic
published Boolean Indicates whether infographic is published or not
thumbnail_url String URL to the infographic thumbnail image
date_modified Date Latest modification date of the infographic
url String If published is equal to true, URL to the infographic that can be viewed in a web browser
embed_responsive String If published is equal to true, HTML markup for embedding the infographic - “responsive”

When JSON format is requested, response contains header Content-Type: application/json.

In case of PDF and PNG formats, returns byte stream and the response contains header Content-Type: application/pdf or Content-Type: image/png accordingly.

Example request

curl -XGET -D- "http://infogr.am/service/v1/infographics/e04ceaf9-5a3f-4c5b-9d24-455e89d97e89?api_key=nMECGhmHe9&api_sig=KcWNcfbp%2BPKk%3D&embedType=&format=json"

Example response

{
    "id": "e04ceaf9-5a3f-4c5b-9d24-455e89d97e89",
    "title": "testing testing 123",
    "theme_id": 20,
    "published": true,
    "thumbnail_url": "https://s3-eu-west-1.amazonaws.com/infogram-thumbs-200/e04ceaf9-5a3f-4c5b-9d24-455e89d97e89.jpg",
    "date_modified": "2014-11-24T13:05:41.000Z",
    "url": "https://infogr.am/e04ceaf9-5a3f-4c5b-9d24-455e89d97e89",
    "embed_responsive": "<script id=\"infogram_0_e04ceaf9-5a3f-4c5b-9d24-455e89d97e89\" src=\"//e.infogr.am/js/embed.js?92b\" type=\"text/javascript\"></script><div style=\"width:100%;border-top:1px solid #acacac;padding-top:3px;font-family:Arial;font-size:10px;text-align:center;\"><a target=\"_blank\" href=\"https://infogr.am/e04ceaf9-5a3f-4c5b-9d24-455e89d97e89\" style=\"color:#acacac;text-decoration:none;\">testing testing 123</a> |<a style=\"color:#acacac;text-decoration:none;\" href=\"https://infogr.am\" target=\"_blank\">Create infographics</a></div>"
}