Switch language
wpseek on Twitter


A WordPress-centric search engine for devs and theme authors

API

Generally speaking, you will send a method parameter expressed as 'package.method' along with method specific arguments to the URL http://api.wpseek.com/.


There's a jQuery plugin using the wpseek API available!


API » wordpress.getInfo

Get information about latest WordPress release
e.g. http://api.wpseek.com/?method=wordpress.getinfo

Parameters

None

Sample Resonse (JSON)

({
  "version": "2.8.4",
  "releaseDate": "12.08.2009",
  "releaseDate_tstamp": 1250028000,
  "infoURI": "http:\/\/wordpress.org\/development\/2009\/08\/[...]\/",
  "downloadURI": "http:\/\/wordpress.org\/wordpress-2.8.4.zip"
});

Formats

JSON



API » wordpress.getFunction

Parameters

s (required) - The requested function or Template Tag

Sample Resonse (JSON)

({
  "status": "ok",
  "method": "wordpress.getfunction",
  "readme": "http:\/\/wpseek.com\/api\/",
  "name": "get_post",
  "type": "WordPress Function",
  "introducedVer": "1.5.1",
  "droppedVer": null,
  "description": "Retrieves post data given a post ID or post object.",
  "longdescription": "<p>See {@link sanitize_post()} for optional $filter values. Also, the parameter\n$post, must be given as a variable, since it is passed by reference.<\/p>",
  "links": [
    "http:\/\/codex.wordpress.org\/Function_Reference\/get_post"
  ],
  "uses": [
    
  ],
  "see": [
    
  ],
  "params": [
    {
      "name": "$post",
      "type": "int|WP_Post",
      "desc": "Optional. Post ID or post object."
    },
    {
      "name": "$output",
      "type": "string",
      "desc": "Optional, default is Object. Either OBJECT, ARRAY_A, or ARRAY_N."
    },
    {
      "name": "$filter",
      "type": "string",
      "desc": "Optional, default is raw."
    }
  ],
  "return": [
    {
      "type": "WP_Post|null",
      "desc": "WP_Post on success or null on failure"
    }
  ],
  "definedat": [
    {
      "file": "wp-includes\/post.php",
      "line": 414
    }
  ],
  "codexURI": "http:\/\/codex.wordpress.org\/Function_Reference\/get_post"
});

Formats

JSON



API » wordpress.getFunctions

Parameters

output (optional) - Output type. Choose between 'json' or 'plain'. Defaults to 'json'.

Sample Resonse (JSON)

({
  "status": "ok",
  "method": "wordpress.getfunctions",
  "items": [
    "_",
    "__",
    "__checked_selected_helper",
    "__clear_multi_author_cache",
    "__get_option",
    "__ngettext",
    "__ngettext_noop",
    "__return_empty_array",
    "__return_false",
    [...]
  ]
});

Formats

JSON, Plain Text



API » wordpress.getSimilar

Parameters

s (required) - Part of a function name or Template Tag
limit (optional) - How many to return. Defaults and maxes out at 10.

Sample Resonse (JSON)

({
  "status": "ok",
  "term": "blog",
  "generator": "http:\/\/wpseek.com\/",
  "items": [
    {
      "name": "bloginfo_rss",
      "type": "WordPress Function"
    },
    {
      "name": "get_bloginfo_rss",
      "type": "WordPress Function"
    }
  ]
});

Formats

JSON



API » wordpress.getTopics

Get forum topics created on wordpress.org/support/
e.g. http://api.wpseek.com/?method=wordpress.gettopics&s=bloginfo&limit=2

Parameters

s (required) - The requested function or Template Tag
limit (optional) - How many to return. Defaults and maxes out at 10.

Sample Resonse (JSON)

({
  "status": "ok",
  "name": "bloginfo",
  "generator": "http:\/\/wordpress.org\/",
  "items": [
    {
      "title": "esmi on \"function help\"",
      "link": "http:\/\/wordpress.org\/support\/topic\/302279#post-1180442",
      "pubDate": "Wed, 19 Aug 2009 12:20:27 +0000",
      "description": "Can I first ask why you want to modify bloginfo? [...]"
    },
    {
      "title": "amit@vss on \"function help\"",
      "link": "http:\/\/wordpress.org\/support\/topic\/302279#post-1180408",
      "pubDate": "Wed, 19 Aug 2009 11:44:25 +0000",
      "description": "where is the bloginfo() function defined, can we modify it. [...]"
    }
  ]
});

Formats

JSON