Factchecks
Get factchecks
GET  /api/v1/factchecks
{
    "data": [
        {
            "title": "Fact Check: How true is Congress party’s claim ?",
            "introduction": "<p>introduction</p>",
            "summary": "<p> </p>",
            "excerpt": "Recently, Congress Party has claimed that there is a shortfall in government earnings in 2018-19.",
            "featured": false,
            "sticky": false,
            "updates": "",
            "slug": "factcheck-how-true-is-congress-party-claim-regarding-shortfall-in-government-earnings",
            "claims": [
                {
                    "claim": "There was a shortfall in government earnings in 2018-19.",
                    "description": "<p>Description</p>",
                    "slug": "there-was-a-shortfall-in-government-earnings-in-2018-19",
                    "id": "5d8f5d53f4f39f0001e419ec",
                    "class": "com.factly.dega.domain.Claim",
                    "clientId": "factly",
                    "claimDate": "2019-09-19T00:00:00.000Z",
                    "claimSource": "https://twitter.com/INCIndia/status/1175386695757230080",
                    "checkedDate": "2019-09-27T00:00:00.000Z",
                    "reviewSources": "https://www.indiabudget.gov.in/economicsurvey/",
                    "review": "<p>MISLEADING.</p>",
                    "reviewTagLine": "",
                    "createdDate": "2019-09-28T13:17:07.009Z",
                    "lastUpdatedDate": "2019-09-28T14:54:44.449Z",
                    "rating": {
                        "name": "True",
                        "slug": "true",
                        "description": "This is the description fo True rating",
                        "id": "5d791140e10bf00001fad893",
                        "class": "com.factly.dega.domain.Rating",
                        "numericValue": 5,
                        "isDefault": true,
                        "clientId": "default",
                        "media": {
                            "name": "https://storage.degacms.com/factly.png",
                            "type": "image/png",
                            "url": "https://storage.degacms.com/factly.png",
                            "title": "true",
                            "slug": "true",
                            "id": "5d792f14bf1bce0001eda499",
                            "class": "com.factly.dega.domain.Media",
                            "fileSize": "14323",
                            "altText": "true",
                            "uploadedBy": "shashi@factly.in",
                            "publishedDate": "2019-09-11T17:29:00.000Z",
                            "lastUpdatedDate": "2019-09-11T17:30:18.924Z",
                            "clientId": "factly",
                            "createdDate": "2019-09-11T17:29:00.000Z",
                            "relativeURL": "/factly.png",
                            "sourceURL": "https://images.degacms.com/factly.png"
                        },
                        "createdDate": "2019-09-11T15:22:00.000Z",
                        "lastUpdatedDate": "2019-09-12T04:38:43.403Z"
                    },
                    "claimant": {
                        "name": "Government of India",
                        "slug": "government-of-india",
                        "id": "5d8f5c68f4f39f0001e419e9",
                        "class": "com.factly.dega.domain.Claimant",
                        "clientId": "factly",
                        "media": {
                            "name": "https://storage.degacms.com/factly.png",
                            "type": "image/png",
                            "url": "https://storage.degacms.com/factly.png",
                            "title": "government-of-india",
                            "slug": "government-of-india1",
                            "id": "5d8f5ce993ace2000112a8c6",
                            "class": "com.factly.dega.domain.Media",
                            "fileSize": "112448",
                            "altText": "government-of-india",
                            "uploadedBy": "shashi@factly.in",
                            "publishedDate": "2019-09-28T13:15:21.348Z",
                            "lastUpdatedDate": "2019-09-28T13:15:21.348Z",
                            "clientId": "factly",
                            "createdDate": "2019-09-28T13:15:21.348Z",
                            "relativeURL": "/factly.png",
                            "sourceURL": "https://images.degacms.com/factly.png"
                        },
                        "createdDate": "2019-09-28T13:13:00.000Z",
                        "lastUpdatedDate": "2019-09-28T13:15:28.083Z"
                    }
                }
            ],
            "tags": [],
            "categories": [
                {
                    "name": "India",
                    "description": "",
                    "slug": "india",
                    "parent": "",
                    "id": "5d79818bbf1bce0001eda4e2",
                    "class": "com.factly.dega.domain.Category",
                    "clientId": "factly",
                    "createdDate": "2019-09-11T23:21:47.651Z",
                    "lastUpdatedDate": "2019-09-11T23:21:47.651Z"
                },
                {
                    "name": "Stories",
                    "description": "",
                    "slug": "stories",
                    "parent": "",
                    "id": "5d798196bf1bce0001eda4e6",
                    "class": "com.factly.dega.domain.Category",
                    "clientId": "factly",
                    "createdDate": "2019-09-11T23:21:58.886Z",
                    "lastUpdatedDate": "2019-09-11T23:21:58.886Z"
                }
            ],
            "status": {
                "name": "Publish",
                "slug": "publish",
                "id": "5d791093e5c62900019d7856",
                "class": "com.factly.dega.domain.Status",
                "clientId": "default",
                "isDefault": true,
                "createdDate": "2019-09-11T15:19:47.348Z",
                "lastUpdatedDate": "2019-09-11T15:19:47.348Z"
            },
            "media": {
                "name": "https://storage.degacms.com/factly.jpg",
                "type": "image/jpeg",
                "url": "https://storage.degacms.com/factly.jpg",
                "title": "shortfall-in-government-earnings_Featured-Image",
                "slug": "shortfall-in-government-earnings_featured-image",
                "id": "5d8f5e3093ace2000112a8d4",
                "class": "com.factly.dega.domain.Media",
                "fileSize": "62885",
                "altText": "shortfall-in-government-earnings_Featured-Image",
                "uploadedBy": "shashi@factly.in",
                "publishedDate": "2019-09-28T13:20:48.654Z",
                "lastUpdatedDate": "2019-09-28T13:20:48.654Z",
                "clientId": "factly",
                "createdDate": "2019-09-28T13:20:48.654Z",
                "relativeURL": "/factly.jpg",
                "sourceURL": "https://images.degacms.com/factly.jpg"
            },
            "id": "5d8f5e38f4f39f0001e419f0",
            "class": "com.factly.dega.domain.Factcheck",
            "clientId": "factly",
            "publishedDate": "2019-09-28T13:20:56.676Z",
            "subTitle": "",
            "createdDate": "2019-09-28T13:20:56.676Z",
            "lastUpdatedDate": "2019-10-14T10:43:31.594Z",
            "users": [
                {
                    "description": "Rakesh closely watched the 'Jan Satyagraha' ....",
                    "slug": "rakesh-dubbudu",
                    "email": "rakesh@factly.in",
                    "roleMappings": [
                        {
                            "name": "Factly - Administrator",
                            "id": "5d792544bf1bce0001eda478",
                            "class": "com.factly.dega.domain.RoleMapping"
                        }
                    ],
                    "media": {
                        "name": "https://storage.degacms.com/factly.jpg",
                        "type": "image/jpeg",
                        "url": "https://storage.degacms.com/factly.jpg",
                        "title": "rakesh-dubbudu",
                        "slug": "rakesh-dubbudu1",
                        "id": "5d93ebc177b1b80001d57232",
                        "class": "com.factly.dega.domain.Media",
                        "fileSize": "25875",
                        "altText": "rakesh-dubbudu",
                        "uploadedBy": "shashi@factly.in",
                        "publishedDate": "2019-10-02T00:13:52.984Z",
                        "lastUpdatedDate": "2019-10-02T00:13:52.984Z",
                        "clientId": "factly",
                        "createdDate": "2019-10-02T00:13:52.984Z",
                        "relativeURL": "/factly.jpg",
                        "sourceURL": "https://images.degacms.com/factly.jpg"
                    },
                    "id": "5d79d0bebf1bce0001eda5e1",
                    "class": "com.factly.dega.domain.DegaUser",
                    "firstName": "Rakesh",
                    "lastName": "Dubbudu",
                    "displayName": "Rakesh Dubbudu",
                    "createdDate": "2019-09-12T04:59:00.000Z"
                }
            ],
            "schemas": [
                {
                    "@context": "http://schema.org",
                    "@type": "ClaimReview",
                    "datePublished": "2019-09-28T13:20:56.676Z",
                    "url": "https://factcheck.factly.in/factcheck/factcheck-how-true-is-congress-party-claim",
                    "author": {
                        "@type": "Organization",
                        "url": "https://factcheck.factly.in",
                        "image": "https://images.degacms.com/factly.png",
                        "name": "Factly"
                    },
                    "claimReviewed": "There was a shortfall in government earnings in 2018-19.",
                    "reviewRating": {
                        "@type": "Rating",
                        "ratingValue": 5,
                        "bestRating": 5,
                        "worstRating": 1,
                        "alternateName": "True",
                        "image": "https://images.degacms.com/factly.png"
                    },
                    "itemReviewed": {
                        "@type": "CreativeWork",
                        "author": {
                            "@type": "Organization",
                            "name": "Government of India",
                            "image": "https://images.degacms.com/factly.png"
                        },
                        "datePublished": "2019-09-19T00:00:00.000Z",
                        "name": "There was a shortfall in government earnings in 2018-19. "
                    }
                }
            ]
        },
        {
            ...
        },
        ...
    ],
    "paging": {
        "next": "eyIkdW5kZWZpbmVkIjp0cnVlfQ",
        "hasNext": false,
        "previous": "eyIkdW5kZWZpbmVkIjp0cnVlfQ",
        "hasPrevious": false
    } 
}
Query Parameters
| params | value | description | 
|---|---|---|
| tag | string | To get factchecks of a tag | 
| slug | string | To get factcheck by slug | 
| category | string | To get factchecks of a category | 
| id | ObjectId | To get factchecks by object id | 
| claimant | string | To get factchecks of a particular claimant | 
| limit | number | To limit number of factchecks | 
| next | string | To get next factchecks | 
| previous | string | To get previous factchecks | 
| sortBy | string | To sort by field | 
| sortAsc | boolean | To set sort by ascending | 
Get factcheck
GET  /api/v1/factchecks/:key
Path parameters
| params | description | 
|---|---|
| key | To get factcheck by Object Id or slug | 
Get a by Object Id
GET  /api/v1/factchecks/$factcheckId
{
    "data" : {
        "title": "Fact Check: How true is Congress party’s claim?",
        "introduction": "<p>introduction</p>",
        "summary": "<p> </p>",
        "excerpt": "Recently, Congress Party has claimed that there is a shortfall in government earnings in 2018-19.",
        "featured": false,
        "sticky": false,
        "updates": "",
        "slug": "factcheck-how-true-is-congress-party-claim-regarding-shortfall-in-government-earnings",
        "claims": [
            {
                ....
            }
        ],
        "tags": [],
        "categories": [
            {
                ...
            }
        ],
        "status": {
            ...
        },
        "media": {
            ...                
        },
        "id": "5d8f5e38f4f39f0001e419f0",
        "class": "com.factly.dega.domain.Factcheck",
        "clientId": "factly",
        "publishedDate": "2019-09-28T13:20:56.676Z",
        "subTitle": "",
        "createdDate": "2019-09-28T13:20:56.676Z",
        "lastUpdatedDate": "2019-10-14T10:43:31.594Z",
        "users": [
            {
                ...
            }
        ],
        "schemas": [
            {
                ...
            }
        ]
    }
}
Get a claim by slug
GET  /api/v1/factchecks/$factcheckSlug 
{
    "data" : {
        "title": "Fact Check: How true is Congress party’s claim?",
        "introduction": "<p>introduction</p>",
        "summary": "<p> </p>",
        "excerpt": "Recently, Congress Party has claimed that there is a shortfall in government earnings in 2018-19.",
        "featured": false,
        "sticky": false,
        "updates": "",
        "slug": "factcheck-how-true-is-congress-party-claim-regarding-shortfall-in-government-earnings",
        "claims": [
            {
                ....
            }
        ],
        "tags": [],
        "categories": [
            {
                ...
            }
        ],
        "status": {
            ...
        },
        "media": {
            ...                
        },
        "id": "5d8f5e38f4f39f0001e419f0",
        "class": "com.factly.dega.domain.Factcheck",
        "clientId": "factly",
        "publishedDate": "2019-09-28T13:20:56.676Z",
        "subTitle": "",
        "createdDate": "2019-09-28T13:20:56.676Z",
        "lastUpdatedDate": "2019-10-14T10:43:31.594Z",
        "users": [
            {
                ...
            }
        ],
        "schemas": [
            {
                ...
            }
        ]
    }
}