Plots


Jump to API response

This endpoint handles manipulation of Plotly plot files.

Reference

Authorization


Any user with or without a Plotly account may view public plots. For private plots, see authentication.

Actions


list

Listing all public plots can be done via a GET request to this endpoint. By default, plots will be listed in order of date created. The order_by query parameter is accepted at this endpoint. Currently, only ordering by views is supported. It is possible to filter the plots by quality with min_quality or max_quality as query parameter.

Example:

// GET https://api.plotly.com/v2/plots/ ---> 200

// GET https://api.plotly.com/v2/plots/?order_by=-views ---> 200

// GET https://api.plotly.com/v2/plots/?min_quality=5 ---> 200

// GET https://api.plotly.com/v2/plots/?max_quality=5 ---> 200

feed

Listing all handpicked feed plots can be done via a GET request to this endpoint. By default, plots will be listed in a random order.

Example:

// GET https://api.plotly.com/v2/plots/feed ---> 200

create

You can create new plot resources here. The only required field is 'figure'. Currently, the figure is restricted to only contain references to grid data. That is, this will fail if raw data arrays are passed in. To create and manipulate underlying grids for plots, see the grids endpoint.

Example:

// This fails because a figure field is required.
// POST https://api.plotly.com/v2/plots ---> 400 Bad Request
{}

// This fails because the figure has raw data
//POST https://api.plotly.com/v2/plots ---> 400 Bad Request
{
    "figure": {"data": [{"y": ['this', 'is', 'raw', 'data']}]}
}

// This succeeds because the figure has src keys, not raw data.
//POST https://api.plotly.com/v2/plots ---> 200 OK
{
    "figure": {"data": [{"ysrc": "sven:88:u8nd62"}]}
}

When creating a grid, you can optionally specify a source_fid to specify where a plot has come from:

  • source_fid: the fid of a plot that was copied (and presumably edited) to produce this one

detail

There is a lot of meta information stored about plot files including filename, title, share_url, and content_url to name a few.

This information can only be reached with a GET to this endpoint.

Example:

// GET https://api.plotly.com/v2/plots/iheartgraphs:90

content

The contents of a plot can be downloaded via the content resource. The plot content contains referenced grid/column data by default. If you wish to return the raw grid/column data, the inline_data=true query must be included in the request url. The Content-Type header will be appropriately set for the response body.

Alternatively, you can set ?map_data=unreadable to append a mapping of sources to data that belongs to grids which are unreadable for the requestor. This is useful when you have read access to another users plot, but that plot contains grid references which you don't have access to.

Examples:

// Returns referenced grid/column data
// GET https://api.plotly.com/v2/plots/iheartgraphs:90/content ---> 200 OK

// Returns full grid/column data
// GET https://api.plotly.com/v2/plots/iheartgraphs:90/content?inline_data=true ---> 200 OK

// Returns full grid/column data when requestor doesn't have permission
// to read the referenced grid.
// GET https://api.plotly.com/v2/plots/iheartgraphs:90/content?map_data=unreadable ---> 200 OK

GET /v2/plots/TeerapatChaiwachirasak:128/?format=api
HTTP 200 OK
Allow: GET, PUT, PATCH, DELETE, HEAD, OPTIONS
Content-Type: application/json
Vary: Accept

{
    "creation_time": "2017-07-07T03:00:58.470533Z",
    "comments": {
        "results": [],
        "count": 0
    },
    "parented": true,
    "embed_url": "https://chart-studio.plotly.com/~TeerapatChaiwachirasak/128.embed",
    "fid": "TeerapatChaiwachirasak:128",
    "filename": "plot from API (63)",
    "filetype": "plot",
    "img_url": "https://storage.googleapis.com/plotly-prod-images/TeerapatChaiwachirasak/128/9_NI1CLSDQ4DZ3W9F4F9QG2D5JLXEGFQ.png",
    "image_urls": {
        "default": "https://storage.googleapis.com/plotly-prod-images/TeerapatChaiwachirasak/128/2_IWF8Q706MO5LUTCTVNYZUN7W8D5Q4Q.png",
        "block-thumb": "https://storage.googleapis.com/plotly-prod-images/TeerapatChaiwachirasak/128/8_ZEWE3SQ9B2MXPHIOXF2627UZMWBDE8.png",
        "list-thumb": "https://storage.googleapis.com/plotly-prod-images/TeerapatChaiwachirasak/128/9_NI1CLSDQ4DZ3W9F4F9QG2D5JLXEGFQ.png"
    },
    "api_urls": {
        "files": "https://api.plotly.com/v2/files/TeerapatChaiwachirasak:128",
        "plots": "https://api.plotly.com/v2/plots/TeerapatChaiwachirasak:128",
        "parent": "https://api.plotly.com/v2/folders/home?user=TeerapatChaiwachirasak"
    },
    "owner": "TeerapatChaiwachirasak",
    "parent": -1,
    "preview": "",
    "referencers": [],
    "references": [],
    "title": "Word Visualization",
    "views": 2,
    "web_url": "https://chart-studio.plotly.com/~TeerapatChaiwachirasak/128/word-visualization/",
    "world_readable": true,
    "date_modified": "2017-07-07T03:00:58.984Z",
    "stars": {
        "results": [],
        "count": 0
    },
    "collaborators": {
        "results": [],
        "count": 0
    },
    "subfolder_count": null,
    "refresh_interval": null,
    "organize_view_url": "https://chart-studio.plotly.com/~TeerapatChaiwachirasak/128/",
    "current_user_permission": "read",
    "is_theme": null,
    "is_template": null,
    "autosize": true,
    "caption": "",
    "figure": {
        "data": [
            {
                "mode": "markers",
                "name": "Words",
                "text": "อินเตอร์เน็ต",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:43475f",
                "ysrc": "TeerapatChaiwachirasak:129:50ee42",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "โปรเน็ต",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:e0cf97",
                "ysrc": "TeerapatChaiwachirasak:129:493c44",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "โปรย้าย",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:2d42e3",
                "ysrc": "TeerapatChaiwachirasak:129:54edcf",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "เอไอเอส",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:59eaef",
                "ysrc": "TeerapatChaiwachirasak:129:a13aab",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "เปลี่ยน",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:80c2b7",
                "ysrc": "TeerapatChaiwachirasak:129:c23cb7",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "เปลียน",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:551105",
                "ysrc": "TeerapatChaiwachirasak:129:064634",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "งง",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:a3fa21",
                "ysrc": "TeerapatChaiwachirasak:129:6332d4",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "แย่",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:dad4f3",
                "ysrc": "TeerapatChaiwachirasak:129:d57cd6",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "เปลื่ยน",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:d34d01",
                "ysrc": "TeerapatChaiwachirasak:129:996a01",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "ดีแทค",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:790e3d",
                "ysrc": "TeerapatChaiwachirasak:129:333327",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "เน๊ต",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:f7ec05",
                "ysrc": "TeerapatChaiwachirasak:129:5102e3",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "ais",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:d8ac43",
                "ysrc": "TeerapatChaiwachirasak:129:0d4d06",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "AIs",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:c880de",
                "ysrc": "TeerapatChaiwachirasak:129:b64654",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "แทค",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:bd6db0",
                "ysrc": "TeerapatChaiwachirasak:129:d91ade",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "บ่อย",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:6e588f",
                "ysrc": "TeerapatChaiwachirasak:129:926e32",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "บริการ",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:46a94b",
                "ysrc": "TeerapatChaiwachirasak:129:8669c3",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "เนต",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:34c43f",
                "ysrc": "TeerapatChaiwachirasak:129:c25b3c",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "DTAC",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:b6d412",
                "ysrc": "TeerapatChaiwachirasak:129:473a2e",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "ขอย้าย",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:5700d7",
                "ysrc": "TeerapatChaiwachirasak:129:84af67",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "เน็ตช้า",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:307b7f",
                "ysrc": "TeerapatChaiwachirasak:129:5064fe",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "dtac",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:18ebf9",
                "ysrc": "TeerapatChaiwachirasak:129:49fca2",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "ย้ายค่าย",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:4c9d3e",
                "ysrc": "TeerapatChaiwachirasak:129:91507c",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "ย้าย",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:d1fe9a",
                "ysrc": "TeerapatChaiwachirasak:129:a0d973",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "เน่า",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:2c3a49",
                "ysrc": "TeerapatChaiwachirasak:129:604e26",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "Dtac",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:fcb288",
                "ysrc": "TeerapatChaiwachirasak:129:54ff8f",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "แต่",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:aef04d",
                "ysrc": "TeerapatChaiwachirasak:129:7160f6",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "ยัง",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:280a05",
                "ysrc": "TeerapatChaiwachirasak:129:16eaf4",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "เน็ต",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:7d0e52",
                "ysrc": "TeerapatChaiwachirasak:129:29c01a",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "จะ",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:c2c149",
                "ysrc": "TeerapatChaiwachirasak:129:4e3015",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "ช้า",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:cdc22c",
                "ysrc": "TeerapatChaiwachirasak:129:a354a7",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "เร็ว",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:af8ed7",
                "ysrc": "TeerapatChaiwachirasak:129:c63e59",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "อยากย้าย",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:c3f157",
                "ysrc": "TeerapatChaiwachirasak:129:8243e7",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "กาก",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:dcaf91",
                "ysrc": "TeerapatChaiwachirasak:129:90864f",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "ห่วย",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:2380ed",
                "ysrc": "TeerapatChaiwachirasak:129:7e4e75",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "AIS",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:401e3a",
                "ysrc": "TeerapatChaiwachirasak:129:0f9b7e",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "เรว",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:e9a6b1",
                "ysrc": "TeerapatChaiwachirasak:129:0e67d3",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "Ais",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:0732bc",
                "ysrc": "TeerapatChaiwachirasak:129:118551",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "อืด",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:b8f727",
                "ysrc": "TeerapatChaiwachirasak:129:1a905c",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "ก็",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:4c9c3b",
                "ysrc": "TeerapatChaiwachirasak:129:079839",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            },
            {
                "mode": "markers",
                "name": "Words",
                "text": "เน็ท",
                "type": "scatter",
                "xsrc": "TeerapatChaiwachirasak:129:4d423f",
                "ysrc": "TeerapatChaiwachirasak:129:90e3d3",
                "marker": {
                    "line": {
                        "width": 1
                    },
                    "size": 14,
                    "color": "blue",
                    "opacity": 0.3
                }
            }
        ],
        "layout": {
            "title": "Word Visualization",
            "xaxis": {
                "title": "X",
                "ticklen": 5,
                "zeroline": false,
                "gridwidth": 2
            },
            "yaxis": {
                "title": "Y",
                "ticklen": 5,
                "gridwidth": 2
            },
            "hovermode": "closest",
            "showlegend": false
        }
    },
    "height": null,
    "width": null,
    "user": {
        "profile_url": "https://chart-studio.plotly.com/~TeerapatChaiwachirasak",
        "avatar_url": "https://storage.googleapis.com/plotly-prod-profiles/11.jpg",
        "background_url": "https://storage.googleapis.com/plotly-prod-profiles/bg-2.jpg",
        "bio": "",
        "nickname": "",
        "website": "",
        "stream_tokens": null,
        "feature_set_id": null,
        "csrf_token": null,
        "date_joined": "2017-06-27 06:32:17",
        "mapbox_access_tokens": null,
        "has_password": null,
        "username": "TeerapatChaiwachirasak",
        "email": null,
        "is_active": null,
        "readonly": null,
        "is_dash_creator": null,
        "dash_created_count": null,
        "is_chart_creator": null,
        "charts_created_count": null
    }
}