forked from yql/yql-tables
/
guardian.content.search.xml
28 lines (28 loc) · 1.06 KB
/
guardian.content.search.xml
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
<?xml version="1.0" encoding="UTF-8"?>
<table xmlns="http://query.yahooapis.com/v1/schema/table.xsd">
<meta>
<author>Josh Gordineer</author>
<description>Guardian Content Search API</description>
<sampleQuery>select * from {table} where q='environment'</sampleQuery>
</meta>
<bindings>
<select itemPath="search.results.content" produces="XML">
<urls>
<url>http://api.guardianapis.com/content/search</url>
</urls>
<paging model="offset">
<start id="start-index" default="0" />
<pagesize id="count" max="500" />
<total default="10" />
</paging>
<inputs>
<key id="q" type="xs:string" paramType="query" />
<key id="after" type="xs:string" paramType="query" />
<key id="before" type="xs:string" paramType="query" />
<key id="content-type" type="xs:string" paramType="query" />
<key id="filter" type="xs:string" paramType="query" />
<key id="api_key" type="xs:string" paramType="query" required="true" />
</inputs>
</select>
</bindings>
</table>