See this guide for how to create a mirror of the WordPress.org SVN repositories.
WP.org hosts the API at api.wordpress.org (documented in the old wiki) which is accessed by WP installations via HTTP on older servers that can't do latest HTTPS crypto or upgraded to HTTPS requests on all other server.
Only some of the API source code is available at:
- GitHub https://github.com/WordPress/wordpress.org/tree/49f200e6a5e2ad97ca87213db239db5f7bea322d/api.wordpress.org
- SVN https://meta.svn.wordpress.org/sites/trunk/api.wordpress.org/
Note: I haven't been able to find the source code serving the core/version-check or [themes|plugins]/update-check endpoints!
WP core checks for various updates to the following WP.org API endpoints:
Misc:
- https://api.wordpress.org/secret-key/1.1/salt/ (source and source) --
GETrequest with no payload. - https://api.wordpress.org/events/1.0/ (source) --
GETrequest with WP versionuser-agentand location arguments. - https://api.wordpress.org/core/handbook/1.0/ (source and source) front-end only (not called by the server)
Patterns:
- http://api.wordpress.org/patterns/1.0/ (source)
GETrequest.
Core:
- http://api.wordpress.org/core/credits/1.1/ (source)
- http://api.wordpress.org/core/browse-happy/1.1/ (source)
- http://api.wordpress.org/core/serve-happy/1.0/ (source)
- http://api.wordpress.org/core/importers/1.1/ (source)
- http://api.wordpress.org/core/checksums/1.0/ (source)
- http://api.wordpress.org/core/version-check/1.7/ (source)
POSTrequest withwp_install(network site URL or home URL) andwp_blog(home URL) headers.
Plugins:
- http://api.wordpress.org/plugins/info/1.2/ (source)
- http://api.wordpress.org/plugins/update-check/1.1/ (source)
POSTrequest with the following body[ 'plugins' => [ ... ], 'translations' => [ ... ], 'locale' => '...', 'all' => true ].
Themes:
- http://api.wordpress.org/themes/info/1.2/ (source)
- http://api.wordpress.org/themes/update-check/1.1/ (source)
Translations:
@modiqi Oh, this is great! Thanks for sharing!