Google Code offered in: English - Español - 日本語 - 한국어 - Português - Pусский - 中文(简体) - 中文(繁體)
As a testing and debugging aid, the Social Graph API includes an API to run any document against the Social Graph API's internal parser to see what it would've parsed, had Googlebot actually crawled it.
You, as a developer, send along the hypothetical URL, Content-Type header, and document body, and the Social Graph API returns the list of parsed attributes and edges.
Note that the included URL is not fetched by Google. This is both to prevent abuse and to support people working on unreleased versions of social websites at unreachable internal addresses (e.g. localhost, 10.0.0.0/8).
Note also that this is still a read-only API. A call to this method is not a recrawl request, doesn't mutate the graph, etc. It's purely a debugging and testing aid.
Use of the testparse method is limited to casual testing during the course of development. Applications shouldn't depend on this method. It's subject to change at any time and isn't as supported as the main lookup method.
To use the Social Graph API test parser, do a POST request to the following URL:
http://socialgraph.apis.google.com/testparse
The following is a summary of the available POST parameters:
| Parameter | Type | Short Description |
|---|---|---|
url |
string | Required. The hypothetical URL. (will not be crawled; see notes above) |
body |
string | Required. The document body. |
contentType |
string | Required. The Content-Type header, possibly including a charset. |
urlFormat |
string | Optional. One of "raw", "sgn", or "base".
Defaults to "base".
|
The response is a JSON dictionary with two keys: attributes and edges.
The following are some ready-to-use tools that use this API:
Confused about what you're seeing? Find a bug? Have a suggestion? Join the the group mailing list.