$API_TOKEN=<YOUR_API_TOKEN>
$cat > input.json << 'EOF'
<{
< "contracts": [
< {
< "actorId": "example-actor-id",
< "ownerUsername": "example_owner",
< "slug": "page-metadata-extractor",
< "name": "Page Metadata Extractor",
< "description": "Turn public webpage URLs into structured metadata records.",
< "inputSchema": {
< "type": "object",
< "properties": {
< "urls": {
< "type": "array",
< "items": {
< "type": "string"
< }
< }
< },
< "required": [
< "urls"
< ],
< "additionalProperties": false
< },
< "outputContract": null,
< "datasetSchema": null,
< "provides": [],
< "useCases": [],
< "repairHints": {
< "outputProperties": {
< "url": {
< "type": "string",
< "format": "uri"
< },
< "title": {
< "type": "string"
< },
< "status": {
< "type": "string"
< }
< },
< "requiredOutputs": [
< "url",
< "status"
< ],
< "capabilities": [
< "web-metadata-extraction"
< ],
< "useCases": [
< {
< "slug": "extract-page-metadata",
< "title": "Extract metadata from a webpage",
< "description": "Extract structured metadata from a public webpage.",
< "seoTitle": "Extract Webpage Metadata as JSON",
< "seoDescription": "Turn public webpage URLs into structured metadata records for APIs and AI agents.",
< "searchIntents": [
< "extract webpage metadata"
< ],
< "exampleInput": {
< "urls": [
< "https://example.com"
< ]
< },
< "visibleInputFields": [
< "urls"
< ],
< "datasetView": "overview"
< }
< ]
< }
< }
< ]
<}
<EOF
$curl "https://api.apify.com/v2/actors/skilled_glee~echoempire-machine-foundry-1/runs?token=$API_TOKEN" \
< -X POST \
< -d @input.json \
< -H 'Content-Type: application/json'