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.profile_bio
(string, optional) The bio from their profile.article_count
The count of articles on their profile.articles
Their last 3 articles.profile_image
A link to their profile image.social_profiles
A list of their social profiles.
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_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 oftwitter
,linkedin
, orfacebook
.If the
verified
field isfalse
, the API response will contain amessage
field with the error message.
Last updated