{
  "openapi": "3.0.1",
  "info": {
    "title": "News Coverage Evidence",
    "description": "Find source-linked news from GDELT and official GOV.UK announcements. Review dates, coverage and source links before exporting your results.",
    "version": "0.7",
    "x-build-id": "buJn2ugiML5uSdgsy"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/apifmcpfactory~news-coverage-evidence/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-apifmcpfactory-news-coverage-evidence",
        "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/apifmcpfactory~news-coverage-evidence/runs": {
      "post": {
        "operationId": "runs-sync-apifmcpfactory-news-coverage-evidence",
        "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/apifmcpfactory~news-coverage-evidence/run-sync": {
      "post": {
        "operationId": "run-sync-apifmcpfactory-news-coverage-evidence",
        "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": {
          "term": {
            "title": "Search phrase",
            "maxLength": 120,
            "type": "string",
            "description": "Matches the headline by default. Use a live window to search article text, or enter one to four words with published phrase index minutes."
          },
          "domain": {
            "title": "Publisher domain",
            "maxLength": 253,
            "type": "string",
            "description": "Optional exact domain as it appears in the publisher link, including any www prefix."
          },
          "archiveMinutes": {
            "title": "UTC archive minutes",
            "maxItems": 5,
            "type": "array",
            "description": "Enter up to five GDELT archive minutes as YYYYMMDDHHMM00 strings. Leave empty to check the rolling headline feed.",
            "items": {
              "type": "string"
            }
          },
          "includeArchiveImageLinks": {
            "title": "Include archive image links",
            "type": "boolean",
            "description": "Optional. Include published HTTPS image links when supplied by GDELT Article List archive records. Images are never downloaded. Leave off for other sources.",
            "default": false
          },
          "archiveStart": {
            "title": "First archive minute (UTC)",
            "type": "string",
            "description": "Optional range start in YYYY-MM-DDTHH:MMZ format. Supply both endpoints or use the archive minute list."
          },
          "archiveEnd": {
            "title": "Last archive minute (UTC)",
            "type": "string",
            "description": "Inclusive range end in YYYY-MM-DDTHH:MMZ format. A range can cover up to five minutes."
          },
          "phraseIndexMinute": {
            "title": "Phrase index minute (UTC)",
            "maxLength": 14,
            "type": "string",
            "description": "Optional. Use one published GDELT phrase index minute in YYYYMMDDHHMM00 format. Leave the headline archive and publisher filters empty for this mode."
          },
          "phraseIndexMinutes": {
            "title": "Compare phrase index minutes (UTC)",
            "maxItems": 3,
            "type": "array",
            "description": "Enter up to three distinct YYYYMMDDHHMM00 values. Leave the single-minute, headline archive and publisher filters empty.",
            "items": {
              "type": "string"
            }
          },
          "gkgTheme": {
            "title": "GDELT theme code",
            "maxLength": 80,
            "type": "string",
            "description": "Optional. Enter an exact GDELT Global Knowledge Graph theme such as ENV_CLIMATECHANGE. Use with the theme archive timestamps and leave text, domain and language searches empty."
          },
          "gkgMinutes": {
            "title": "GDELT theme archive timestamps (UTC)",
            "maxItems": 2,
            "type": "array",
            "description": "Enter one or two published quarter-hour batches in YYYYMMDDHHMM00 format with a GDELT theme code.",
            "items": {
              "type": "string"
            }
          },
          "gkgDate": {
            "title": "GDELT full-day theme archive (UTC)",
            "maxLength": 10,
            "type": "string",
            "description": "Optional. Use one past date in YYYY-MM-DD format with a GDELT theme code. Leave the theme archive timestamps empty. Maximum compressed archive size is 35 MB."
          },
          "publisherCountry": {
            "title": "GDELT publisher country code",
            "maxLength": 2,
            "type": "string",
            "description": "Optional. Use the two-letter publisher country code from the pinned Crosswire directory, such as FR or IE. Applied to the captured GDELT results. Unknown publishers are excluded."
          },
          "archiveLanguage": {
            "title": "GDELT archive language code",
            "maxLength": 21,
            "type": "string",
            "description": "Optional. Use an exact code, such as fr for French, to include matching language records in the chosen GDELT archive or phrase-index minutes. The rolling feeds lack language codes."
          },
          "livePhraseHours": {
            "title": "Live phrase window (hours)",
            "minimum": 1,
            "maximum": 72,
            "type": "integer",
            "description": "Optional. Search GDELT's recent article text for the exact phrase, with an optional publisher domain. Enter 1 to 72 hours and leave all archive and index minute inputs empty."
          },
          "contextStartUtc": {
            "title": "Fixed Context search start (UTC)",
            "maxLength": 17,
            "type": "string",
            "description": "Optional. Use with the end and a search phrase. Enter a UTC minute as YYYY-MM-DDTHH:MMZ within the last 72 hours and leave the rolling window and other source settings empty."
          },
          "contextEndUtc": {
            "title": "Fixed Context search end (UTC)",
            "maxLength": 17,
            "type": "string",
            "description": "Enter a UTC minute as YYYY-MM-DDTHH:MMZ. It must be at least 15 minutes after the start. Only provider timestamps strictly between the endpoints qualify."
          },
          "contextAnyOf": {
            "title": "Alternative Context phrases",
            "maxItems": 3,
            "type": "array",
            "description": "Optional. Match any of these phrases or the main Search phrase in the recent rolling or fixed Context search. Enter up to three literal phrases.",
            "items": {
              "type": "string"
            }
          },
          "contextExclude": {
            "title": "Exclude Context phrases",
            "maxItems": 3,
            "type": "array",
            "description": "Optional. Enter up to three literal phrases to exclude from the recent Context search.",
            "items": {
              "type": "string"
            }
          },
          "contextSearchLanguage": {
            "title": "GDELT Context search language",
            "maxLength": 40,
            "type": "string",
            "description": "Optional. Use the provider's code such as FRENCH, SPANISH or NORWEGIAN_N with either recent Context window. Enter the phrase as used in that language."
          },
          "govukNewsDays": {
            "title": "GOV.UK announcements window (days)",
            "minimum": 1,
            "maximum": 90,
            "type": "integer",
            "description": "Optional. Use Search phrase to look up news stories and press releases from GOV.UK. Choose 1 to 90 days and leave GDELT fields empty."
          },
          "govukOrganisation": {
            "title": "GOV.UK department slug",
            "maxLength": 100,
            "type": "string",
            "description": "Optional. Use the final part of the department organisation link, such as department-for-energy-security-and-net-zero."
          },
          "govukFrom": {
            "title": "GOV.UK start date (UTC)",
            "maxLength": 10,
            "type": "string",
            "description": "Optional. Use YYYY-MM-DD with the end date to search up to 366 inclusive days. Leave the rolling window and GDELT fields empty."
          },
          "govukTo": {
            "title": "GOV.UK end date (UTC)",
            "maxLength": 10,
            "type": "string",
            "description": "Inclusive end date in YYYY-MM-DD format, on or before today."
          },
          "limit": {
            "title": "Maximum links to export",
            "minimum": 1,
            "maximum": 100,
            "type": "integer",
            "description": "Choose 1 to 100 links. The coverage report also counts all matches in the sources checked.",
            "default": 25
          }
        }
      },
      "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}