Previous | Next |
All of the URLS are based on the root path, e.g.:
${fullurlroot}For querying sites you access:
${fullurlroot}/site/searchFor querying files you access:
${fullurlroot}/file/searchThe results can be returned in a variety of output formats using the "output" URL argument, e.g.:
${fullurlroot}/site/search?...&output=site.csvThe simplest way to see examples of this to make a Site query or a File query. In the result html page under Search Again -> Search Links is a list of the query results in the other formats available (e.g., CSV). You can just cut and paste the desired URL into your scripts.
The Repository Information page lists all of the URL arguments and their values for both site and file queries.
arg=p123&arg=p456Each argument may be a semi-colon delimited list of argument values:
arg=p123;p456Wild cards are supported:
arg=p12* - find values that begin with arg=*123 - find values that end with arg=*12* - find values that contain withAs well as negation:
arg=!p123Also, one can specify the string search type with the <arg>.searchtype argument. This can take on the values:
<arg>.searchtype=exact <arg>.searchtype=beginswith <arg>.searchtype=endswith <arg>.searchtype=contains
date value ≥ arg.from date value ≤ arg.toThe date string can be any of the following forms. See here for information.
yyyy-doy - year and 3 digit day of year yyyy-MM-ddTHH:mm:ss Z yyyyMMddTHHmmss Z yyyy/MM/dd HH:mm:ss Z yyyy-MM-dd HH:mm:ss Z EEE MMM dd HH:mm:ss Z yyyy yyyy-MM-ddTHH:mm:ss yyyyMMddTHHmmss yyyy/MM/dd HH:mm:ss yyyy-MM-dd HH:mm:ss yyyy-MM-ddTHH:mm Z yyyyMMddTHHmm Z yyyy/MM/dd HH:mm Z yyyy-MM-dd HH:mm Z yyyy-MM-ddTHH:mm yyyyMMddTHHmm yyyy/MM/dd HH:mm yyyy-MM-dd HH:mm yyyy-MM-dd yyyy/MM/dd yyyyMMdd yyyy-MM yyyyMM yyyy/MM yyyy nowIf a timezone is not specified then the date/time is assumed to be in UTC.
You can also specify values that are relative to the other date:
-1 week, +3 days, -1 month, etc.For example, to find the last 2 weeks of data from current time you would use:
arg.from=-2 weeks&arg.to=nowIf you wanted to search 3 days into the future:
arg.from=now&arg.to=+3 days
value ≥ arg.min value ≤ arg.max
<arg>.north <arg>.south <arg>.east <arg>.westThe values are assumed to be in degrees north (for latitude) and degrees east (for longitude). Not all arguments are needed. If specified the logic is:
site location latitude ≤ arg.north site location latitude ≥ arg.south site location longitude ≤ arg.east site location longitude ≥ arg.west
Previous | Next |