# Context.dev — Capture Screenshot

Get Context.Dev Capture Screenshot data via REST or OpenAny MCP—with pay-per-use pricing and no subscription. Powered by Context-dev, pass parameters such as formats, url, and retrieve structured data including business payload, returned requested field, returned success value, reported status, and returned age ms field to search interfaces and source review, and integration reference.

Documentation: https://openany.si/market/apis/context-dev/context-dev-capture-screenshot/?offering=d3c3bd3f-5436-46a3-98ca-9b3975e1bfbb
API ID: d3c3bd3f-5436-46a3-98ca-9b3975e1bfbb
Provider: context-dev
Contract revision: 4
Method: POST
Endpoint: https://api.openany.si/v1/agent-apis/context-dev/v1/web/screenshot
Page update time: 2026-12-03T02:49:45.669Z
Access: OpenAny REST
OpenAny MCP: availability is not supplied by this REST contract. Check get_api on the configured OpenAny MCP server before execution.
Request content type: application/json
Execution mode: sync
Authentication: Authorization: Bearer $OPENANY_API_KEY

## Billing
Price: $0.002 / billing credit
A billing credit measures provider usage. Credits consumed depend on the operation and request options; one credit is not necessarily one call.
API-key calls use your shared balance. Review the published billing rules before making a paid request.
Price source: OpenAny public API contract. Price update time: not supplied.
Contract update time: 2026-12-03T02:49:45.156Z. This is not a price-change timestamp.
```json
{
  "currency": "USD",
  "mode": "usage",
  "priceMicroUsd": "2000",
  "rounding": "ceil",
  "unit": "credit",
  "unitQuantity": "1"
}
```

## Request parameters
```json
{
  "$schema": "https://json-schema.org/draft/2020-12/schema",
  "title": "Context.dev — Capture Screenshot request inputs",
  "$comment": "Declared input types grouped by HTTP location. Path, query and header values describe decoded inputs and are serialized as text on the wire; body is the payload. This is not an exhaustive provider contract or a schema for the raw HTTP request.",
  "type": "object",
  "properties": {
    "path": {
      "type": "object",
      "properties": {}
    },
    "query": {
      "type": "object",
      "properties": {}
    },
    "headers": {
      "type": "object",
      "properties": {}
    },
    "body": {
      "additionalProperties": false,
      "allOf": [
        {
          "if": {
            "required": [
              "markdownParams"
            ]
          },
          "then": {
            "properties": {
              "formats": {
                "properties": {
                  "markdown": {
                    "const": true
                  }
                },
                "required": [
                  "markdown"
                ]
              }
            }
          }
        },
        {
          "if": {
            "required": [
              "screenshotParams"
            ]
          },
          "then": {
            "properties": {
              "formats": {
                "properties": {
                  "screenshot": {
                    "const": true
                  }
                },
                "required": [
                  "screenshot"
                ]
              }
            }
          }
        },
        {
          "if": {
            "required": [
              "imageParams"
            ]
          },
          "then": {
            "properties": {
              "formats": {
                "properties": {
                  "images": {
                    "const": true
                  }
                },
                "required": [
                  "images"
                ]
              }
            }
          }
        },
        {
          "if": {
            "required": [
              "parseParams"
            ]
          },
          "then": {
            "properties": {
              "formats": {
                "properties": {
                  "parse": {
                    "const": true
                  }
                },
                "required": [
                  "parse"
                ]
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "formats": {
                "properties": {
                  "parse": {
                    "const": true
                  }
                },
                "required": [
                  "parse"
                ]
              }
            }
          },
          "then": {
            "required": [
              "parseParams"
            ]
          }
        },
        {
          "if": {
            "required": [
              "highlightsParams"
            ]
          },
          "then": {
            "properties": {
              "formats": {
                "properties": {
                  "highlights": {
                    "const": true
                  }
                },
                "required": [
                  "highlights"
                ]
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "formats": {
                "properties": {
                  "highlights": {
                    "const": true
                  }
                },
                "required": [
                  "highlights"
                ]
              }
            }
          },
          "then": {
            "required": [
              "highlightsParams"
            ]
          }
        },
        {
          "if": {
            "required": [
              "jsonParams"
            ]
          },
          "then": {
            "properties": {
              "formats": {
                "properties": {
                  "json": {
                    "const": true
                  }
                },
                "required": [
                  "json"
                ]
              }
            }
          }
        },
        {
          "if": {
            "properties": {
              "formats": {
                "properties": {
                  "json": {
                    "const": true
                  }
                },
                "required": [
                  "json"
                ]
              }
            }
          },
          "then": {
            "required": [
              "jsonParams"
            ]
          }
        },
        {
          "if": {
            "required": [
              "productParams"
            ]
          },
          "then": {
            "properties": {
              "formats": {
                "properties": {
                  "product": {
                    "const": true
                  }
                },
                "required": [
                  "product"
                ]
              }
            }
          }
        }
      ],
      "properties": {
        "formats": {
          "const": {
            "screenshot": true
          },
          "type": "object"
        },
        "maxAgeMs": {
          "default": 259200000,
          "maximum": 31536000000,
          "minimum": 0,
          "type": "integer"
        },
        "screenshotParams": {
          "additionalProperties": false,
          "properties": {
            "area": {
              "default": "viewport",
              "oneOf": [
                {
                  "enum": [
                    "viewport",
                    "fullPage"
                  ],
                  "type": "string"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "selector": {
                      "maxLength": 2048,
                      "pattern": "\\S",
                      "type": "string"
                    }
                  },
                  "required": [
                    "selector"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "height": {
                      "maximum": 100000,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "width": {
                      "maximum": 7680,
                      "minimum": 1,
                      "type": "integer"
                    },
                    "x": {
                      "maximum": 100000,
                      "minimum": 0,
                      "type": "integer"
                    },
                    "y": {
                      "maximum": 100000,
                      "minimum": 0,
                      "type": "integer"
                    }
                  },
                  "required": [
                    "x",
                    "y",
                    "width",
                    "height"
                  ],
                  "type": "object"
                }
              ]
            },
            "format": {
              "default": "png",
              "enum": [
                "png",
                "jpeg",
                "webp"
              ],
              "type": "string"
            }
          },
          "type": "object"
        },
        "sharedParams": {
          "additionalProperties": false,
          "properties": {
            "actions": {
              "items": {
                "discriminator": {
                  "propertyName": "type"
                },
                "oneOf": [
                  {
                    "additionalProperties": false,
                    "properties": {
                      "action": {
                        "maxLength": 500,
                        "minLength": 1,
                        "type": "string"
                      },
                      "type": {
                        "enum": [
                          "perform"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "action"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "amount": {
                        "default": "viewport",
                        "oneOf": [
                          {
                            "maximum": 100000,
                            "minimum": 1,
                            "type": "integer"
                          },
                          {
                            "enum": [
                              "viewport",
                              "max"
                            ],
                            "type": "string"
                          }
                        ]
                      },
                      "direction": {
                        "default": "down",
                        "enum": [
                          "down",
                          "up",
                          "left",
                          "right"
                        ],
                        "type": "string"
                      },
                      "maxScrolls": {
                        "default": 1,
                        "maximum": 50,
                        "minimum": 1,
                        "type": "integer"
                      },
                      "selector": {
                        "maxLength": 2000,
                        "pattern": "\\S",
                        "type": "string"
                      },
                      "type": {
                        "enum": [
                          "scroll"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "milliseconds": {
                        "maximum": 30000,
                        "minimum": 0,
                        "type": "integer"
                      },
                      "type": {
                        "enum": [
                          "wait"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "milliseconds"
                    ],
                    "type": "object"
                  },
                  {
                    "additionalProperties": false,
                    "properties": {
                      "selector": {
                        "maxLength": 2048,
                        "pattern": "\\S",
                        "type": "string"
                      },
                      "type": {
                        "enum": [
                          "waitFor"
                        ],
                        "type": "string"
                      }
                    },
                    "required": [
                      "type",
                      "selector"
                    ],
                    "type": "object"
                  }
                ]
              },
              "maxItems": 5,
              "minItems": 1,
              "type": "array"
            },
            "country": {
              "pattern": "^[A-Za-z]{2}$",
              "type": "string"
            },
            "dismissCookies": {
              "default": true,
              "type": "boolean"
            },
            "dismissPopups": {
              "default": false,
              "type": "boolean"
            },
            "excludeSelectors": {
              "items": {
                "maxLength": 2048,
                "pattern": "\\S",
                "type": "string"
              },
              "maxItems": 50,
              "minItems": 1,
              "type": "array",
              "uniqueItems": true
            },
            "headers": {
              "additionalProperties": {
                "maxLength": 8192,
                "pattern": "^[^\\r\\n]*$",
                "type": "string"
              },
              "propertyNames": {
                "not": {
                  "pattern": "^(?:[Hh][Oo][Ss][Tt]|[Cc][Oo][Nn][Tt][Ee][Nn][Tt]-[Ll][Ee][Nn][Gg][Tt][Hh]|[Cc][Oo][Nn][Nn][Ee][Cc][Tt][Ii][Oo][Nn]|[Kk][Ee][Ee][Pp]-[Aa][Ll][Ii][Vv][Ee]|[Pp][Rr][Oo][Xx][Yy]-[Aa][Uu][Tt][Hh][Ee][Nn][Tt][Ii][Cc][Aa][Tt][Ee]|[Pp][Rr][Oo][Xx][Yy]-[Aa][Uu][Tt][Hh][Oo][Rr][Ii][Zz][Aa][Tt][Ii][Oo][Nn]|[Pp][Rr][Oo][Xx][Yy]-[Cc][Oo][Nn][Nn][Ee][Cc][Tt][Ii][Oo][Nn]|[Tt][Ee]|[Tt][Rr][Aa][Ii][Ll][Ee][Rr]|[Tt][Rr][Aa][Nn][Ss][Ff][Ee][Rr]-[Ee][Nn][Cc][Oo][Dd][Ii][Nn][Gg]|[Uu][Pp][Gg][Rr][Aa][Dd][Ee]|[Ee][Xx][Pp][Ee][Cc][Tt])$"
                },
                "pattern": "^[!#$%&'*+.^_`|~0-9A-Za-z-]+$"
              },
              "type": "object"
            },
            "includeFrames": {
              "default": false,
              "type": "boolean"
            },
            "includeSelectors": {
              "items": {
                "maxLength": 2048,
                "pattern": "\\S",
                "type": "string"
              },
              "maxItems": 50,
              "minItems": 1,
              "type": "array",
              "uniqueItems": true
            },
            "mainContentOnly": {
              "default": false,
              "type": "boolean"
            },
            "parsers": {
              "additionalProperties": false,
              "properties": {
                "pdf": {
                  "additionalProperties": false,
                  "properties": {
                    "endPage": {
                      "minimum": 1,
                      "type": "integer"
                    },
                    "ocr": {
                      "default": "off",
                      "enum": [
                        "off",
                        "auto"
                      ],
                      "type": "string"
                    },
                    "startPage": {
                      "minimum": 1,
                      "type": "integer"
                    }
                  },
                  "type": "object"
                }
              },
              "type": "object"
            },
            "profile": {
              "discriminator": {
                "propertyName": "type"
              },
              "oneOf": [
                {
                  "additionalProperties": false,
                  "properties": {
                    "profileId": {
                      "pattern": "^prof_[a-f0-9]{32}$",
                      "type": "string"
                    },
                    "type": {
                      "const": "existing",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "profileId"
                  ],
                  "type": "object"
                },
                {
                  "additionalProperties": false,
                  "properties": {
                    "identifier": {
                      "maxLength": 1024,
                      "minLength": 1,
                      "type": "string"
                    },
                    "password": {
                      "maxLength": 4096,
                      "minLength": 1,
                      "type": "string",
                      "writeOnly": true
                    },
                    "type": {
                      "const": "new",
                      "type": "string"
                    }
                  },
                  "required": [
                    "type",
                    "identifier",
                    "password"
                  ],
                  "type": "object"
                }
              ]
            },
            "settleAnimations": {
              "type": "boolean"
            },
            "theme": {
              "enum": [
                "light",
                "dark"
              ],
              "type": "string"
            },
            "viewport": {
              "additionalProperties": false,
              "properties": {
                "height": {
                  "default": 900,
                  "maximum": 4320,
                  "minimum": 240,
                  "type": "integer"
                },
                "width": {
                  "default": 1440,
                  "maximum": 7680,
                  "minimum": 240,
                  "type": "integer"
                }
              },
              "type": "object"
            },
            "waitFor": {
              "oneOf": [
                {
                  "maximum": 30000,
                  "minimum": 0,
                  "type": "integer"
                },
                {
                  "maxLength": 2048,
                  "pattern": "\\S",
                  "type": "string"
                }
              ]
            }
          },
          "type": "object"
        },
        "tags": {
          "items": {
            "maxLength": 50,
            "minLength": 1,
            "type": "string"
          },
          "maxItems": 20,
          "type": "array"
        },
        "timeoutOpts": {
          "additionalProperties": false,
          "default": {
            "behavior": "fail",
            "milliseconds": 90000
          },
          "properties": {
            "behavior": {
              "default": "fail",
              "enum": [
                "fail",
                "return-partial"
              ],
              "type": "string"
            },
            "milliseconds": {
              "maximum": 300000,
              "minimum": 1,
              "type": "integer"
            }
          },
          "required": [
            "milliseconds"
          ],
          "type": "object"
        },
        "url": {
          "format": "uri",
          "pattern": "^https?://",
          "type": "string"
        },
        "zdr": {
          "default": "disabled",
          "enum": [
            "enabled",
            "disabled"
          ],
          "type": "string"
        }
      },
      "required": [
        "url",
        "formats"
      ],
      "type": "object",
      "description": "Capture a rendered screenshot of a website."
    }
  },
  "required": [
    "path",
    "query",
    "headers",
    "body"
  ]
}
```

## Response fields
Source: Inferred from examples; not an exhaustive provider schema.
```json
{
  "type": "object",
  "properties": {
    "bytes": {
      "type": "object",
      "properties": {
        "data": {
          "type": "null"
        },
        "requested": {
          "type": "boolean"
        },
        "success": {
          "type": "null"
        }
      }
    },
    "cache_metadata": {
      "type": "object",
      "properties": {
        "age_ms": {
          "type": "integer"
        },
        "status": {
          "type": "string"
        }
      }
    },
    "highlights": {
      "type": "object",
      "properties": {
        "data": {
          "type": "null"
        },
        "requested": {
          "type": "boolean"
        },
        "success": {
          "type": "null"
        }
      }
    },
    "html": {
      "type": "object",
      "properties": {
        "data": {
          "type": "null"
        },
        "requested": {
          "type": "boolean"
        },
        "success": {
          "type": "null"
        }
      }
    },
    "images": {
      "type": "object",
      "properties": {
        "data": {
          "type": "null"
        },
        "requested": {
          "type": "boolean"
        },
        "success": {
          "type": "null"
        }
      }
    },
    "json": {
      "type": "object",
      "properties": {
        "data": {
          "type": "null"
        },
        "requested": {
          "type": "boolean"
        },
        "success": {
          "type": "null"
        }
      }
    },
    "key_metadata": {
      "type": "object",
      "properties": {
        "credits_consumed": {
          "type": "integer"
        }
      }
    },
    "markdown": {
      "type": "object",
      "properties": {
        "data": {
          "type": "null"
        },
        "requested": {
          "type": "boolean"
        },
        "success": {
          "type": "null"
        }
      }
    },
    "metadata": {
      "type": "object",
      "properties": {
        "additionalMeta": {
          "type": "object",
          "properties": {
            "content-type": {
              "type": "string"
            },
            "created": {
              "type": "string"
            },
            "viewport": {
              "type": "string"
            }
          }
        },
        "description": {
          "type": "string"
        },
        "favicon": {
          "type": "string"
        },
        "headings": {
          "type": "array",
          "items": {
            "type": "object",
            "properties": {
              "level": {
                "type": "integer"
              },
              "text": {
                "type": "string"
              }
            }
          }
        },
        "language": {
          "type": "string"
        },
        "robots": {
          "type": "string"
        },
        "title": {
          "type": "string"
        }
      }
    },
    "parsed": {
      "type": "object",
      "properties": {
        "data": {
          "type": "null"
        },
        "requested": {
          "type": "boolean"
        },
        "success": {
          "type": "null"
        },
        "type": {
          "type": "string"
        }
      }
    },
    "product": {
      "type": "object",
      "properties": {
        "data": {
          "type": "null"
        },
        "requested": {
          "type": "boolean"
        },
        "success": {
          "type": "null"
        }
      }
    },
    "profile": {
      "type": "null"
    },
    "request_id": {
      "type": "string"
    },
    "screenshot": {
      "type": "object",
      "properties": {
        "data": {
          "type": "string"
        },
        "requested": {
          "type": "boolean"
        },
        "success": {
          "type": "boolean"
        }
      }
    },
    "url": {
      "type": "string"
    }
  }
}
```

## Request example
Scenario: Documentation example (source abbreviated)
```bash
curl \
  'https://api.openany.si/v1/agent-apis/context-dev/v1/web/screenshot' \
  -X POST \
  -H "Authorization: Bearer $OPENANY_API_KEY" \
  -H 'Content-Type: application/json' \
  --data-raw '{
  "formats": {
    "screenshot": true
  },
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}'
```

## Response example
Published documentation example. Verify the actual response after an approved call.
Sample response · Documented HTTP 200
```json
{
  "bytes": {
    "data": null,
    "requested": false,
    "success": null
  },
  "cache_metadata": {
    "age_ms": 12691808,
    "status": "hit"
  },
  "highlights": {
    "data": null,
    "requested": false,
    "success": null
  },
  "html": {
    "data": null,
    "requested": false,
    "success": null
  },
  "images": {
    "data": null,
    "requested": false,
    "success": null
  },
  "json": {
    "data": null,
    "requested": false,
    "success": null
  },
  "key_metadata": {
    "credits_consumed": 1
  },
  "markdown": {
    "data": null,
    "requested": false,
    "success": null
  },
  "metadata": {
    "additionalMeta": {
      "content-type": "text/html; charset=UTF-8",
      "created": "24th Jun 2016 09:29",
      "viewport": "width=device-width"
    },
    "description": "It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love th It's hard to imagine a world without A Light in the Attic. This now-classic collection of poetry and drawings from Shel Silverstein celebrates its 20th anniversary with this special edition. Silverstein's humorous and creative verse can amuse the dowdiest of readers. Lemon-faced adults and fidgety kids sit still and read these rhythmic words and laugh and smile and love that Silverstein. Need proof of his genius? RockabyeRockabye baby, in the treetopDon't you know a treetopIs no safe place to rock?And who put you up there,And your cradle, too?Baby, I think someone down here'sGot it in for you. Shel, you never sounded so good. ...more",
    "favicon": "https://books.toscrape.com/static/oscar/favicon.ico",
    "headings": [
      {
        "level": 1,
        "text": "A Light in the Attic"
      },
      {
        "level": 2,
        "text": "Product Description"
      },
      {
        "level": 2,
        "text": "Product Information"
      }
    ],
    "language": "en-us",
    "robots": "NOARCHIVE,NOCACHE",
    "title": "A Light in the Attic | Books to Scrape - Sandbox"
  },
  "parsed": {
    "data": null,
    "requested": false,
    "success": null,
    "type": "custom"
  },
  "product": {
    "data": null,
    "requested": false,
    "success": null
  },
  "profile": null,
  "request_id": "e5e351f0-79ab-41b8-9c72-497be44e3426",
  "screenshot": {
    "data": "<OMITTED: full PNG data URI retained in saved runtime evidence>",
    "requested": true,
    "success": true
  },
  "url": "https://books.toscrape.com/catalogue/a-light-in-the-attic_1000/index.html"
}
```

## Error handling
400: Check the request fields.
401 / 403: Verify credentials and access permissions.
402: Inspect payment requirements and balance.
429: Respect returned retry guidance.
5xx: Inspect the error and usage record before retrying a paid operation.

## Available implementations
- context-dev: https://openany.si/market/apis/context-dev/context-dev-capture-screenshot/?offering=d3c3bd3f-5436-46a3-98ca-9b3975e1bfbb

Integration guide: https://openany.si/docs/
Agent setup: https://openany.si/SKILL.md
