blob: 2ed839deb6c74d566631d7551823b2162756b207 [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">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070078 <code><a href="#close">close()</a></code></p>
79<p class="firstline">Close httplib2 connections.</p>
80<p class="toc_element">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080081 <code><a href="#search">search(languageCode=None, maxAgeDays=None, offset=None, pageSize=None, pageToken=None, query=None, reviewPublisherSiteFilter=None, x__xgafv=None)</a></code></p>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070082<p class="firstline">Search through fact-checked claims.</p>
83<p class="toc_element">
84 <code><a href="#search_next">search_next(previous_request, previous_response)</a></code></p>
85<p class="firstline">Retrieves the next page of results.</p>
86<h3>Method Details</h3>
87<div class="method">
Dmitry Frenkel3e17f892020-10-06 16:46:05 -070088 <code class="details" id="close">close()</code>
89 <pre>Close httplib2 connections.</pre>
90</div>
91
92<div class="method">
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -080093 <code class="details" id="search">search(languageCode=None, maxAgeDays=None, offset=None, pageSize=None, pageToken=None, query=None, reviewPublisherSiteFilter=None, x__xgafv=None)</code>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -070094 <pre>Search through fact-checked claims.
95
96Args:
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080097 languageCode: string, The BCP-47 language code, such as &quot;en-US&quot; or &quot;sr-Latn&quot;. Can be used to restrict results by language, though we do not currently consider the region.
Yoshi Automation Botc2228be2020-11-24 15:48:03 -080098 maxAgeDays: integer, The maximum age of the returned search results, in days. Age is determined by either claim date or review date, whichever is newer.
Yoshi Automation Bot0d561ef2020-11-25 07:50:41 -080099 offset: integer, An integer that specifies the current offset (that is, starting result location) in search results. This field is only considered if `page_token` is unset. For example, 0 means to return results starting from the first matching result, and 10 means to return from the 11th result.
Yoshi Automation Bot0bf565c2020-12-09 08:56:03 -0800100 pageSize: integer, The pagination size. We will return up to that many results. Defaults to 10 if not set.
101 pageToken: string, The pagination token. You may provide the `next_page_token` returned from a previous List request, if any, in order to get the next page. All other fields must have the same values as in the previous request.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800102 query: string, Textual query string. Required unless `review_publisher_site_filter` is specified.
103 reviewPublisherSiteFilter: string, The review publisher site to filter results by, e.g. nytimes.com.
Bu Sun Kim65020912020-05-20 12:08:20 -0700104 x__xgafv: string, V1 error format.
105 Allowed values
106 1 - v1 error format
107 2 - v2 error format
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700108
109Returns:
110 An object of the form:
111
112 { # Response from searching fact-checked claims.
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800113 &quot;claims&quot;: [ # The list of claims and all of their associated information.
114 { # Information about the claim.
115 &quot;claimDate&quot;: &quot;A String&quot;, # The date that the claim was made.
116 &quot;claimReview&quot;: [ # One or more reviews of this claim (namely, a fact-checking article).
117 { # Information about a claim review.
118 &quot;languageCode&quot;: &quot;A String&quot;, # The language this review was written in. For instance, &quot;en&quot; or &quot;de&quot;.
119 &quot;publisher&quot;: { # Information about the publisher. # The publisher of this claim review.
120 &quot;name&quot;: &quot;A String&quot;, # The name of this publisher. For instance, &quot;Awesome Fact Checks&quot;.
121 &quot;site&quot;: &quot;A String&quot;, # Host-level site name, without the protocol or &quot;www&quot; prefix. For instance, &quot;awesomefactchecks.com&quot;. This value of this field is based purely on the claim review URL.
Bu Sun Kim4ed7d3f2020-05-27 12:20:54 -0700122 },
Yoshi Automation Botcc94ec82021-01-15 07:10:04 -0800123 &quot;reviewDate&quot;: &quot;A String&quot;, # The date the claim was reviewed.
124 &quot;textualRating&quot;: &quot;A String&quot;, # Textual rating. For instance, &quot;Mostly false&quot;.
125 &quot;title&quot;: &quot;A String&quot;, # The title of this claim review, if it can be determined.
126 &quot;url&quot;: &quot;A String&quot;, # The URL of this claim review.
127 },
128 ],
129 &quot;claimant&quot;: &quot;A String&quot;, # A person or organization stating the claim. For instance, &quot;John Doe&quot;.
130 &quot;text&quot;: &quot;A String&quot;, # The claim text. For instance, &quot;Crime has doubled in the last 2 years.&quot;
131 },
132 ],
133 &quot;nextPageToken&quot;: &quot;A String&quot;, # The next pagination token in the Search response. It should be used as the `page_token` for the following request. An empty value means no more results.
134}</pre>
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700135</div>
136
137<div class="method">
138 <code class="details" id="search_next">search_next(previous_request, previous_response)</code>
139 <pre>Retrieves the next page of results.
140
141Args:
142 previous_request: The request for the previous page. (required)
143 previous_response: The response from the request for the previous page. (required)
144
145Returns:
Bu Sun Kim65020912020-05-20 12:08:20 -0700146 A request object that you can call &#x27;execute()&#x27; on to request the next
Bu Sun Kim715bd7f2019-06-14 16:50:42 -0700147 page. Returns None if there are no more items in the collection.
148 </pre>
149</div>
150
151</body></html>