{
  "openapi": "3.0.1",
  "info": {
    "title": "Journalist Requests: #JournoRequest Feed & HARO Alternative",
    "description": "Journalist requests for PR at $1 per 1,000: #JournoRequest, #PRrequest and #MediaRequest call-outs from Bluesky and Mastodon, with the deadline, outlet, request type (expert, case study, product) and topics parsed. Filter by keyword, skip expired requests, or get only new requests each day.",
    "version": "0.1",
    "x-build-id": "cEB4VusWBHDajSWgm"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/adhistory~journalist-requests-feed/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-adhistory-journalist-requests-feed",
        "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/adhistory~journalist-requests-feed/runs": {
      "post": {
        "operationId": "runs-sync-adhistory-journalist-requests-feed",
        "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/adhistory~journalist-requests-feed/run-sync": {
      "post": {
        "operationId": "run-sync-adhistory-journalist-requests-feed",
        "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": {
          "hashtags": {
            "title": "Hashtags",
            "type": "array",
            "description": "Hashtags journalists use for source requests, without or with #. The defaults cover #JournoRequest, #JournoRequests, #PRrequest, #MediaRequest and #BloggerRequest.",
            "items": {
              "type": "string"
            }
          },
          "postedWithinDays": {
            "title": "Posted within the last (days)",
            "minimum": 1,
            "maximum": 365,
            "type": "integer",
            "description": "Only requests posted in this many days, newest first. Most requests have a deadline within a week.",
            "default": 7
          },
          "keywords": {
            "title": "Keywords (any)",
            "type": "array",
            "description": "Optional. Keep only requests that mention at least one of these words, for example: finance, mortgage, startup. Case does not matter.",
            "items": {
              "type": "string"
            }
          },
          "excludeKeywords": {
            "title": "Exclude keywords",
            "type": "array",
            "description": "Optional. Drop requests that mention any of these words.",
            "items": {
              "type": "string"
            }
          },
          "skipExpired": {
            "title": "Skip requests whose deadline has passed",
            "type": "boolean",
            "description": "Drop requests with a deadline before today. Requests with no deadline in the text are always kept.",
            "default": false
          },
          "onlyNewSinceLastRun": {
            "title": "Only new since the last run",
            "type": "boolean",
            "description": "Remember what earlier runs returned (in a named key-value store in your account) and return only requests you have not seen. Use it with a daily schedule.",
            "default": false
          },
          "sources": {
            "title": "Sources",
            "type": "array",
            "description": "Where to look: bluesky, mastodon or both.",
            "default": [
              "bluesky",
              "mastodon"
            ],
            "items": {
              "type": "string"
            }
          },
          "mastodonServers": {
            "title": "Mastodon servers",
            "type": "array",
            "description": "Mastodon servers whose hashtag timelines are read. Each server shows the public posts it knows about, so several servers find more.",
            "default": [
              "mastodon.social",
              "journa.host",
              "newsie.social",
              "mastodon.online"
            ],
            "items": {
              "type": "string"
            }
          },
          "extraSearches": {
            "title": "Extra Bluesky searches",
            "type": "array",
            "description": "Optional. More Bluesky search phrases, for example \"looking to speak to\" or \"case studies wanted\". Posts that do not read like a request are dropped unless you turn off the request filter.",
            "items": {
              "type": "string"
            }
          },
          "requestsOnly": {
            "title": "Only posts that read like a request",
            "type": "boolean",
            "description": "Drop posts under the hashtag that do not ask for anything (no 'looking for', 'wanted', 'expert', 'deadline' and similar words).",
            "default": true
          },
          "dedupe": {
            "title": "Merge duplicate posts",
            "type": "boolean",
            "description": "Merge the same request posted more than once (reposts by request services, the same post under two hashtags). The kept row lists the other post links.",
            "default": true
          },
          "languages": {
            "title": "Languages",
            "type": "array",
            "description": "Optional. Two-letter language codes to keep, for example en. Empty keeps all.",
            "items": {
              "type": "string"
            }
          },
          "maxItems": {
            "title": "Max requests",
            "minimum": 1,
            "maximum": 10000,
            "type": "integer",
            "description": "Stop after this many requests. You pay only for requests saved.",
            "default": 200
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}