Difference between revisions of "Search API"
(New page: some notes i have... http://search.secondlife.com/client_search.php? http://secondlife.com/app/search/search_proxy.php? q= [search for something here] &start= [(page - 1) * 10] q - keyw...) |
|||
Line 1: | Line 1: | ||
__TOC__ | |||
= API Guide = | |||
<div id="box"> | |||
== What is it? == | |||
<div style="padding: 0.5em"> | |||
The Second Life Search API allows you to search the virtual world of Second Life for Events, Groups, People, Places, and this Wiki . | |||
</div> | |||
</div> | |||
http://search.secondlife.com/client_search.php? | == Getting Started == | ||
http://secondlife.com/app/search/search_proxy.php? | |||
The Second Life Search API is currently using a Google search appliance as the core of the API. You can search against the world using a standard web browser. | |||
Two URL's may be used as follows: | |||
http://search.secondlife.com/client_search.php?q=Your_text_here | |||
http://secondlife.com/app/search/search_proxy.php?q=Your_text_here | |||
== Paging == | |||
Each query will return 10 results at the most. The parameter passed for paging is "start". This is a zero-based index identifying what record to start with. To view page 1, the following URL may be used. | |||
q= [search for something here] &start= [(page - 1) * 10] | q= [search for something here] &start= [(page - 1) * 10] | ||
q | '''Page 1''' | ||
http://search.secondlife.com/client_search.php?q=Your_text_here&start=0 | |||
'''Page 2''' | |||
http://search.secondlife.com/client_search.php?q=Your_text_here&start=10 | |||
'''Page 3''' | |||
http://search.secondlife.com/client_search.php?q=Your_text_here&start=20 | |||
''Note'' | |||
Any results after page 100 will return nothing. | |||
t - n - Guessing teen grid. Teen = Y, Adult = N. Without proper session, defaults to N? | t - n - Guessing teen grid. Teen = Y, Adult = N. Without proper session, defaults to N? | ||
session - 00000000-0000-0000-0000-000000000000 - session of avatar looking at results. changes with each login. | session - 00000000-0000-0000-0000-000000000000 - session of avatar looking at results. changes with each login. | ||
Line 38: | Line 66: | ||
Connection: keep-alive | Connection: keep-alive | ||
Cookie: __utmz=########.##########.#.#.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=########.##################.##########.##########.##########.###; __utmc=######## | Cookie: __utmz=########.##########.#.#.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=########.##################.##########.##########.##########.###; __utmc=######## | ||
{{:API Portal/navigation | |||
|style=style="float:right;width:15em;padding-bottom:1em;"}} |
Revision as of 21:37, 3 September 2008
API Guide
What is it?
The Second Life Search API allows you to search the virtual world of Second Life for Events, Groups, People, Places, and this Wiki .
Getting Started
The Second Life Search API is currently using a Google search appliance as the core of the API. You can search against the world using a standard web browser. Two URL's may be used as follows:
http://search.secondlife.com/client_search.php?q=Your_text_here http://secondlife.com/app/search/search_proxy.php?q=Your_text_here
Paging
Each query will return 10 results at the most. The parameter passed for paging is "start". This is a zero-based index identifying what record to start with. To view page 1, the following URL may be used.
q= [search for something here] &start= [(page - 1) * 10]
Page 1 http://search.secondlife.com/client_search.php?q=Your_text_here&start=0
Page 2 http://search.secondlife.com/client_search.php?q=Your_text_here&start=10
Page 3 http://search.secondlife.com/client_search.php?q=Your_text_here&start=20
Note Any results after page 100 will return nothing.
t - n - Guessing teen grid. Teen = Y, Adult = N. Without proper session, defaults to N?
session - 00000000-0000-0000-0000-000000000000 - session of avatar looking at results. changes with each login.
x - position of avatar on X axis
y - position of avatar on Y axis
z - position of avatar on Z axis
m - n - Y = Mature, N = PG
region - name of current region avatar is occupying
s - filter results by category - All, Events, Groups, People, Places, Wiki
lang - Language for user interface. en-us is English for United States.
start - 0 - first row to start at (zero based index) site - default_collection - not sure. guessing might be "All" type of search. hl - en - language lr - unknown ie - UTF-8 - text encoding output - xml_no_dtd - xml results from appliance client - raw_xml_frontend - transform into xml results for user agent access - p - unknown sort - date:D:L:d1 - sort by date, lindens, object date? sa - N - unknown filter - 0 - unknown dbg - 0 - debug information?
Host: search.secondlife.com
User-Agent: Mozilla/5.0 (Windows; U; Windows NT 6.0; chrome://navigator/locale/navigator.properties; rv:1.8.1.13) Gecko/20080314 SecondLife/1.20.15.92456 (Second Life Release; silver skin)
Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q=0.8,image/png,*/*;q=0.5
Accept-Encoding: gzip,deflate
Keep-Alive: 300
Connection: keep-alive
Cookie: __utmz=########.##########.#.#.utmcsr=(direct)|utmccn=(direct)|utmcmd=(none); __utma=########.##################.##########.##########.##########.###; __utmc=########