René's URL Explorer Experiment


Title: REST API with JavaScript - Build Browser Apps

Open Graph Title: REST API with JavaScript - Build Browser Apps

Description: Use the WordPress.com REST API directly from browsers with CORS support. Make authenticated and public API calls via JavaScript.

Open Graph Description: Use the WordPress.com REST API directly from browsers with CORS support. Make authenticated and public API calls via JavaScript.

Opengraph URL: https://developer.wordpress.com/docs/api/rest-api-javascript/

X: @wordpressdotcom

Generator: WordPress.com

direct link

Domain: developer.wordpress.com


Hey, it has json ld scripts:
{"@context":"https:\/\/schema.org","@graph":[{"@type":"Organization","@id":"https:\/\/wordpress.com\/#organization","url":"https:\/\/wordpress.com\/","name":"WordPress.com","foundingDate":"2005-08-01","slogan":"Build a website, build a movement.","description":"Create a free website or build a blog with ease on WordPress.com. Dozens of free, customizable, mobile-ready designs and themes. Free hosting and support.","logo":{"@type":"ImageObject","@id":"https:\/\/wordpress.com\/#logo","url":"https:\/\/s0.wp.com\/home.logged-out\/images\/wpcom-logo.png","width":512,"height":512,"caption":"WordPress.com"},"image":{"@id":"https:\/\/wordpress.com\/#logo"},"address":{"@type":"PostalAddress","streetAddress":"60 29th Street #343","addressLocality":"San Francisco","addressRegion":"CA","postalCode":"94110","addressCountry":"US"},"founder":{"@type":"Person","@id":"https:\/\/wordpress.com\/schema.org\/author\/5#person","name":"Matt Mullenweg","description":"In 2002 I started contributing to Open Source software, and life has just gotten better from there. Co-founder of WordPress, founder Automattic.","image":{"@type":"ImageObject","@id":"https:\/\/wordpress.com\/schema.org\/author\/5#personimage","url":"https:\/\/secure.gravatar.com\/avatar\/33252cd1f33526af53580fcb1736172f06e6716f32afdd1be19ec3096d15dea5?s=96&d=identicon&r=g","width":96,"height":96,"caption":"Matt Mullenweg"}},"numberOfEmployees":{"@type":"QuantitativeValue","value":1379},"sameAs":["https:\/\/x.com\/wordpressdotcom","https:\/\/www.facebook.com\/WordPresscom","https:\/\/www.instagram.com\/wordpressdotcom\/","https:\/\/www.linkedin.com\/company\/wordpress","https:\/\/www.youtube.com\/WordPressdotcom","https:\/\/www.pinterest.com\/wordpressdotcom\/","https:\/\/en.wikipedia.org\/wiki\/WordPress.com"],"parentOrganization":{"@id":"https:\/\/automattic.com\/#organization"}},{"@type":"WebSite","@id":"https:\/\/developer.wordpress.com\/#website","url":"https:\/\/developer.wordpress.com\/","name":"WordPress.com Developer Resources","description":"","publisher":{"@id":"https:\/\/wordpress.com\/#organization"}},{"@type":"BreadcrumbList","@id":"https:\/\/developer.wordpress.com\/docs\/api\/rest-api-javascript\/#breadcrumbs","itemListElement":[{"@type":"ListItem","position":0,"item":{"@type":"WebSite","@id":"https:\/\/developer.wordpress.com\/#website-breadcrumb","url":"https:\/\/developer.wordpress.com\/","name":"Home"}},{"@type":"ListItem","position":1,"item":{"@type":"WebPage","@id":"https:\/\/developer.wordpress.com\/docs\/api\/#ancestor-breadcrumb","url":"https:\/\/developer.wordpress.com\/docs\/api\/","name":"REST API"}},{"@type":"ListItem","position":2,"item":{"@type":"WebPage","@id":"https:\/\/developer.wordpress.com\/docs\/api\/rest-api-javascript\/#webpage-breadcrumb","url":"https:\/\/developer.wordpress.com\/docs\/api\/rest-api-javascript\/","name":"Using the REST API from JavaScript & the browser\u00a0(CORS)"}}]},{"@type":"ImageObject","@id":"https:\/\/developer.wordpress.com\/docs\/api\/rest-api-javascript\/#primaryimage","url":"https:\/\/s0.wp.com\/_si\/?t=eyJpbWciOiJodHRwczpcL1wvZGV2ZWxvcGVyLndvcmRwcmVzcy5jb21cL3dwLWNvbnRlbnRcL3VwbG9hZHNcLzIwMjZcLzA0XC9jcm9wcGVkLXdwY29tLWRldmVsb3Blci1sb2dvLnBuZz93PTIwMCIsInR4dCI6IldvcmRQcmVzcy5jb20gRGV2ZWxvcGVyIFJlc291cmNlcyIsInRlbXBsYXRlIjoiZWRnZSIsImZvbnQiOiIiLCJibG9nX2lkIjozMzUzNDA5OX0.09QFbaxy6625_IwVyDPV1CwpOr3m7tqGMPK-pBR2COYMQ","width":1200,"height":630,"caption":"Using the REST API from JavaScript & the browser\u00a0(CORS)"},{"@type":"WebPage","@id":"https:\/\/developer.wordpress.com\/docs\/api\/rest-api-javascript\/#webpage","url":"https:\/\/developer.wordpress.com\/docs\/api\/rest-api-javascript\/","name":"Using the REST API from JavaScript & the browser\u00a0(CORS)","description":"","inLanguage":"en","isPartOf":{"@id":"https:\/\/developer.wordpress.com\/#website"},"primaryImageOfPage":{"@id":"https:\/\/developer.wordpress.com\/docs\/api\/rest-api-javascript\/#primaryimage"},"publisher":{"@id":"https:\/\/wordpress.com\/#organization"},"datePublished":"2024-02-21T12:33:40+0000","dateModified":"2026-01-22T19:17:22+0000","breadcrumb":{"@id":"https:\/\/developer.wordpress.com\/docs\/api\/rest-api-javascript\/#breadcrumbs"}},{"@type":"TechArticle","@id":"https:\/\/developer.wordpress.com\/docs\/api\/rest-api-javascript\/#article","headline":"Using the REST API from JavaScript & the browser\u00a0(CORS)","keywords":"","datePublished":"2024-02-21T12:33:40+0000","dateModified":"2026-01-22T19:17:22+0000","mainEntityOfPage":{"@id":"https:\/\/developer.wordpress.com\/docs\/api\/rest-api-javascript\/#webpage"},"isPartOf":{"@id":"https:\/\/developer.wordpress.com\/docs\/api\/rest-api-javascript\/#webpage"},"image":{"@id":"https:\/\/developer.wordpress.com\/docs\/api\/rest-api-javascript\/#primaryimage"},"publisher":{"@id":"https:\/\/wordpress.com\/#organization"},"author":{"@id":"https:\/\/wordpress.com\/#organization"}}]}

Nonetext/html
og:typearticle
article:published_time2024-02-21T12:33:40+00:00
article:modified_time2026-01-22T19:17:22+00:00
og:site_nameWordPress.com Developer Resources
og:imagehttps://s2.wp.com/wp-content/themes/a8c/wpcom-developer/assets/images/wpcom-developers.png?m=1775707425i
og:image:altWordPress.com Developers
og:localeen_US
fb:app_id249643311490
article:publisherhttps://www.facebook.com/WordPresscom
twitter:text:titleUsing the REST API from JavaScript & the browser (CORS)
twitter:imagehttps://s2.wp.com/wp-content/themes/a8c/wpcom-developer/assets/images/wpcom-developers.png?m=1775707425i
twitter:image:altText input field for whitelisting JavaScript origins with instructions for making authenticated GET requests.
twitter:cardsummary_large_image
og:image:width1200
og:image:height630
og:image:typeimage/png
twitter:app:name:iphoneJetpack
twitter:app:id:iphone1565481562
twitter:app:name:ipadJetpack
twitter:app:id:ipad1565481562
twitter:app:name:googleplayJetpack
twitter:app:id:googleplaycom.jetpack.android
parsely-titleUsing the REST API from JavaScript & the browser (CORS)
parsely-linkhttps://developer.wordpress.com/docs/api/rest-api-javascript/
parsely-typepost
parsely-pub-date2024-02-21T12:33:40Z
parsely-sectionUncategorized
parsely-authorNick Diego
msapplication-TileImagehttps://developer.wordpress.com/wp-content/uploads/2026/04/cropped-wpcom-developer-logo.png?w=270

Links:

Skip to contenthttps://developer.wordpress.com/docs/api/rest-api-javascript/#site-content
https://developer.wordpress.com/
At a glancehttps://developer.wordpress.com/docs/glance/
WordPress and WordPress.comhttps://developer.wordpress.com/docs/glance/wordpress-and-wordpress-com/
Tech stackhttps://developer.wordpress.com/docs/glance/tech-stack/
Glossaryhttps://developer.wordpress.com/docs/glance/glossary/
Interface styleshttps://developer.wordpress.com/docs/glance/interface-styles/
Supporthttps://developer.wordpress.com/docs/glance/support/
Get startedhttps://developer.wordpress.com/docs/get-started/
Step 1: Create a sitehttps://developer.wordpress.com/docs/get-started/create-site/
Step 2: Set up your local environmenthttps://developer.wordpress.com/docs/get-started/local-environment-setup/
Step 3: Set up GitHubhttps://developer.wordpress.com/docs/get-started/github/
Step 4: Develop locallyhttps://developer.wordpress.com/docs/get-started/develop-locally/
Step 5: Deploy to your production or staging sitehttps://developer.wordpress.com/docs/get-started/deploy/
WordPress Studiohttps://developer.wordpress.com/docs/developer-tools/studio/
WordPress Studio siteshttps://developer.wordpress.com/docs/developer-tools/studio/sites/
WordPress Studio CLIhttps://developer.wordpress.com/docs/developer-tools/studio/cli/
WordPress Studio Codehttps://developer.wordpress.com/docs/developer-tools/studio/studio-code/
How AI Credits Workhttps://developer.wordpress.com/docs/developer-tools/studio/studio-code/ai-credits-guidelines/
Choosing an AI model tier in WordPress Studio Codehttps://developer.wordpress.com/docs/developer-tools/studio/studio-code/choosing-an-ai-model-tier-in-studio-code/
Image generationhttps://developer.wordpress.com/docs/developer-tools/studio/studio-code/image-generation/
Agent Skills in Studiohttps://developer.wordpress.com/docs/developer-tools/studio/agent-skills-wordpress-studio/
MCP in Studiohttps://developer.wordpress.com/docs/developer-tools/studio/mcp-on-studio/
Blueprintshttps://developer.wordpress.com/docs/developer-tools/studio/blueprints/
Open in WordPress Studio buttonhttps://developer.wordpress.com/docs/developer-tools/studio/blueprints/open-in-wordpress-studio-button/
How to create custom Blueprintshttps://developer.wordpress.com/docs/guides/how-to-create-custom-blueprints/
Preview Siteshttps://developer.wordpress.com/docs/developer-tools/studio/preview-sites/
WordPress Studio Synchttps://developer.wordpress.com/docs/developer-tools/studio/sync/
Import & exporthttps://developer.wordpress.com/docs/developer-tools/studio/import-export/
SSL in WordPress Studiohttps://developer.wordpress.com/docs/developer-tools/studio/ssl-in-studio/
PHP runtimeshttps://developer.wordpress.com/docs/developer-tools/studio/php-runtimes/
Debugging in WordPress Studiohttps://developer.wordpress.com/docs/developer-tools/studio/debugging/
Xdebug in Studiohttps://developer.wordpress.com/docs/developer-tools/studio/xdebug/
Frequently asked questionshttps://developer.wordpress.com/docs/developer-tools/studio/frequently-asked-questions/
Changeloghttps://developer.wordpress.com/docs/developer-tools/studio/changelog/
Feedbackhttps://developer.wordpress.com/docs/developer-tools/studio/feedback/
Agent Skillshttps://developer.wordpress.com/docs/agent-skills/
WordPress.com MCP Serverhttps://developer.wordpress.com/docs/mcp/
MCP tools referencehttps://developer.wordpress.com/docs/mcp/tools-reference/
Connect a custom MCP clienthttps://developer.wordpress.com/docs/mcp/connect-custom-mcp-client/
Developer toolshttps://developer.wordpress.com/docs/developer-tools/
WP-CLIhttps://developer.wordpress.com/docs/developer-tools/wp-cli/
WP-CLI overviewhttps://developer.wordpress.com/docs/developer-tools/wp-cli/overview/
Platform-specific commandshttps://developer.wordpress.com/docs/developer-tools/wp-cli/platform-commands/
Common commandshttps://developer.wordpress.com/docs/developer-tools/wp-cli/common-commands/
Troubleshootinghttps://developer.wordpress.com/docs/developer-tools/wp-cli/troubleshooting/
REST APIhttps://developer.wordpress.com/docs/api/
Getting started with the REST APIhttps://developer.wordpress.com/docs/api/getting-started/
REST API referencehttps://developer.wordpress.com/docs/api/rest-api-reference/
Namespaces & versionshttps://developer.wordpress.com/docs/api/namespaces-versions/
OAuth2 authenticationhttps://developer.wordpress.com/docs/api/oauth2/
WordPress.com Connecthttps://developer.wordpress.com/docs/api/wpcc/
Using the REST API from JavaScript & the browser (CORS)https://developer.wordpress.com/docs/api/rest-api-javascript/
Guidelines for responsible use of Automattic’s APIshttps://developer.wordpress.com/docs/api/guidelines-for-responsible-use-of-automattics-apis/
Site Accelerator APIhttps://developer.wordpress.com/docs/developer-tools/site-accelerator-api/
Platform featureshttps://developer.wordpress.com/docs/platform-features/
Site performancehttps://developer.wordpress.com/docs/site-performance/
Domain managementhttps://developer.wordpress.com/docs/platform-features/domain-management/
User managementhttps://developer.wordpress.com/docs/platform-features/user-management/
Real time backuphttps://developer.wordpress.com/docs/platform-features/real-time-backup-restore/
Storagehttps://developer.wordpress.com/docs/platform-features/storage/
Sitemapshttps://developer.wordpress.com/docs/platform-features/sitemaps/
Jetpack Scanhttps://developer.wordpress.com/docs/platform-features/jetpack-scan/
Account securityhttps://developer.wordpress.com/docs/platform-features/account-security/
Guideshttps://developer.wordpress.com/docs/guides/
Add HTTP headershttps://developer.wordpress.com/docs/guides/add-http-headers/
Block patternshttps://developer.wordpress.com/docs/guides/block-patterns/
Manage user, file, and folder permissionshttps://developer.wordpress.com/docs/guides/manage-permissions/
Manually restore your site from a Jetpack Backuphttps://developer.wordpress.com/docs/guides/manually-restore-backup/
Symlinked files and foldershttps://developer.wordpress.com/docs/guides/symlinked-files-folders/
WordPress.com oEmbed providerhttps://developer.wordpress.com/docs/guides/oembed-provider-api/
WP‑Cron on WordPress.comhttps://developer.wordpress.com/docs/guides/wp-cron-on-wordpress-com/
Troubleshootinghttps://developer.wordpress.com/docs/troubleshooting/
Enabling WP_DEBUGhttps://developer.wordpress.com/docs/troubleshooting/wp-debug/
Jetpack Activity Loghttps://developer.wordpress.com/docs/troubleshooting/jetpack-activity-log/
At a glancehttps://developer.wordpress.com/docs/glance/
WordPress and WordPress.comhttps://developer.wordpress.com/docs/glance/wordpress-and-wordpress-com/
Tech stackhttps://developer.wordpress.com/docs/glance/tech-stack/
Glossaryhttps://developer.wordpress.com/docs/glance/glossary/
Interface styleshttps://developer.wordpress.com/docs/glance/interface-styles/
Supporthttps://developer.wordpress.com/docs/glance/support/
Get startedhttps://developer.wordpress.com/docs/get-started/
Step 1: Create a sitehttps://developer.wordpress.com/docs/get-started/create-site/
Step 2: Set up your local environmenthttps://developer.wordpress.com/docs/get-started/local-environment-setup/
Step 3: Set up GitHubhttps://developer.wordpress.com/docs/get-started/github/
Step 4: Develop locallyhttps://developer.wordpress.com/docs/get-started/develop-locally/
Step 5: Deploy to your production or staging sitehttps://developer.wordpress.com/docs/get-started/deploy/
WordPress Studiohttps://developer.wordpress.com/docs/developer-tools/studio/
WordPress Studio siteshttps://developer.wordpress.com/docs/developer-tools/studio/sites/
WordPress Studio CLIhttps://developer.wordpress.com/docs/developer-tools/studio/cli/
WordPress Studio Codehttps://developer.wordpress.com/docs/developer-tools/studio/studio-code/
How AI Credits Workhttps://developer.wordpress.com/docs/developer-tools/studio/studio-code/ai-credits-guidelines/
Choosing an AI model tier in WordPress Studio Codehttps://developer.wordpress.com/docs/developer-tools/studio/studio-code/choosing-an-ai-model-tier-in-studio-code/
Image generationhttps://developer.wordpress.com/docs/developer-tools/studio/studio-code/image-generation/
Agent Skills in Studiohttps://developer.wordpress.com/docs/developer-tools/studio/agent-skills-wordpress-studio/
MCP in Studiohttps://developer.wordpress.com/docs/developer-tools/studio/mcp-on-studio/
Blueprintshttps://developer.wordpress.com/docs/developer-tools/studio/blueprints/
Open in WordPress Studio buttonhttps://developer.wordpress.com/docs/developer-tools/studio/blueprints/open-in-wordpress-studio-button/
How to create custom Blueprintshttps://developer.wordpress.com/docs/guides/how-to-create-custom-blueprints/
Preview Siteshttps://developer.wordpress.com/docs/developer-tools/studio/preview-sites/
WordPress Studio Synchttps://developer.wordpress.com/docs/developer-tools/studio/sync/
Import & exporthttps://developer.wordpress.com/docs/developer-tools/studio/import-export/
SSL in WordPress Studiohttps://developer.wordpress.com/docs/developer-tools/studio/ssl-in-studio/
PHP runtimeshttps://developer.wordpress.com/docs/developer-tools/studio/php-runtimes/
Debugging in WordPress Studiohttps://developer.wordpress.com/docs/developer-tools/studio/debugging/
Xdebug in Studiohttps://developer.wordpress.com/docs/developer-tools/studio/xdebug/
Frequently asked questionshttps://developer.wordpress.com/docs/developer-tools/studio/frequently-asked-questions/
Changeloghttps://developer.wordpress.com/docs/developer-tools/studio/changelog/
Feedbackhttps://developer.wordpress.com/docs/developer-tools/studio/feedback/
Agent Skillshttps://developer.wordpress.com/docs/agent-skills/
WordPress.com MCP Serverhttps://developer.wordpress.com/docs/mcp/
MCP tools referencehttps://developer.wordpress.com/docs/mcp/tools-reference/
Connect a custom MCP clienthttps://developer.wordpress.com/docs/mcp/connect-custom-mcp-client/
Developer toolshttps://developer.wordpress.com/docs/developer-tools/
WP-CLIhttps://developer.wordpress.com/docs/developer-tools/wp-cli/
WP-CLI overviewhttps://developer.wordpress.com/docs/developer-tools/wp-cli/overview/
Platform-specific commandshttps://developer.wordpress.com/docs/developer-tools/wp-cli/platform-commands/
Common commandshttps://developer.wordpress.com/docs/developer-tools/wp-cli/common-commands/
Troubleshootinghttps://developer.wordpress.com/docs/developer-tools/wp-cli/troubleshooting/
REST APIhttps://developer.wordpress.com/docs/api/
Getting started with the REST APIhttps://developer.wordpress.com/docs/api/getting-started/
REST API referencehttps://developer.wordpress.com/docs/api/rest-api-reference/
Namespaces & versionshttps://developer.wordpress.com/docs/api/namespaces-versions/
OAuth2 authenticationhttps://developer.wordpress.com/docs/api/oauth2/
WordPress.com Connecthttps://developer.wordpress.com/docs/api/wpcc/
Using the REST API from JavaScript & the browser (CORS)https://developer.wordpress.com/docs/api/rest-api-javascript/
Guidelines for responsible use of Automattic’s APIshttps://developer.wordpress.com/docs/api/guidelines-for-responsible-use-of-automattics-apis/
Site Accelerator APIhttps://developer.wordpress.com/docs/developer-tools/site-accelerator-api/
Platform featureshttps://developer.wordpress.com/docs/platform-features/
Site performancehttps://developer.wordpress.com/docs/site-performance/
Domain managementhttps://developer.wordpress.com/docs/platform-features/domain-management/
User managementhttps://developer.wordpress.com/docs/platform-features/user-management/
Real time backuphttps://developer.wordpress.com/docs/platform-features/real-time-backup-restore/
Storagehttps://developer.wordpress.com/docs/platform-features/storage/
Sitemapshttps://developer.wordpress.com/docs/platform-features/sitemaps/
Jetpack Scanhttps://developer.wordpress.com/docs/platform-features/jetpack-scan/
Account securityhttps://developer.wordpress.com/docs/platform-features/account-security/
Guideshttps://developer.wordpress.com/docs/guides/
Add HTTP headershttps://developer.wordpress.com/docs/guides/add-http-headers/
Block patternshttps://developer.wordpress.com/docs/guides/block-patterns/
Manage user, file, and folder permissionshttps://developer.wordpress.com/docs/guides/manage-permissions/
Manually restore your site from a Jetpack Backuphttps://developer.wordpress.com/docs/guides/manually-restore-backup/
Symlinked files and foldershttps://developer.wordpress.com/docs/guides/symlinked-files-folders/
WordPress.com oEmbed providerhttps://developer.wordpress.com/docs/guides/oembed-provider-api/
WP‑Cron on WordPress.comhttps://developer.wordpress.com/docs/guides/wp-cron-on-wordpress-com/
Troubleshootinghttps://developer.wordpress.com/docs/troubleshooting/
Enabling WP_DEBUGhttps://developer.wordpress.com/docs/troubleshooting/wp-debug/
Jetpack Activity Loghttps://developer.wordpress.com/docs/troubleshooting/jetpack-activity-log/
REST APIhttps://developer.wordpress.com/docs/api/
CORShttps://developer.mozilla.org/en-US/docs/Web/HTTP/Access_control_CORS
implicit section of the OAuth documentationhttps://developer.wordpress.com/docs/api/oauth2/#Implicit-Flow
OAuth 2.0 implicit flowhttps://developer.wordpress.com/docs/api/oauth2/
application managerhttps://developer.wordpress.com/apps/
https://wpdeveloperstaging.files.wordpress.com/2024/02/4e730-screen-shot-2014-05-15-at-12-39-29-pm.png
Get startedhttps://wordpress.com/start/hosting?flow=new-hosted-site&ref=developer-docs-rest-api-javascript
Creative Commons Attribution-ShareAlike 4.0 International License https://creativecommons.org/licenses/by-sa/4.0/
An Automattic Creation https://automattic.com/

Viewport: width=device-width, initial-scale=1, minimum-scale=1, maximum-scale=1

Robots: max-image-preview:large


URLs of crawlers that visited me.