{
  "openapi": "3.0.1",
  "info": {
    "title": "Brazil News Scraper: Full-Text Articles",
    "description": "Collect full-text articles from 40+ Brazilian news sources, national and regional. Get title, text, authors, publish date, language and image as structured data. Filter by keyword and date range, toggle sources individually, and add optional sentiment, tags or summaries.",
    "version": "0.0",
    "x-build-id": "fi7AiWAqcCJefbO1g"
  },
  "servers": [
    {
      "url": "https://api.apify.com/v2"
    }
  ],
  "paths": {
    "/acts/bite-sized-insights~brazil-news-scraper/run-sync-get-dataset-items": {
      "post": {
        "operationId": "run-sync-get-dataset-items-bite-sized-insights-brazil-news-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/bite-sized-insights~brazil-news-scraper/runs": {
      "post": {
        "operationId": "runs-sync-bite-sized-insights-brazil-news-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/bite-sized-insights~brazil-news-scraper/run-sync": {
      "post": {
        "operationId": "run-sync-bite-sized-insights-brazil-news-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": {
          "search_query": {
            "title": "Search Query",
            "maxLength": 100,
            "type": "string",
            "description": "Filter articles by keyword. Only articles matching any word of the query in title, text, description or URL (case-insensitive) will be returned. Might process a lot of articles in the background."
          },
          "start_date": {
            "title": "Start Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only include articles published on or after this date. Must not be in the future."
          },
          "end_date": {
            "title": "End Date",
            "pattern": "^\\d{4}-\\d{2}-\\d{2}$",
            "type": "string",
            "description": "Only include articles published up to this date (taken as 00:00:00 when no time is given). Must not be older than 5 years."
          },
          "limit": {
            "title": "Max Articles",
            "minimum": 0,
            "maximum": 10000,
            "type": "integer",
            "description": "Maximum number of articles to return (0 = unlimited). The actual number of processed articles might be higher if date and/or query filters are in use.",
            "default": 100
          },
          "folha_de_spaulo": {
            "title": "Folha de S.Paulo",
            "type": "boolean",
            "description": "Include articles from Folha de S.Paulo (folha.uol.com.br)",
            "default": true
          },
          "o_globo": {
            "title": "O Globo",
            "type": "boolean",
            "description": "Include articles from O Globo (oglobo.globo.com)",
            "default": true
          },
          "g1": {
            "title": "G1",
            "type": "boolean",
            "description": "Include articles from G1, Brazil's largest news portal (g1.globo.com)",
            "default": true
          },
          "r7": {
            "title": "R7",
            "type": "boolean",
            "description": "Include articles from R7 news portal (r7.com)",
            "default": true
          },
          "valor_economico": {
            "title": "Valor Econômico",
            "type": "boolean",
            "description": "Include articles from Valor Econômico (valor.globo.com)",
            "default": true
          },
          "correio_braziliense": {
            "title": "Correio Braziliense",
            "type": "boolean",
            "description": "Include articles from Correio Braziliense (correiobraziliense.com.br)",
            "default": true
          },
          "carta_capital": {
            "title": "Carta Capital",
            "type": "boolean",
            "description": "Include articles from Carta Capital magazine (cartacapital.com.br)",
            "default": true
          },
          "metropoles": {
            "title": "Metrópoles",
            "type": "boolean",
            "description": "Include articles from Metrópoles (metropoles.com)",
            "default": true
          },
          "poder360": {
            "title": "Poder360",
            "type": "boolean",
            "description": "Include articles from Poder360 (poder360.com.br)",
            "default": true
          },
          "cnn_brasil": {
            "title": "CNN Brasil",
            "type": "boolean",
            "description": "Include articles from CNN Brasil (cnnbrasil.com.br)",
            "default": true
          },
          "bbc_brasil": {
            "title": "BBC Brasil",
            "type": "boolean",
            "description": "Include articles from BBC News Brasil (bbc.com/portuguese)",
            "default": true
          },
          "brasil_de_fato": {
            "title": "Brasil de Fato",
            "type": "boolean",
            "description": "Include articles from Brasil de Fato (brasildefato.com.br)",
            "default": true
          },
          "agencia_brasil": {
            "title": "Agência Brasil",
            "type": "boolean",
            "description": "Include articles from Agência Brasil / EBC (agenciabrasil.ebc.com.br)",
            "default": true
          },
          "veja": {
            "title": "Veja",
            "type": "boolean",
            "description": "Include articles from Veja magazine (veja.abril.com.br)",
            "default": true
          },
          "the_intercept_brasil": {
            "title": "The Intercept Brasil",
            "type": "boolean",
            "description": "Include articles from The Intercept Brasil (theintercept.com/brasil)",
            "default": true
          },
          "infomoney": {
            "title": "InfoMoney",
            "type": "boolean",
            "description": "Include articles from InfoMoney (infomoney.com.br)",
            "default": true
          },
          "exame": {
            "title": "Exame",
            "type": "boolean",
            "description": "Include articles from Exame (exame.com)",
            "default": true
          },
          "epoca_negocios": {
            "title": "Época Negócios",
            "type": "boolean",
            "description": "Include articles from Época Negócios (epocanegocios.globo.com)",
            "default": true
          },
          "jota": {
            "title": "Jota",
            "type": "boolean",
            "description": "Include articles from Jota legal news (jota.info)",
            "default": true
          },
          "conjur": {
            "title": "ConJur",
            "type": "boolean",
            "description": "Include articles from Consultor Jurídico (conjur.com.br)",
            "default": true
          },
          "o_antagonista": {
            "title": "O Antagonista",
            "type": "boolean",
            "description": "Include articles from O Antagonista (oantagonista.com.br)",
            "default": true
          },
          "agencia_publica": {
            "title": "Agência Pública",
            "type": "boolean",
            "description": "Include articles from Agência Pública (apublica.org)",
            "default": true
          },
          "dw_brasil": {
            "title": "DW Brasil",
            "type": "boolean",
            "description": "Include articles from Deutsche Welle Brasil (dw.com)",
            "default": true
          },
          "rfi_brasil": {
            "title": "RFI Brasil",
            "type": "boolean",
            "description": "Include articles from Radio France Internationale Brasil (rfi.fr/br)",
            "default": true
          },
          "olhar_digital": {
            "title": "Olhar Digital",
            "type": "boolean",
            "description": "Include articles from Olhar Digital (olhardigital.com.br)",
            "default": true
          },
          "canal_tech": {
            "title": "Canaltech",
            "type": "boolean",
            "description": "Include articles from Canaltech (canaltech.com.br)",
            "default": true
          },
          "revista_piaui": {
            "title": "Revista Piauí",
            "type": "boolean",
            "description": "Include articles from Revista Piauí long-form magazine (piaui.folha.uol.com.br)",
            "default": true
          },
          "extra": {
            "title": "Extra",
            "type": "boolean",
            "description": "Include articles from Extra tabloid (extra.globo.com)",
            "default": true
          },
          "estado_de_minas": {
            "title": "Estado de Minas",
            "type": "boolean",
            "description": "Include articles from Estado de Minas (em.com.br)",
            "default": true
          },
          "tribuna_do_parana": {
            "title": "Tribuna do Paraná",
            "type": "boolean",
            "description": "Include articles from Tribuna do Paraná (tribunapr.com.br)",
            "default": true
          },
          "nd_mais": {
            "title": "ND Mais",
            "type": "boolean",
            "description": "Include articles from ND Mais Florianópolis (ndmais.com.br)",
            "default": true
          },
          "dol": {
            "title": "DOL - Diário Online",
            "type": "boolean",
            "description": "Include articles from DOL Belém (dol.com.br)",
            "default": true
          },
          "jornal_opcao": {
            "title": "Jornal Opção",
            "type": "boolean",
            "description": "Include articles from Jornal Opção Goiânia (jornalopcao.com.br)",
            "default": true
          },
          "o_imparcial": {
            "title": "O Imparcial",
            "type": "boolean",
            "description": "Include articles from O Imparcial São Luís (oimparcial.com.br)",
            "default": true
          },
          "tribuna_do_norte": {
            "title": "Tribuna do Norte",
            "type": "boolean",
            "description": "Include articles from Tribuna do Norte Natal (tribunadonorte.com.br)",
            "default": true
          },
          "jornal_de_brasilia": {
            "title": "Jornal de Brasília",
            "type": "boolean",
            "description": "Include articles from Jornal de Brasília (jornaldebrasilia.com.br)",
            "default": true
          },
          "with_sentiment": {
            "title": "Add sentiment",
            "type": "boolean",
            "description": "Add a sentiment score to each article (positive/negative/neutral + confidence). $0.20 / 1,000 articles.",
            "default": false
          },
          "with_tags": {
            "title": "Add tags",
            "type": "boolean",
            "description": "Add LLM-generated category tags to each article. $1.50 / 1,000 articles.",
            "default": false
          },
          "with_summary": {
            "title": "Add summary",
            "type": "boolean",
            "description": "Add an LLM-generated compact summary to each article. $2.50 / 1,000 articles.",
            "default": false
          },
          "with_5w1h": {
            "title": "Add 5W1H",
            "type": "boolean",
            "description": "Add Who/What/When/Where/Why/How extraction to each article. Requires at least 50 characters of article text. $4.00 / 1,000 articles.",
            "default": false
          },
          "with_language_detection": {
            "title": "Detect language",
            "type": "boolean",
            "description": "Detect the language of each article's text (code, confidence, candidates) into a separate detected_language field; the source-declared language stays unchanged. $0.10 / 1,000 articles.",
            "default": false
          },
          "with_fix_text": {
            "title": "Fix text",
            "type": "boolean",
            "description": "Repair garbled text (mojibake) in each article. The repaired text is returned in fixed_text, text stays unchanged, and other add-ons then analyse the fixed text. Charged only for articles whose text was actually repaired. $1.25 / 1,000 articles.",
            "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
                  }
                }
              }
            }
          }
        }
      }
    }
  }
}