<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>Kathar.in &#187; SearchAPI</title>
	<atom:link href="http://kathar.in/category/searchapi/feed/" rel="self" type="application/rss+xml" />
	<link>http://kathar.in</link>
	<description>(With an E on the end)</description>
	<lastBuildDate>Thu, 15 Dec 2011 05:05:23 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>JSON API Tweaked + example data</title>
		<link>http://kathar.in/2007/12/json-api-tweaked-example-data/</link>
		<comments>http://kathar.in/2007/12/json-api-tweaked-example-data/#comments</comments>
		<pubDate>Sun, 02 Dec 2007 11:44:20 +0000</pubDate>
		<dc:creator>Katharine Berry</dc:creator>
				<category><![CDATA[Development]]></category>
		<category><![CDATA[SearchAPI]]></category>
		<category><![CDATA[Glitch]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[search]]></category>
		<category><![CDATA[Second Life]]></category>

		<guid isPermaLink="false">http://blog.katharineberry.co.uk/2007/12/02/json-api-tweaked-example-data/</guid>
		<description><![CDATA[I&#8217;ve altered the SL Search API to always return the &#8220;url&#8221; field, and also replaced the &#8220;uuid&#8221; field for events (which returned incorrect data) with an &#8220;id&#8221; field that correctly marks the ID. All current bugs in regards to returning blank or null fields have been fixed. In addition, I have added to the URLs [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve altered the SL Search API to always return the &#8220;url&#8221; field, and also replaced the &#8220;uuid&#8221; field for events (which returned incorrect data) with an &#8220;id&#8221; field that correctly marks the ID.</p>
<p>All current bugs in regards to returning blank or null fields have been fixed. In addition, I have added to the URLs for the search (actually it did this before, but I forgot to document it)</p>
<p>It can now accept the following format:</p>
<p>http://services.katharineberry.co.uk/search/search/<em>(main|teen|mature)</em><em><strong>[/(all|classifieds|events|groups|people|places|wiki)]</strong></em>/<em>search+term</em><em>[/page-number]</em></p>
<p>The new parameter is in bold, and is entirely optional. It sets the category through which to search. Some example URLs:</p>
<p><a href="http://services.katharineberry.co.uk/search/search/teen/test+search">http://services.katharineberry.co.uk/search/search/teen/test+search</a> &#8211; A search for &#8220;test search&#8221; on the TG<br />
<a href="http://services.katharineberry.co.uk/search/search/teen/groups/Group">http://services.katharineberry.co.uk/search/search/teen/groups/Group</a> &#8211; A search for &#8220;Group&#8221; in all TG groups<br />
<a href="http://services.katharineberry.co.uk/search/search/teen/places/Land/2">http://services.katharineberry.co.uk/search/search/teen/places/Land/2</a> &#8211; Page 2 (results 11-20) of a search for &#8220;Land&#8221; in all TG places<br />
<a href="http://services.katharineberry.co.uk/search/search/main/test+search">http://services.katharineberry.co.uk/search/search/main/test+search</a> &#8211; A search for &#8220;test search&#8221; on the MG<br />
<a href="http://services.katharineberry.co.uk/search/search/mature/test+search">http://services.katharineberry.co.uk/search/search/mature/test+search</a> &#8211; A search for &#8220;test search&#8221; on the MG, with mature results enabled.</p>
<p><span id="more-172"></span></p>
<p>Search results will now return an object that looks something like this (ficticious search):</p>
<pre>
{
    success: true,
    results: [
        {
            type: "wiki",
            url: "http://wiki.secondlife.com/wiki/Some_wiki_page",
            name: "Some wiki page",
            summary: "Excerpt from some wiki page..."
        },
        {
            type: "place",
            uuid: "e7b6d188-9f88-7a04-c066-4caa8e2b3fb6",
            url: "http://teen.world.secondlife.com/place/e7b6d188-9f88-7a04-c066-4caa8e2b3fb6",
            name: "Teen Grid's Party Event Area",
            summary: "Host parties for new coming/outgoing friends! Or just chill, hangout and relax!"
        },
        {
            "type":"event",
            "id":"1234567",
            "url":"http://teen.world.secondlife.com/event/1234567",
            "name":"Sample Event",
            "summary":"This is a test event that doesn't actually exist."
        }
    ]
}
</pre>
<p>Residents, places, groups and classifieds will follow the format of &#8220;place&#8221; above. Events will follow that of &#8220;event&#8221; above.</p>
<p>Everything else will be in the format of the &#8220;wiki&#8221; entry.</p>
<p>Data from <code>/place/</code> looks like this (edited output from.. oops, lost the URL):</p>
<pre>
{
    success:true,
    name: "Teen Grid's Party Event Area",
    image: "9a7e13c0-b8bc-1885-9183-a2123c5c5dbb",
    category: "Linden Location",
    region: {
        name: "Dougall",
        uuid: "236910c3-cc59-ae3d-3594-4c2bdf9bc3b8"
    },
    position: {
        x: 187,
        y: 64,
        z: 31
    },
    description: "Host parties for new coming/outgoing friends! Or just chill, hangout and relax! Host all your parties here!",
    owner: {
        group: false,
        name: "Governor Linden",
        uuid: 3d6181b0-6a4b-97ef-18d8-722652995cf1
    },
    objects: [
        [
            {
                price: 10,
                name: "Test Object",
                description:"Object added to show object result format",
                position: {
                    x: 141,
                    y: 37,
                    z: 28
            }
        }
    ]
}
</pre>
<p>Resident results look like this (edited output from <a href="http://services.katharineberry.co.uk/search/resident/16459c45-227a-4a4a-ac4c-5badfac9ac65">http://services.katharineberry.co.uk/search/resident/16459c45-227a-4a4a-ac4c-5badfac9ac65</a>):</p>
<pre>
{
    success: true,
    name: "Alister Harrington",
    image: "00000000-0000-0000-0000-000000000000", /* Were this person to have a profile image, it would be here. */
    description: "Alister Harrington - Well, I'm Alister.  I'm 15, I make boats.  That's about it really.",
    born: "2005-06-08",
    picks: [
        {
            uuid: "09545df4-0fae-7561-7473-d11c164d7c71", /* These UUIDs are places - although many of them don't seem to work. */
            name: "1 - First poast.",
            description: "And it rocks."
        },
        {
            uuid: "b1f87754-5ac3-d96a-8ff1-ccb7240f3489",
            name: "8 - Quotes 7",
            description: "[Storm at the Eye4You College Fair]

[13:31]  Storm Basiat: So
[13:31]  Stephanie Carducci is Online
[13:31]  Saryn Fanwood: sometimes I wonder
[13:31]  Saryn Fanwood: <img src='http://kathar.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
[13:31]  Storm Basiat: Welcome to another speach
[13:31]  Libby Beam: <img src='http://kathar.in/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' />
[13:32]  Storm Basiat: We will try and make this quick as possable as i hate speaches
[13:32]  Storm Basiat: becuase im crap at it"
        }
    ]
}
</pre>
<p>Classifieds look like this: (from <a href="http://services.katharineberry.co.uk/search/classified/149b8d14-53e6-d125-53e8-4f64c5435623">http://services.katharineberry.co.uk/search/classified/149b8d14-53e6-d125-53e8-4f64c5435623</a>)</p>
<pre>
{
    success: true,
    name: "Wolf Quadrupeds!",
    image: "4c76a073-affd-9b69-0016-923296a79a84",
    description: "One of the most realistic wolf quad's on the Teen Grid!
comes in black, brown, white and grey
change the color of the eyes with a command
and change the direction of the ears with a hud ^.^
price, 800L

Now selling limited halloween wolf quads!
comes with fangs, wings horns and glowing eyes >:D
comes in green, purple, orange, yellow and pink.
price, 700L

key words: wolf avatar avatars wolves animals furry furries av avies nature halloween costume",
    price: 200,
    region: {
        uuid: "ccb75d6a-13c1-edbb-bf00-c70b65e50117",
        name: "Nailsworth"
    },
    place: {
        uuid: "0973bff5-dd79-89c6-f409-38f4a47afd8c",
        name: "Wolf's Territory"
    },
    creator: {
        uuid: "0ea431a3-0a7c-41b4-af8b-e658e3aec93a",
        name: "Blue Newcomb"
    },
    position: {
        x: 101,
        y: 218,
        z: 49
    }
}
</pre>
<p>Region data looks like this (from <a href="http://services.katharineberry.co.uk/search/region/ccb75d6a-13c1-edbb-bf00-c70b65e50117">http://services.katharineberry.co.uk/search/region/ccb75d6a-13c1-edbb-bf00-c70b65e50117</a>):</p>
<pre>
{
    success: true,
    parcels: [
        {
            uuid: "36c1e094-4b2b-06cc-eb3d-74eb5c3baf6d",
            name: "Devin Jordans Dezines",
            position: {
                x: 26,
                y: 22,
                z: 22
            }
        },
        {
            uuid: "93f4d010-5158-fa12-76dd-07570d3354d0",
            name: "HOUSEING DISTRICT",
            position: {
                x: 140,
                y: 227,
                z: 52
            }
        },
        {
            uuid: "e91c73c9-7d70-7f04-f205-61fec9e3329f",
            name: "Beautiful Waterfront Land",
            position: {
                x: 157,
                y: 69,
                z: 26
            }
        }
    ],
    name: "Nailsworth"
}

Events look like this (from <a href="http://services.katharineberry.co.uk/search/event/1030959">http://services.katharineberry.co.uk/search/event/1030959</a>)
</pre>
<pre>
{
    success: true,
    name: "Party@Club Red Inferno",
    category: "Nightlife/Entertainment",
    description: "come party at club red inferno and help us raise money to keep the land",
    rating: "PG",
    time: 1196535600,
    length: 10800, /* This is in seconds. */
    host: {
        uuid: "b5fa82fa-ec0a-42dd-beac-be417dcdc91a",
        name: "SkullKing Kidd"
    },
    region: {
        uuid: "8264f163-71b7-fe56-80c6-e5163a2c5bdb",
        name: "Bull"
    },
    place: {
        uuid: "fff021c9-6bc1-d67e-6caa-540f74924f9d",
        name: "CLUB RED INFERNO"
    },
    position: {
        x: 151,
        y: 15,
        z: 21
    }
}
</pre>
<p>This is a group (<a href="http://services.katharineberry.co.uk/search/group/6e9aa3c7-131e-0a99-f282-2d00e4ed69e8">http://services.katharineberry.co.uk/search/group/6e9aa3c7-131e-0a99-f282-2d00e4ed69e8</a> &#8211; first result for a search for &#8220;group&#8221; in the category &#8220;groups&#8221;)</p>
<pre>
{
    success: true,
    name: "Info Trade Business Group",
    image: "3cb1f189-9700-7f04-0b18-3fc8c9555723",
    members: 203,
    founder: {
        uuid: "c4bf9d63-f318-4799-8497-b4a7fcd89ec2",
        name: "Gabe Gallacher"
    }
}
</pre>
<p>Note that many (if not all) TG groups seem to be missing for some reason. LL&#8217;s fault, not mine.</p>
<p>Popular places (from <a href="http://services.katharineberry.co.uk/search/popular/teen/5">http://services.katharineberry.co.uk/search/popular/teen/5</a>)</p>
<pre>
{
    success: true,
    results: [
        {
            uuid: "e1549fee-b9c6-1da0-47db-00aefc4eee51",
            name: "Sandbox Cleans every 3 hours. SAVE WORK-NO WARNING",
            traffic: 9796
        },
        {
            uuid: "29563825-a6e5-5e56-2e2a-5605df6f114e",
            name: "Jeffrey Land",
            traffic: 7330
        },
        {
            uuid: "213a5ed6-7d5f-cf0f-1f95-e78d0c900668",
            name: "^ [ Atticus Tech Sky Mall ] ^ - Look Up - Vacancy 2nd floor",
            traffic: 6253
        },
        {
            uuid: "6e93da51-07b8-574e-c615-c5d9fe805809",
            name: "Sandbox Cleans every 3 hours. SAVE WORK-NO WARNING",
            traffic: 5961
        },
        {
            uuid: "260633c8-6287-4b51-aa54-4d00ff6c2bbb",
            name: "WEAPONS TESTING SANDBOX - Wipes every 3 hours",
            traffic: 5872
        }
    ]
}
</pre>
]]></content:encoded>
			<wfw:commentRss>http://kathar.in/2007/12/json-api-tweaked-example-data/feed/</wfw:commentRss>
		<slash:comments>11</slash:comments>
		</item>
		<item>
		<title>JSON SL Search API</title>
		<link>http://kathar.in/2007/12/json-sl-search-api/</link>
		<comments>http://kathar.in/2007/12/json-sl-search-api/#comments</comments>
		<pubDate>Sat, 01 Dec 2007 01:41:23 +0000</pubDate>
		<dc:creator>Katharine Berry</dc:creator>
				<category><![CDATA[AjaxLife]]></category>
		<category><![CDATA[Development]]></category>
		<category><![CDATA[SearchAPI]]></category>
		<category><![CDATA[Second Life]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[JSON]]></category>
		<category><![CDATA[search]]></category>

		<guid isPermaLink="false">http://blog.katharineberry.co.uk/2007/12/01/json-sl-search-api/</guid>
		<description><![CDATA[I&#8217;ve made a JSON-based interface to the new SL search, which provides access to all data available (I think). All the methods have the base URL http://services.katharineberry.co.uk/search/. Firstly, the search itself. This provides acccess to either MG or TG search, and provides information about all results on the page. It also supports specifying a page. [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve made a JSON-based interface to the new SL search, which provides access to all data available (I think).</p>
<p>All the methods have the base URL http://services.katharineberry.co.uk/search/.</p>
<p>Firstly, the search itself. This provides acccess to either MG or TG search, and provides information about all results on the page. It also supports specifying a page.</p>
<p>The format is as follows:</p>
<p>http://services.katharineberry.co.uk/search/search/<em>(teen|main|mature)</em>/<em>search+string[/page-number]</em></p>
<p>The /page-number must be an integer, and is optional. If you use &#8220;teen&#8221; you get TG results, &#8220;main&#8221; gives MG results, and &#8220;mature&#8221; gives MG results with mature enabled. The output, assuming you know what JSON is, is fairly self-explanatory.</p>
<p>Additionally, you can access a bunch of other data:</p>
<p>http://services.katharineberry.co.uk/search/classified/<em>required-uuid</em></p>
<p>http://services.katharineberry.co.uk/search/place/<em>required-uuid</em></p>
<p>http://services.katharineberry.co.uk/search/resident/<em>required-uuid</em></p>
<p>http://services.katharineberry.co.uk/search/region/<em>required-uuid</em></p>
<p>http://services.katharineberry.co.uk/search/event/<em>eventid</em></p>
<p>http://services.katharineberry.co.uk/search/group<em>/required-uuid</em></p>
<p>Excluding events, all of the above expect a UUID in place of &#8220;required-uuid&#8221;. They can take both hyphenated and unhyphenated UUIDs. Events expect an Event ID, which are currently seven digit integers.</p>
<p>It can also pick out up to the top 100 popular places (I could do more &#8211; up to 50,000 &#8211; but capped it at 100 to save my server from certain death). The format for this is as follows:</p>
<p>http://services.katharineberry.co.uk/search/popular/<em>(main|teen)</em>/<em>count</em></p>
<p>Using &#8220;main&#8221; gets MG data, &#8220;teen&#8221; gets TG data. &#8220;count&#8221; specifies the number of results to be returned.</p>
<p>Finally, as a bonus feature, if you have a key and have no idea what it&#8217;s for, put it in like this:</p>
<p>http://services.katharineberry.co.uk/search/<em>unknown-uuid</em></p>
<p>This will make it search through the classifieds, parcels, residents, regions, events, groups, and textures. If it&#8217;s any of the above (except textures) it&#8217;ll return the same output as the standard services, with the added property &#8220;uuidtype&#8221; being set to one of the above. If it was a texture you only get the uuidtype. Please note that this takes several seconds to run, and is a relatively heavy job for my server.</p>
<p>I hope someone finds some use for this. Personally, I plan to use it in AjaxLife.</p>
]]></content:encoded>
			<wfw:commentRss>http://kathar.in/2007/12/json-sl-search-api/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

