{
  "openapi": "3.0.1",
  "info": {
    "title": "Journalist Requests Scraper - #journorequest Media Requests",
    "description": "Open journalist requests for expert sources from Bluesky and Mastodon, plus optional UK and US calls for evidence, with deadlines, sections and your topics matched.",
    "version": "0.1",
    "x-build-id": "iYjxxTVqR6cbmjd7S"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/dami_studio~journalist-requests-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-dami_studio-journalist-requests-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for its completion, and returns Actor's dataset items in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    },
    "/acts/dami_studio~journalist-requests-scraper/runs": {
      "post": {
        "operationId": "runs-sync-dami_studio-journalist-requests-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor and returns information about the initiated run in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK",
            "content": {
              "application/json": {
                "schema": {
                  "$ref": "#/components/schemas/runsResponseSchema"
                }
              }
            }
          }
        }
      }
    },
    "/acts/dami_studio~journalist-requests-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-dami_studio-journalist-requests-scraper",
        "x-openai-isConsequential": false,
        "summary": "Executes an Actor, waits for completion, and returns the OUTPUT from Key-value store in response.",
        "tags": [
          "Run Actor"
        ],
        "requestBody": {
          "required": true,
          "content": {
            "application/json": {
              "schema": {
                "$ref": "#/components/schemas/inputSchema"
              }
            }
          }
        },
        "parameters": [
          {
            "name": "token",
            "in": "query",
            "required": true,
            "schema": {
              "type": "string"
            },
            "description": "Enter your Apify token here"
          }
        ],
        "responses": {
          "200": {
            "description": "OK"
          }
        }
      }
    }
  },
  "components": {
    "schemas": {
      "inputSchema": {
        "type": "object",
        "properties": {
          "keywords": {
            "title": "Your topics",
            "type": "array",
            "description": "The subjects you can speak on, in plain words, like `cybersecurity`, `pensions` or `interior design`. Requests that mention one are tagged in `matchedKeywords` and listed first. A single word also matches its plain endings, so `finance` finds \"financial\". Leave it empty to get every request.",
            "items": {
              "type": "string"
            }
          },
          "keywordsOnly": {
            "title": "Only requests matching my topics",
            "type": "boolean",
            "description": "Leave out every request that mentions none of your topics. Needs at least one topic above.",
            "default": false
          },
          "excludeKeywords": {
            "title": "Leave out requests mentioning",
            "type": "array",
            "description": "Words that rule a request out, like `giveaway` or `crypto`. Matched the same way as your topics.",
            "items": {
              "type": "string"
            }
          },
          "onlyOpenDeadlines": {
            "title": "Hide expired requests",
            "type": "boolean",
            "description": "Keep only requests whose deadline has not passed. A post that states no deadline counts as open for 30 days after it was posted.",
            "default": true
          },
          "maxAgeDays": {
            "title": "Posted in the last (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only requests posted in the last this many days. Empty means no age limit beyond the 30-day rule above. Calls for evidence count from the day they opened."
          },
          "maxRequests": {
            "title": "Max requests to return",
            "minimum": 1,
            "maximum": 2000,
            "type": "integer",
            "description": "Stop after this many, the most useful first: your topics, then the soonest deadline, then the newest.",
            "default": 200
          },
          "sources": {
            "title": "Where to look",
            "type": "array",
            "description": "Bluesky carries the journalists' own requests. Mastodon's request tags have been quiet for months, so it is off unless you tick it. The three government lists are not journalists: they are open calls for expert evidence, with real closing dates, for when being quoted in a report or a consultation response is useful to you.",
            "items": {
              "type": "string",
              "enum": [
                "bluesky",
                "mastodon",
                "uk_parliament",
                "gov_uk",
                "us_federal_register"
              ],
              "enumTitles": [
                "Bluesky (#journorequest, #prrequest)",
                "Mastodon (#journorequest, quiet)",
                "UK Parliament calls for evidence",
                "GOV.UK open consultations",
                "US Federal Register requests for information"
              ]
            },
            "default": [
              "bluesky"
            ]
          },
          "industries": {
            "title": "Sections",
            "type": "array",
            "description": "Keep only requests in these sections. Each request gets its section from its own words, so a mixed request lands in the one it talks about most. Empty keeps every section.",
            "items": {
              "type": "string",
              "enum": [
                "General",
                "Business & Finance",
                "Health & Wellbeing",
                "Lifestyle, Food & Fashion",
                "Parenting & Education",
                "Professional Services",
                "PR, Media & Marketing",
                "Technology",
                "Travel & Leisure",
                "Property",
                "Environment",
                "Samples, Prizes & Sponsorship"
              ]
            },
            "default": []
          },
          "countries": {
            "title": "Countries",
            "type": "array",
            "description": "Keep only requests about these countries. Government rows always have one; a post has one only when it names exactly one country, so most posts are left out by this filter.",
            "items": {
              "type": "string",
              "enum": [
                "United Kingdom",
                "Ireland",
                "United States",
                "Australia",
                "Canada",
                "New Zealand"
              ]
            },
            "default": []
          },
          "onlyNewRequests": {
            "title": "Only new requests (for scheduled runs)",
            "type": "boolean",
            "description": "Return only requests this actor has not returned to you before, so a daily schedule gives you a fresh list each morning. It keeps the ids it returned in a store named `journalist-requests-seen` in your own account; delete that store to start over.",
            "default": false
          }
        }
      },
      "runsResponseSchema": {
        "type": "object",
        "properties": {
          "data": {
            "type": "object",
            "properties": {
              "id": {
                "type": "string"
              },
              "actId": {
                "type": "string"
              },
              "userId": {
                "type": "string"
              },
              "startedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "finishedAt": {
                "type": "string",
                "format": "date-time",
                "example": "2025-01-08T00:00:00.000Z"
              },
              "status": {
                "type": "string",
                "example": "READY"
              },
              "meta": {
                "type": "object",
                "properties": {
                  "origin": {
                    "type": "string",
                    "example": "API"
                  },
                  "userAgent": {
                    "type": "string"
                  }
                }
              },
              "stats": {
                "type": "object",
                "properties": {
                  "inputBodyLen": {
                    "type": "integer",
                    "example": 2000
                  },
                  "rebootCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "restartCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "resurrectCount": {
                    "type": "integer",
                    "example": 0
                  },
                  "computeUnits": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "options": {
                "type": "object",
                "properties": {
                  "build": {
                    "type": "string",
                    "example": "latest"
                  },
                  "timeoutSecs": {
                    "type": "integer",
                    "example": 300
                  },
                  "memoryMbytes": {
                    "type": "integer",
                    "example": 1024
                  },
                  "diskMbytes": {
                    "type": "integer",
                    "example": 2048
                  }
                }
              },
              "buildId": {
                "type": "string"
              },
              "defaultKeyValueStoreId": {
                "type": "string"
              },
              "defaultDatasetId": {
                "type": "string"
              },
              "defaultRequestQueueId": {
                "type": "string"
              },
              "buildNumber": {
                "type": "string",
                "example": "1.0.0"
              },
              "containerUrl": {
                "type": "string"
              },
              "usage": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "integer",
                    "example": 1
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              },
              "usageTotalUsd": {
                "type": "number",
                "example": 0.00005
              },
              "usageUsd": {
                "type": "object",
                "properties": {
                  "ACTOR_COMPUTE_UNITS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATASET_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "KEY_VALUE_STORE_WRITES": {
                    "type": "number",
                    "example": 0.00005
                  },
                  "KEY_VALUE_STORE_LISTS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_READS": {
                    "type": "integer",
                    "example": 0
                  },
                  "REQUEST_QUEUE_WRITES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_INTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "DATA_TRANSFER_EXTERNAL_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_RESIDENTIAL_TRANSFER_GBYTES": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_SERPS": {
                    "type": "integer",
                    "example": 0
                  },
                  "PROXY_UNBLOCKER_UNITS": {
                    "type": "integer",
                    "example": 0
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}