{"id":1075,"date":"2024-08-30T07:50:47","date_gmt":"2024-08-30T07:50:47","guid":{"rendered":"https:\/\/blog.200oksolutions.com\/?p=1075"},"modified":"2025-12-04T07:44:07","modified_gmt":"2025-12-04T07:44:07","slug":"lightweight-php-restful-api","status":"publish","type":"post","link":"https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/","title":{"rendered":"Lightweight PHP RESTful API in Core PHP: A Step-by-Step Guide"},"content":{"rendered":"\n<figure class=\"wp-block-embed is-type-video is-provider-youtube wp-block-embed-youtube wp-embed-aspect-16-9 wp-has-aspect-ratio\"><div class=\"wp-block-embed__wrapper\">\n<iframe title=\"Build Your Own Lightweight PHP RESTful API   landscape\" width=\"500\" height=\"281\" src=\"https:\/\/www.youtube.com\/embed\/rWuvqxcjuVQ?feature=oembed\" frameborder=\"0\" allow=\"accelerometer; autoplay; clipboard-write; encrypted-media; gyroscope; picture-in-picture; web-share\" referrerpolicy=\"strict-origin-when-cross-origin\" allowfullscreen><\/iframe>\n<\/div><\/figure>\n\n\n\n<p>Creating a RESTful API in PHP often involves heavy frameworks like Laravel. However, for projects where a lightweight and framework-free solution is preferred, Core PHP offers a perfect alternative. This article provides a detailed guide on how to build a simple, yet effective, RESTful API using just Core PHP.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Introduction to RESTful APIs in Core PHP<\/h2>\n\n\n\n<p>RESTful APIs are essential for enabling communication between different software systems. While frameworks simplify API development, sometimes the overhead of a framework is unnecessary. In such cases, using Core PHP for building a lightweight RESTful API is both practical and efficient.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Why Choose Core PHP for Your RESTful API?<\/h3>\n\n\n\n<p>Core PHP offers several advantages when it comes to developing a RESTful API:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>Minimal Dependencies:<\/strong> Unlike frameworks, Core PHP does not require you to install and manage multiple dependencies.<\/li>\n\n\n\n<li><strong>Lightweight and Fast:<\/strong> Core PHP is less resource-intensive, which results in faster execution and response times.<\/li>\n\n\n\n<li><strong>Full Control:<\/strong> Using Core PHP gives you complete control over the structure and logic of your API.<\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Project Setup<\/h2>\n\n\n\n<p>Before we dive into the code, let&#8217;s set up the project structure.<\/p>\n\n\n\n<p>Here\u2019s the recommended directory structure:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n\/my-rest-api\n    \/api\n        \/v1\n            - index.php\n    \/data\n        - users.json\n    - .htaccess\n<\/code><\/pre>\n\n\n\n<p>Each component serves a specific purpose:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>api\/v1\/index.php:<\/strong> The main script handling API requests.<\/li>\n\n\n\n<li><strong>data\/users.json:<\/strong> A JSON file simulating a database for this example.<\/li>\n\n\n\n<li><strong>.htaccess:<\/strong> A file to handle URL rewriting for clean URLs.<\/li>\n<\/ul>\n\n\n\n<h3 class=\"wp-block-heading\">Routing with .htaccess<\/h3>\n\n\n\n<p>To ensure clean URLs and direct all API requests to our PHP script, use the following <code>.htaccess<\/code> configuration:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nRewriteEngine On\nRewriteCond %{REQUEST_FILENAME} !-f\nRewriteCond %{REQUEST_FILENAME} !-d\nRewriteRule ^api\/v1\/(.*)$ api\/v1\/index.php?request=$1 &#91;QSANCL]\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Core API Logic in PHP<\/h2>\n\n\n\n<p>The core logic of our API will be implemented in the <code>api\/v1\/index.php<\/code> file. Here\u2019s how you can handle various HTTP requests like GET, POST, PUT, and DELETE.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Handling Requests<\/h3>\n\n\n\n<p>First, we need to determine the request method and the specific endpoint requested:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\n&lt;?php\nheader(\"Content-Type: application\/json\");\n\n$requestMethod = $_SERVER&#91;\"REQUEST_METHOD\"];\n$request = $_GET&#91;'request'] ?? '';\n<\/code><\/pre>\n\n\n\n<p>This snippet reads the HTTP request method (GET, POST, PUT, DELETE) and the request endpoint.<\/p>\n\n\n\n<h3 class=\"wp-block-heading\">Utility Functions<\/h3>\n\n\n\n<p>We will create utility functions to handle user data stored in <code>users.json<\/code>:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nfunction getUsers() {\n    return json_decode(file_get_contents('..\/..\/data\/users.json'), true);\n}\n\nfunction saveUsers($users) {\n    file_put_contents('..\/..\/data\/users.json', json_encode($users, JSON_PRETTY_PRINT));\n}\n<\/code><\/pre>\n\n\n\n<h3 class=\"wp-block-heading\">Implementing CRUD Operations<\/h3>\n\n\n\n<p>Now, let&#8217;s implement the core CRUD operations:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>switch ($requestMethod) {\n    case 'GET':\n        handleGet($request);\n        break;\n    case 'POST':\n        handlePost();\n        break;\n    case 'PUT':\n        handlePut($request);\n        break;\n    case 'DELETE':\n        handleDelete($request);\n        break;\n    default:\n        http_response_code(405);\n        echo json_encode(&#91;\"message\" => \"Method Not Allowed\"]);\n        break;\n}<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">GET Request<\/h4>\n\n\n\n<p>To fetch all users or a specific user by ID:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nfunction handleGet($request) {\n    $users = getUsers();\n    if (empty($request)) {\n        echo json_encode($users);\n    } else {\n        $userId = explode('\/', $request)&#91;0];\n        $user = array_filter($users, fn($u) =&gt; $u&#91;'id'] == $userId);\n        echo $user ? json_encode(array_values($user)&#91;0]) : json_encode(&#91;\"message\" =&gt; \"User not found\"], 404);\n    }\n}\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">POST Request<\/h4>\n\n\n\n<p>To add a new user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nfunction handlePost() {\n    $input = json_decode(file_get_contents(\"php:\/\/input\"), true);\n    $users = getUsers();\n    $newUser = &#91;\"id\" =&gt; end($users)&#91;'id'] + 1, \"name\" =&gt; $input&#91;'name'], \"email\" =&gt; $input&#91;'email']];\n    $users&#91;] = $newUser;\n    saveUsers($users);\n    echo json_encode($newUser, 201);\n}\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">PUT Request<\/h4>\n\n\n\n<p>To update an existing user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nfunction handlePut($request) {\n    $input = json_decode(file_get_contents(\"php:\/\/input\"), true);\n    $users = getUsers();\n    $userId = explode('\/', $request)&#91;0];\n    foreach ($users as &amp;$user) {\n        if ($user&#91;'id'] == $userId) {\n            $user&#91;'name'] = $input&#91;'name'];\n            $user&#91;'email'] = $input&#91;'email'];\n            saveUsers($users);\n            echo json_encode($user);\n            return;\n        }\n    }\n    echo json_encode(&#91;\"message\" =&gt; \"User not found\"], 404);\n}\n<\/code><\/pre>\n\n\n\n<h4 class=\"wp-block-heading\">DELETE Request<\/h4>\n\n\n\n<p>To delete a user:<\/p>\n\n\n\n<pre class=\"wp-block-code\"><code>\nfunction handleDelete($request) {\n    $users = getUsers();\n    $userId = explode('\/', $request)&#91;0];\n    foreach ($users as $key =&gt; $user) {\n        if ($user&#91;'id'] == $userId) {\n            unset($users&#91;$key]);\n            saveUsers($users);\n            echo json_encode(&#91;\"message\" =&gt; \"User deleted\"]);\n            return;\n        }\n    }\n    echo json_encode(&#91;\"message\" =&gt; \"User not found\"], 404);\n}\n<\/code><\/pre>\n\n\n\n<h2 class=\"wp-block-heading\">Testing the API<\/h2>\n\n\n\n<p>Once your API is set up, you can test it using tools like Postman or cURL. Below are examples of how to interact with the API:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>GET All Users:<\/strong> <code>GET http:\/\/your-domain.com\/api\/v1\/<\/code><\/li>\n\n\n\n<li><strong>GET Specific User:<\/strong> <code>GET http:\/\/your-domain.com\/api\/v1\/1<\/code><\/li>\n\n\n\n<li><strong>Create New User:<\/strong> <code>POST http:\/\/your-domain.com\/api\/v1\/<\/code> with JSON body <code>{\"name\": \"New User\", \"email\": \"new@example.com\"}<\/code><\/li>\n\n\n\n<li><strong>Update User:<\/strong> <code>PUT http:\/\/your-domain.com\/api\/v1\/1<\/code> with JSON body <code>{\"name\": \"Updated User\", \"email\": \"updated@example.com\"}<\/code><\/li>\n\n\n\n<li><strong>Delete User:<\/strong> <code>DELETE http:\/\/your-domain.com\/api\/v1\/1<\/code><\/li>\n<\/ul>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>Building a RESTful API using Core PHP offers a lightweight and flexible solution ideal for projects where minimizing dependencies is crucial. With this guide, you can easily extend the API to include more features like authentication and database integration as needed.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n\n\n\n<h3 class=\"wp-block-heading\">FAQs about Lightweight PHP RESTful API<\/h3>\n\n\n\n<h4 class=\"wp-block-heading\">1. What is a RESTful API in PHP?<\/h4>\n\n\n\n<p>A RESTful API in PHP allows different systems to communicate using standard HTTP methods like GET, POST, PUT, and DELETE. It enables CRUD operations on resources.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">2. Why should I use Core PHP for a RESTful API?<\/h4>\n\n\n\n<p>Core PHP is lightweight, fast, and does not require additional dependencies, making it an ideal choice for simple APIs where you need full control over the implementation.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">3. How do I secure a RESTful API in Core PHP?<\/h4>\n\n\n\n<p>You can secure your API by implementing token-based authentication, validating inputs, and using HTTPS to encrypt data transmission.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">4. Can I integrate a database with this API?<\/h4>\n\n\n\n<p>Yes, you can easily extend this API to interact with a database like MySQL by replacing the JSON file with database queries.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">5. Is it possible to add authentication to this API?<\/h4>\n\n\n\n<p>Absolutely! You can implement various authentication methods like Basic Auth, OAuth, or JWT (JSON Web Token) to secure your API.<\/p>\n\n\n\n<h4 class=\"wp-block-heading\">6. What are the best practices for RESTful API development?<\/h4>\n\n\n\n<p>Best practices include using appropriate HTTP status codes, ensuring idempotency in methods like PUT and DELETE, and versioning your API to manage changes.<\/p>\n\n\n\n<hr class=\"wp-block-separator has-alpha-channel-opacity\"\/>\n","protected":false},"excerpt":{"rendered":"<p>Creating a RESTful API in PHP often involves heavy frameworks like Laravel. However, for projects where a&hellip;<\/p>\n","protected":false},"author":5,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[158,1],"tags":[286,36,280,282,283,285,281,284],"class_list":["post-1075","post","type-post","status-publish","format-standard","hentry","category-backend","category-php","tag-api-tutorial","tag-backend-development","tag-core-php","tag-lightweight-php-api","tag-php-api-development","tag-php-programming","tag-restful-api","tag-simple-rest-api"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v24.4 - https:\/\/yoast.com\/wordpress\/plugins\/seo\/ -->\n<title>Lightweight PHP RESTful API in Core PHP: A Step-by-Step Guide Web Development, Software, and App Blog | 200OK Solutions<\/title>\n<meta name=\"description\" content=\"Discover how to create a Lightweight PHP RESTful API using Core PHP. This guide provides a step-by-step approach to building a simple yet effective API without relying on frameworks like Laravel\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Lightweight PHP RESTful API in Core PHP: A Step-by-Step Guide Web Development, Software, and App Blog | 200OK Solutions\" \/>\n<meta property=\"og:description\" content=\"Discover how to create a Lightweight PHP RESTful API using Core PHP. This guide provides a step-by-step approach to building a simple yet effective API without relying on frameworks like Laravel\" \/>\n<meta property=\"og:url\" content=\"https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/\" \/>\n<meta property=\"og:site_name\" content=\"Web Development, Software, and App Blog | 200OK Solutions\" \/>\n<meta property=\"article:published_time\" content=\"2024-08-30T07:50:47+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2025-12-04T07:44:07+00:00\" \/>\n<meta name=\"author\" content=\"Piyush Solanki\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Piyush Solanki\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"3 minutes\" \/>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"Lightweight PHP RESTful API in Core PHP: A Step-by-Step Guide Web Development, Software, and App Blog | 200OK Solutions","description":"Discover how to create a Lightweight PHP RESTful API using Core PHP. This guide provides a step-by-step approach to building a simple yet effective API without relying on frameworks like Laravel","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/","og_locale":"en_US","og_type":"article","og_title":"Lightweight PHP RESTful API in Core PHP: A Step-by-Step Guide Web Development, Software, and App Blog | 200OK Solutions","og_description":"Discover how to create a Lightweight PHP RESTful API using Core PHP. This guide provides a step-by-step approach to building a simple yet effective API without relying on frameworks like Laravel","og_url":"https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/","og_site_name":"Web Development, Software, and App Blog | 200OK Solutions","article_published_time":"2024-08-30T07:50:47+00:00","article_modified_time":"2025-12-04T07:44:07+00:00","author":"Piyush Solanki","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Piyush Solanki","Est. reading time":"3 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/#article","isPartOf":{"@id":"https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/"},"author":{"name":"Piyush Solanki","@id":"https:\/\/www.200oksolutions.com\/blog\/#\/schema\/person\/e07f6b8e3c9a90ce7b3b09427d26155e"},"headline":"Lightweight PHP RESTful API in Core PHP: A Step-by-Step Guide","datePublished":"2024-08-30T07:50:47+00:00","dateModified":"2025-12-04T07:44:07+00:00","mainEntityOfPage":{"@id":"https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/"},"wordCount":663,"commentCount":0,"publisher":{"@id":"https:\/\/www.200oksolutions.com\/blog\/#organization"},"keywords":["API Tutorial","Backend Development","Core PHP","Lightweight PHP API","PHP API Development","PHP Programming","RESTful API","Simple REST API"],"articleSection":["Backend","PHP"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/","url":"https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/","name":"Lightweight PHP RESTful API in Core PHP: A Step-by-Step Guide Web Development, Software, and App Blog | 200OK Solutions","isPartOf":{"@id":"https:\/\/www.200oksolutions.com\/blog\/#website"},"datePublished":"2024-08-30T07:50:47+00:00","dateModified":"2025-12-04T07:44:07+00:00","description":"Discover how to create a Lightweight PHP RESTful API using Core PHP. This guide provides a step-by-step approach to building a simple yet effective API without relying on frameworks like Laravel","breadcrumb":{"@id":"https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/www.200oksolutions.com\/blog\/lightweight-php-restful-api\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/www.200oksolutions.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Lightweight PHP RESTful API in Core PHP: A Step-by-Step Guide"}]},{"@type":"WebSite","@id":"https:\/\/www.200oksolutions.com\/blog\/#website","url":"https:\/\/www.200oksolutions.com\/blog\/","name":"Web Development, Software, and App Blog | 200OK Solutions","description":"","publisher":{"@id":"https:\/\/www.200oksolutions.com\/blog\/#organization"},"potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/www.200oksolutions.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Organization","@id":"https:\/\/www.200oksolutions.com\/blog\/#organization","name":"Web Development Blog | Software Blog | App Blog","url":"https:\/\/www.200oksolutions.com\/blog\/","logo":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.200oksolutions.com\/blog\/#\/schema\/logo\/image\/","url":"https:\/\/200oksolutions.com\/blog\/wp-content\/uploads\/2025\/09\/200ok_logo-CGzMrWDu.png","contentUrl":"https:\/\/200oksolutions.com\/blog\/wp-content\/uploads\/2025\/09\/200ok_logo-CGzMrWDu.png","width":500,"height":191,"caption":"Web Development Blog | Software Blog | App Blog"},"image":{"@id":"https:\/\/www.200oksolutions.com\/blog\/#\/schema\/logo\/image\/"},"sameAs":["https:\/\/www.instagram.com\/200ok_solutions\/"]},{"@type":"Person","@id":"https:\/\/www.200oksolutions.com\/blog\/#\/schema\/person\/e07f6b8e3c9a90ce7b3b09427d26155e","name":"Piyush Solanki","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/www.200oksolutions.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/secure.gravatar.com\/avatar\/962a2b0b4db856e6851ec7d838597a0395adcaae9c0091d223de9942a4254461?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/962a2b0b4db856e6851ec7d838597a0395adcaae9c0091d223de9942a4254461?s=96&d=mm&r=g","caption":"Piyush Solanki"},"description":"Piyush is a seasoned PHP Tech Lead with 10+ years of experience architecting and delivering scalable web and mobile backend solutions for global brands and fast-growing SMEs. He specializes in PHP, MySQL, CodeIgniter, WordPress, and custom API development, helping businesses modernize legacy systems and launch secure, high-performance digital products. He collaborates closely with mobile teams building Android &amp; iOS apps , developing RESTful APIs, cloud integrations, and secure payment systems using platforms like Stripe, AWS S3, and OTP\/SMS gateways. His work extends across CMS customization, microservices-ready backend architectures, and smooth product deployments across Linux and cloud-based environments. Piyush also has a strong understanding of modern front-end technologies such as React and TypeScript, enabling him to contribute to full-stack development workflows and advanced admin panels. With a successful delivery track record in the UK market and experience building digital products for sectors like finance, hospitality, retail, consulting, and food services, Piyush is passionate about helping SMEs scale technology teams, improve operational efficiency, and accelerate innovation through backend excellence and digital tools.","url":"https:\/\/www.200oksolutions.com\/blog\/author\/piyush\/"}]}},"_links":{"self":[{"href":"https:\/\/www.200oksolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1075","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/www.200oksolutions.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/www.200oksolutions.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/www.200oksolutions.com\/blog\/wp-json\/wp\/v2\/users\/5"}],"replies":[{"embeddable":true,"href":"https:\/\/www.200oksolutions.com\/blog\/wp-json\/wp\/v2\/comments?post=1075"}],"version-history":[{"count":3,"href":"https:\/\/www.200oksolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1075\/revisions"}],"predecessor-version":[{"id":1079,"href":"https:\/\/www.200oksolutions.com\/blog\/wp-json\/wp\/v2\/posts\/1075\/revisions\/1079"}],"wp:attachment":[{"href":"https:\/\/www.200oksolutions.com\/blog\/wp-json\/wp\/v2\/media?parent=1075"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/www.200oksolutions.com\/blog\/wp-json\/wp\/v2\/categories?post=1075"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/www.200oksolutions.com\/blog\/wp-json\/wp\/v2\/tags?post=1075"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}