Public-api.wordpress.com: Difference between revisions

创建页面,内容为“== Overview == Basic Information * Title: public-api.wordpress.com/ How fast does public-api.wordpress.com load? * Fast (1.080 Seconds), 31% of sites are faster. == Sites Linking In == What sites link to public-api.wordpress.com? * Total Sites Linking In: 185 {| class="wikitable" |+ !Site !Page |- |wordpress.com |https://wordpress.com/theme/leven |- |mozilla.org |https://support.mozilla.org/ru/questions/1238250 |- |wordpress.org |https://meta.trac…”
 
No edit summary
 
Line 1: Line 1:
= Public-api.wordpress.com =
Public-api.wordpress.com is the domain used for accessing the WordPress.com REST API, which provides programmatic access to WordPress.com sites and data. Here's a comprehensive explanation of this API:
== Overview ==
== Overview ==


Basic Information
The WordPress.com REST API allows developers to interact with WordPress.com sites and data programmatically. It enables applications to read and write content, manage users, access site settings, and perform many other operations without needing direct database access or WordPress admin credentials[1].
 
== Key Features ==
 
1. JSON-based: The API uses JSON for data exchange, making it easy to work with in most programming languages[1].
 
2. Authentication: Supports various authentication methods, including OAuth 2.0 for secure access to private data[1].
 
3. Comprehensive Coverage: Provides access to most WordPress.com features, including posts, pages, comments, users, media, and more[1].
 
4. Versioning: The API is versioned to ensure backwards compatibility as new features are added[1].
 
5. Cross-Origin Resource Sharing (CORS): Supports CORS, allowing browser-based applications to make API requests[1].


* Title: public-api.wordpress.com/
== Endpoints ==


The API provides numerous endpoints for different resources. Some key endpoints include:


- `/sites/$site`: Access site information and settings
- `/sites/$site/posts`: Manage posts
- `/sites/$site/pages`: Manage pages
- `/sites/$site/comments`: Manage comments
- `/sites/$site/users`: Manage users
- `/sites/$site/media`: Manage media files[13]


== Authentication ==


How fast does public-api.wordpress.com load?
Most endpoints require authentication to access private data or perform write operations. The API supports:


* Fast (1.080 Seconds), 31% of sites are faster.
1. OAuth 2.0: For secure third-party access
2. Application Passwords: For simpler authentication in scenarios where OAuth is not needed
3. WordPress.com Authentication: For logged-in users on WordPress.com[1]


== Usage ==


To use the API, developers typically follow these steps:


1. Register an application on WordPress.com to obtain API credentials
2. Implement authentication in their application
3. Make HTTP requests to the appropriate endpoints
4. Handle the JSON responses in their application logic[1]


== Sites Linking In ==
== Benefits ==


What sites link to public-api.wordpress.com?
1. Headless CMS: Enables developers to use WordPress.com as a backend for custom front-end applications[17].
2. Mobile App Development: Facilitates the creation of mobile apps that interact with WordPress.com sites[17].
3. Integrations: Allows third-party services to integrate with WordPress.com sites easily[17].
4. Automation: Enables the creation of scripts and tools for bulk operations or automated workflows[17].


* Total Sites Linking In: 185
== Limitations ==


{| class="wikitable"
1. Rate Limits: The API has rate limits to prevent abuse, which developers need to be aware of[1].
|+
2. Functionality Differences: Some features available in the WordPress admin interface may not be fully accessible via the API[1].
!Site
!Page
|-
|wordpress.com
|https://wordpress.com/theme/leven
|-
|mozilla.org
|https://support.mozilla.org/ru/questions/1238250
|-
|wordpress.org
|https://meta.trac.wordpress.org/ticket/4852
|-
|chip.de
|https://praxistipps.chip.de/wordpress-autoren-bild-mit-gravatar-einrichten_32381
|-
|css-tricks.com
|https://css-tricks.com/frontity-is-react-for-wordpress
|-
|home.blog
|https://httpdoveunapoesiapuoarrivare.home.blog/
|-
|ionicframework.com
|https://forum.ionicframework.com/t/json-from-wordpress/37747
|-
|online-tech-tips.com
|https://online-tech-tips.com/web-site-tips/how-to-set-up-your-own-twitter-like-website-using-wordpress-p2-theme
|-
|jetpack.com
|https://jetpack.com/features/design/themes/showcase/glen
|-
|arturia.com
|https://forum.arturia.com/index.php?topic=14796.msg40744
|-
|really-simple-ssl.com
|https://really-simple-ssl.com/forums/topic/19-redirect
|-
|simplenote.com
|https://app.simplenote.com/login
|-
|bgr.com
|https://bgr.com/general/windows-mobile-live-comes-to-nokia-s60
|-
|cheatography.com
|https://cheatography.com/kayalshri/cheat-sheets/oauth-end-points
|-
|buddypress.org
|https://buddypress.org/support/topic/avatars-add-friend-button-not-working
|-
|jetpackcrm.com
|https://app.jetpackcrm.com/login
|-
|apps.wordpress.com
|https://apps.wordpress.com/d/osx
|-
|developer.wordpress.com
|https://developer.wordpress.com/docs/oauth2
|-
|backlink.work
|https://backlink.work/domain-list-8
|-
|wpde.org
|https://forum.wpde.org/threads/jetpack-teilen-funktion.178948
|}


== Contributing Subdomains ==
== Documentation and Resources ==
Where do visitors go on public-api.wordpress.com?
{| class="wikitable"
|+
!Subdomain
!Percent of Visitors
!Percent of PageViews
!PageViews Per User
|-
|public-api.wordpress.com
|100.00%%
|100.00%%
|1.1
|}


== Usage Statistics ==
WordPress.com provides extensive documentation for developers, including:
{| class="wikitable"
|+
!Data
!Rank
!Reach of PerMillion
!PageViews of PerMillion
!PageViews of PerUser
|-
|3-Month
|11306 (+1921)
|86.6 (-5.673%)
|2.55 (-5.379%)
|1.09 (+0.9%)
|-
|1-Month
|13290 (+2406)
|75 (-14.86%)
|2.2 (-14.49%)
|1.1 (+0.9%)
|-
|7-Day
|20626 (+6163)
|50 (-31.24%)
|1.5 (-28.23%)
|1.1 (+5%)
|-
|1-Day
|18128 (-16553)
|60 (+90%)
|2 (+100%)
|1 (+30%)
|}


== Traffic History ==
- API reference
{| class="wikitable"
- Authentication guides
|+
- Code examples
!Date
- SDKs for various programming languages
!Rank
- A developer console for testing API requests1<ref name="ref13">13</ref>
!Reach of PerMillion
!PageViews of PerMillion
!PageViews of PerUser
|-
|2019-12-14
|11025
|90
|3
|1.00
|-
|2019-12-15
|17688
|60
|2
|1.00
|-
|2019-12-16
|14358
|71
|2
|1.00
|-
|2019-12-17
|9608
|95
|3.1
|1.00
|-
|2019-12-18
|10930
|88
|2.5
|1.00
|-
|2019-12-19
|13634
|60
|2
|1.00
|-
|2019-12-20
|10847
|85
|2.7
|1.00
|-
|2019-12-21
|10588
|85
|2.9
|1.00
|-
|2019-12-22
|9294
|99
|3.4
|1.00
|-
|2019-12-23
|12289
|75
|2.5
|1.00
|-
|2019-12-24
|15664
|60
|1.9
|1.00
|-
|2019-12-25
|6655
|130
|5
|1.00
|-
|2019-12-26
|8339
|100
|3
|1.00
|-
|2019-12-27
|8247
|110
|3.4
|1.00
|-
|2019-12-28
|16685
|53
|2.1
|1.00
|-
|2019-12-29
|10136
|86
|3.4
|1.00
|-
|2019-12-30
|8952
|100
|3.2
|1.00
|-
|2019-12-31
|5823
|150
|4.7
|1.00
|-
|2020-01-01
|17619
|53
|1.9
|1.10
|-
|2020-01-02
|5385
|200
|5
|1.00
|-
|2020-01-03
|8483
|110
|3.4
|1.00
|-
|2020-01-04
|14177
|70
|2.2
|1.00
|-
|2020-01-05
|9023
|94
|3.7
|1.00
|-
|2020-01-06
|15524
|63
|1.8
|1.00
|-
|2020-01-07
|12477
|75
|2.4
|1.00
|-
|2020-01-08
|17184
|56
|1.7
|1.10
|-
|2020-01-09
|7030
|130
|4
|1.00
|-
|2020-01-10
|9909
|81
|3.5
|2.00
|-
|2020-01-11
|21416
|43
|1.5
|1.00
|-
|2020-01-12
|13358
|70
|2.4
|1.00
|-
|2020-01-13
|13964
|70
|2
|1.10
|}


== Data Source and Validity ==
== Comparison to WordPress.org REST API ==


The information is sourced from Amazon's Alexa Top Sites service. It's important to note that this service was discontinued as of May 15, 2022. The data presented is collected up to the final day of API interface availability, which was December 15, 2022.
While similar in many ways, the WordPress.com REST API is distinct from the WordPress REST API used in self-hosted WordPress installations. The WordPress.com version includes additional endpoints specific to WordPress.com features and services[1].


== Alternative Tools and Recommendations ==
In conclusion, public-api.wordpress.com serves as the gateway for developers to interact programmatically with WordPress.com sites, offering a powerful set of tools for creating applications, integrations, and automated workflows centered around WordPress.com content and functionality.


If you are an SEO professional, it is recommended to utilize platforms such as Semrush, Ahrefs, or Similarweb for comprehensive data analytics. For those solely interested in website rankings, Cloudflare Radar serves as a suitable alternative.
== References ==
<references />