blob: 0ddb15426641b8f36755a6189987b3c306dd61eb [file] [log] [blame]
Bu Sun Kim715bd7f2019-06-14 16:50:42 -07001<html><body>
2<style>
3
4body, h1, h2, h3, div, span, p, pre, a {
5 margin: 0;
6 padding: 0;
7 border: 0;
8 font-weight: inherit;
9 font-style: inherit;
10 font-size: 100%;
11 font-family: inherit;
12 vertical-align: baseline;
13}
14
15body {
16 font-size: 13px;
17 padding: 1em;
18}
19
20h1 {
21 font-size: 26px;
22 margin-bottom: 1em;
23}
24
25h2 {
26 font-size: 24px;
27 margin-bottom: 1em;
28}
29
30h3 {
31 font-size: 20px;
32 margin-bottom: 1em;
33 margin-top: 1em;
34}
35
36pre, code {
37 line-height: 1.5;
38 font-family: Monaco, 'DejaVu Sans Mono', 'Bitstream Vera Sans Mono', 'Lucida Console', monospace;
39}
40
41pre {
42 margin-top: 0.5em;
43}
44
45h1, h2, h3, p {
46 font-family: Arial, sans serif;
47}
48
49h1, h2, h3 {
50 border-bottom: solid #CCC 1px;
51}
52
53.toc_element {
54 margin-top: 0.5em;
55}
56
57.firstline {
58 margin-left: 2 em;
59}
60
61.method {
62 margin-top: 1em;
63 border: solid 1px #CCC;
64 padding: 1em;
65 background: #EEE;
66}
67
68.details {
69 font-weight: bold;
70 font-size: 14px;
71}
72
73</style>
74
75<h1><a href="factchecktools_v1alpha1.html">Fact Check Tools API</a> . <a href="factchecktools_v1alpha1.claims.html">claims</a></h1>
76<h2>Instance Methods</h2>
77<p class="toc_element">
78 <code><a href="#search">search(maxAgeDays=None, languageCode=None, pageSize=None, query=None, x__xgafv=None, pageToken=None, reviewPublisherSiteFilter=None, offset=None)</a></code></p>
79<p class="firstline">Search through fact-checked claims.</p>
80<p class="toc_element">
81 <code><a href="#search_next">search_next(previous_request, previous_response)</a></code></p>
82<p class="firstline">Retrieves the next page of results.</p>
83<h3>Method Details</h3>
84<div class="method">
85 <code class="details" id="search">search(maxAgeDays=None, languageCode=None, pageSize=None, query=None, x__xgafv=None, pageToken=None, reviewPublisherSiteFilter=None, offset=None)</code>
86 <pre>Search through fact-checked claims.
87
88Args:
89 maxAgeDays: integer, The maximum age of the returned search results, in days.
90Age is determined by either claim date or review date, whichever is newer.
91 languageCode: string, The BCP-47 language code, such as "en-US" or "sr-Latn". Can be used to
92restrict results by language, though we do not currently consider the
93region.
94 pageSize: integer, The pagination size. We will return up to that many results. Defaults to
9510 if not set.
96 query: string, Textual query string. Required unless `review_publisher_site_filter` is
97specified.
98 x__xgafv: string, V1 error format.
99 Allowed values
100 1 - v1 error format
101 2 - v2 error format
102 pageToken: string, The pagination token. You may provide the `next_page_token` returned from a
103previous List request, if any, in order to get the next page. All other
104fields must have the same values as in the previous request.
105 reviewPublisherSiteFilter: string, The review publisher site to filter results by, e.g. nytimes.com.
106 offset: integer, An integer that specifies the current offset (that is, starting result
107location) in search results. This field is only considered if `page_token`
108is unset. For example, 0 means to return results starting from the first
109matching result, and 10 means to return from the 11th result.
110
111Returns:
112 An object of the form:
113
114 { # Response from searching fact-checked claims.
115 "nextPageToken": "A String", # The next pagination token in the Search response. It should be used as the
116 # `page_token` for the following request. An empty value means no more
117 # results.
118 "claims": [ # The list of claims and all of their associated information.
119 { # Information about the claim.
120 "claimDate": "A String", # The date that the claim was made.
121 "claimReview": [ # One or more reviews of this claim (namely, a fact-checking article).
122 { # Information about a claim review.
123 "languageCode": "A String", # The language this review was written in. For instance, "en" or "de".
124 "publisher": { # Information about the publisher. # The publisher of this claim review.
125 "site": "A String", # Host-level site name, without the protocol or "www" prefix. For instance,
126 # "awesomefactchecks.com". This value of this field is based purely on the
127 # claim review URL.
128 "name": "A String", # The name of this publisher. For instance, "Awesome Fact Checks".
129 },
130 "url": "A String", # The URL of this claim review.
131 "reviewDate": "A String", # The date the claim was reviewed.
132 "title": "A String", # The title of this claim review, if it can be determined.
133 "textualRating": "A String", # Textual rating. For instance, "Mostly false".
134 },
135 ],
136 "text": "A String", # The claim text. For instance, "Crime has doubled in the last 2 years."
137 "claimant": "A String", # A person or organization stating the claim. For instance, "John Doe".
138 },
139 ],
140 }</pre>
141</div>
142
143<div class="method">
144 <code class="details" id="search_next">search_next(previous_request, previous_response)</code>
145 <pre>Retrieves the next page of results.
146
147Args:
148 previous_request: The request for the previous page. (required)
149 previous_response: The response from the request for the previous page. (required)
150
151Returns:
152 A request object that you can call 'execute()' on to request the next
153 page. Returns None if there are no more items in the collection.
154 </pre>
155</div>
156
157</body></html>