> ## Documentation Index
> Fetch the complete documentation index at: https://bmpdocs.moneyp.com.br/llms.txt
> Use this file to discover all available pages before exploring further.

# 24 - Mídia Negativa Síncrona

Este endpoint permite consultas sobre dados de mídia relacionados ao documento de uma pessoa física no formato de resposta rápida (Síncrono). A resposta é retornada como ‘String JSON’ serializada e inclui:

* Total de páginas e notícias relacionadas ao documento;
* Quantidade de ocorrências do documento em notícias no período entre 7 e 360 dias.

<Expandable title="Exemplo de retorno completo">
  O exemplo de retorno, mostrado no lado direito desta tela, está resumido. Na linha `"json": "<string>"` o retorno do Bureau vem de forma serializada, sendo necessário deserializar para melhor visualização. Aqui está um exemplo do retorno deserializado que vem no campo `"json":`.

  ```json theme={null}
  {
      "Erro": Boolean,
      "MensagemOperador": "String",
      "ResultadoConsulta": {
          "Identificador": "String",
          "StatusConsulta": {
              "Code": int,
              "Message": "String"
          },
          "TotalPages": int,
          "TotalNews": int,
          "TotalNewsOnLast7Days": int,
          "TotalNewsOnLast30Days": int,
          "TotalNewsOnLast90Days": int,
          "TotalNewsOnLast180Days": int,
          "TotalNewsOnLast365Days": int,
          "MediaExposureLevel": "String",
          "CelebrityLevel": "String",
          "UnpopularityLevel": "String",
  	"identificador": "String"
      }
  }
  ```
</Expandable>


## OpenAPI

````yaml post /Bureau/MidiaNegativaPF
openapi: 3.0.1
info:
  title: BMPDigitalCore.ApiExterna.Bureau.API
  version: '1.0'
servers:
  - url: https://api.bmpdigital.moneyp.dev.br/
    description: Localhost
security:
  - Bearer: []
paths:
  /Bureau/MidiaNegativaPF:
    post:
      tags:
        - BureauSync
      parameters:
        - name: IdempotencyKey
          in: header
          required: true
          schema:
            type: string
      requestBody:
        content:
          application/json:
            schema:
              $ref: '#/components/schemas/ConsultaBigDataPFCommand'
          text/json:
            schema:
              $ref: '#/components/schemas/ConsultaBigDataPFCommand'
          application/*+json:
            schema:
              $ref: '#/components/schemas/ConsultaBigDataPFCommand'
      responses:
        '200':
          description: Success
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ConsultaBigDataPFMidiaNegativaResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ConsultaBigDataPFMidiaNegativaResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ConsultaBigDataPFMidiaNegativaResponse'
        '400':
          description: Bad Request
          content:
            text/plain:
              schema:
                $ref: '#/components/schemas/ConsultaBigDataPFMidiaNegativaResponse'
            application/json:
              schema:
                $ref: '#/components/schemas/ConsultaBigDataPFMidiaNegativaResponse'
            text/json:
              schema:
                $ref: '#/components/schemas/ConsultaBigDataPFMidiaNegativaResponse'
components:
  schemas:
    ConsultaBigDataPFCommand:
      type: object
      properties:
        consulta:
          $ref: '#/components/schemas/ConsultaBigDataPFRequest'
      additionalProperties: false
    ConsultaBigDataPFMidiaNegativaResponse:
      type: object
      properties:
        msg:
          type: string
          nullable: true
        result:
          type: boolean
          writeOnly: true
        messages:
          type: array
          items:
            $ref: '#/components/schemas/Message'
          nullable: true
        hasError:
          type: boolean
        falha:
          type: boolean
        json:
          type: string
          nullable: true
      additionalProperties: false
    ConsultaBigDataPFRequest:
      type: object
      properties:
        identificador:
          type: string
          nullable: true
        documento:
          type: string
          nullable: true
      additionalProperties: false
    Message:
      type: object
      properties:
        messageType:
          $ref: '#/components/schemas/ErrorType'
        code:
          type: string
          nullable: true
        context:
          type: string
          nullable: true
        description:
          type: string
          nullable: true
        field:
          type: string
          nullable: true
      additionalProperties: false
    ErrorType:
      enum:
        - 1
        - 2
        - 3
      type: integer
      format: int32
  securitySchemes:
    Bearer:
      type: apiKey
      description: Informe o token
      name: Authorization
      in: header

````