blob: 623d00eb427c37c3e13c881224790d44f6d29589 [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">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070078 <code><a href="#search">search(pageSize=None, query=None, pageToken=None, reviewPublisherSiteFilter=None, maxAgeDays=None, languageCode=None, offset=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070079<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">
Bu Sun Kimd059ad82020-07-22 17:02:09 -070085 <code class="details" id="search">search(pageSize=None, query=None, pageToken=None, reviewPublisherSiteFilter=None, maxAgeDays=None, languageCode=None, offset=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070086 <pre>Search through fact-checked claims.
87
88Args:
Bu Sun Kimd059ad82020-07-22 17:02:09 -070089 pageSize: integer, The pagination size. We will return up to that many results. Defaults to
9010 if not set.
91 query: string, Textual query string. Required unless `review_publisher_site_filter` is
92specified.
93 pageToken: string, The pagination token. You may provide the `next_page_token` returned from a
94previous List request, if any, in order to get the next page. All other
95fields must have the same values as in the previous request.
Bu Sun Kim65020912020-05-20 12:08:20 -070096 reviewPublisherSiteFilter: string, The review publisher site to filter results by, e.g. nytimes.com.
Bu Sun Kimd059ad82020-07-22 17:02:09 -070097 maxAgeDays: integer, The maximum age of the returned search results, in days.
98Age is determined by either claim date or review date, whichever is newer.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -070099 languageCode: string, The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. Can be used to
100restrict results by language, though we do not currently consider the
101region.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700102 offset: integer, An integer that specifies the current offset (that is, starting result
103location) in search results. This field is only considered if `page_token`
104is unset. For example, 0 means to return results starting from the first
105matching result, and 10 means to return from the 11th result.
Bu Sun Kim65020912020-05-20 12:08:20 -0700106 x__xgafv: string, V1 error format.
107 Allowed values
108 1 - v1 error format
109 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700110
111Returns:
112 An object of the form:
113
114 { # Response from searching fact-checked claims.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700115 &quot;claims&quot;: [ # The list of claims and all of their associated information.
116 { # Information about the claim.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700117 &quot;claimant&quot;: &quot;A String&quot;, # A person or organization stating the claim. For instance, &quot;John Doe&quot;.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700118 &quot;text&quot;: &quot;A String&quot;, # The claim text. For instance, &quot;Crime has doubled in the last 2 years.&quot;
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700119 &quot;claimReview&quot;: [ # One or more reviews of this claim (namely, a fact-checking article).
120 { # Information about a claim review.
121 &quot;textualRating&quot;: &quot;A String&quot;, # Textual rating. For instance, &quot;Mostly false&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700122 &quot;languageCode&quot;: &quot;A String&quot;, # The language this review was written in. For instance, &quot;en&quot; or &quot;de&quot;.
123 &quot;title&quot;: &quot;A String&quot;, # The title of this claim review, if it can be determined.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700124 &quot;url&quot;: &quot;A String&quot;, # The URL of this claim review.
125 &quot;reviewDate&quot;: &quot;A String&quot;, # The date the claim was reviewed.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700126 &quot;publisher&quot;: { # Information about the publisher. # The publisher of this claim review.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700127 &quot;site&quot;: &quot;A String&quot;, # Host-level site name, without the protocol or &quot;www&quot; prefix. For instance,
128 # &quot;awesomefactchecks.com&quot;. This value of this field is based purely on the
129 # claim review URL.
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700130 &quot;name&quot;: &quot;A String&quot;, # The name of this publisher. For instance, &quot;Awesome Fact Checks&quot;.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700131 },
132 },
133 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700134 &quot;claimDate&quot;: &quot;A String&quot;, # The date that the claim was made.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700135 },
136 ],
Bu Sun Kimd059ad82020-07-22 17:02:09 -0700137 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next pagination token in the Search response. It should be used as the
138 # `page_token` for the following request. An empty value means no more
139 # results.
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700140 }</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:
Bu Sun Kim65020912020-05-20 12:08:20 -0700152 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700153 page. Returns None if there are no more items in the collection.
154 </pre>
155</div>
156
157</body></html>