@rmccue notes that appending ?rest_route=/ to a WordPress URL will yield the root response JSON (e.g. make.wordpress.org/core/?rest_route=/)—this is simpler than trusting to the presence of a header or an HTML <link> element, and we can use the self relation for the root API route to determine that base URL.
@rmccue notes that appending
?rest_route=/to a WordPress URL will yield the root response JSON (e.g. make.wordpress.org/core/?rest_route=/)—this is simpler than trusting to the presence of a header or an HTML<link>element, and we can use theselfrelation for the root API route to determine that base URL.