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 aretwitter,linkedin, orfacebook.
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 thesocial_typeparameter is missing or invalid.500 Internal Server Error: If there is an error with the server.
Notes
The
social_usernameparameter is case-insensitive.The
social_typeparameter must be one oftwitter,linkedin, orfacebook.If the
verifiedfield isfalse, the API response will contain amessagefield with the error message.
Last updated
Was this helpful?