Journalist Verification API

This API allows you to verify if a social media username belongs to a Legitimate journalist in our system.

Endpoint

POST /api/v1/verify_journalist

URL: https://www.legitimate.net

Parameters

  • social_username (required): The social media username to verify. Do not include the @ symbol at the start.

  • social_type (required): The social media type of the username. Valid values are twitter, linkedin, or facebook.

Response

The API response is in JSON format and contains the following fields:

  • verified (boolean): Indicates if the username belongs to a legitimate journalist in our system.

  • first_name (string, optional): The first name of the verified journalist.

  • last_name (string, optional): The last name of the verified journalist.

  • slug (string, optional): The slug of the verified journalist.

  • message (string, optional): The error message if the social media username does not belong to a legitimate journalist in our system.

Example

Request

Response (verified)

Response (not verified)

Sent with username: "CriticalRed_Pen" with an underscore inserted.

Errors

The API can return the following errors:

  • 422 Unprocessable Entity: If the social_type parameter is missing or invalid.

  • 500 Internal Server Error: If there is an error with the server.

Notes

  • The social_username parameter is case-insensitive.

  • The social_type parameter must be one of twitter, linkedin, or facebook.

  • If the verified field is false, the API response will contain a message field with the error message.

Last updated

Was this helpful?