{"id":329325,"date":"2023-10-03T18:27:35","date_gmt":"2023-10-03T18:27:35","guid":{"rendered":"https:\/\/pythonguides.com\/?p=17070"},"modified":"2023-10-03T18:27:35","modified_gmt":"2023-10-03T18:27:35","slug":"python-dictionary-find-key-by-value-4-methods","status":"publish","type":"post","link":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/2023\/10\/03\/python-dictionary-find-key-by-value-4-methods\/","title":{"rendered":"Python dictionary find key by value (4 methods)"},"content":{"rendered":"<p class=\"syndicated-attribution\"><meta name= \\\"keywords \\\" content= \\\"\u96fb\u5b50\u8a08\u7b97\u6a5f, \u6559\u80b2, IT \u96fb\u8166\u73ed,\u96fb\u8166\u88dc\u7fd2\uff0c \u96fb\u8166\u73ed\uff0c \u5bb6\u6559\uff0c \u79c1\u4eba\u8001\u5e2b\uff0c \u8cc7\u8a0a\u6280\u8853\uff0c \u7a0b\u5e8f\u8a2d\u8a08\uff0c \u96fb\u5b50\u8a08\u7b97\u6a5f\uff0c \u904a\u6232\uff0c \u860b\u679c\uff0c \u96fb\u5f71\uff0c \u8a08\u7b97\u6a5f\uff0c\u7de8\u78bc\uff0c Java\uff0c C\/C++\uff0c JavaScript\uff0c PHP\uff0c HTML\uff0c CSS\uff0c MySQL\uff0c mobile\uff0c Android\uff0c \u52d5\u6f2b\uff0c Python\uff0c teacher\uff0c \u88dc\u7fd2\uff0c \u96fb\u8166\u88dc\u7fd2 \u8cc7\u8a0a, \u7535\u5b50\u8ba1\u7b97\u673a, IT ,Game, apple, movie, Computer,student,Java,\u6559\u80b2, ,\u5b66\u751f, \u5b66\u4e60, learn, \u6559\u5b66,  Android, apple,anime, animation, \u4fe1\u606f\u6280\u672f, \u7a0b\u5e8f\u8bbe\u8ba1, \u79fb\u52a8\u7535\u8bdd, \u8cc7\u8a0a\u79d1\u6280,Game, Jeu, Juego,Call Of Duty ,\u4f7f\u547d\u53ec\u559a , \u6e38\u620f, \u7535\u5b50\u6e38\u620f,, \u591a\u4eba\u7535\u5b50\u6e38\u620f, \u7f51\u7edc\u6e38\u620f\uff0conline\uff0conline game, \u624b\u673a\u6e38\u620f, mobile \\\"><\/p>\n<p>In this article, I will explain how in <strong>Python dictionary find key by value<\/strong> using various methods using demonstrative examples. We will also see how to <strong>find key with maximum value in Python Dictionary.<\/strong><\/p>\n<p>In Python, a <a href=\"https:\/\/pythonguides.com\/create-a-dictionary-in-python\/\"  data-type=\"link\" data-id=\"https:\/\/pythonguides.com\/create-a-dictionary-in-python\/\" rel=\"noreferrer noopener\">dictionary<\/a> is a built-in data type that can be used to store a mutable, unordered collection of items. Each item stored in a dictionary has a key and value, making it a common choice for data retrieval.<\/p>\n<p>While dictionaries allow for fast and easy access to data based on the key, there may be situations where you need to find a key based on a value. This article will explore various methods to find a key by its value in a Python dictionary.<\/p>\n<h2 class=\"wp-block-heading\">Methos for Python dictionary find key by value<\/h2>\n<p>There are several methods to find key by value in Python dictionary.<\/p>\n<ul>\n<li>Using for loop with dict.item() function<\/li>\n<li>Using List comprehension<\/li>\n<li>Using list.index() function<\/li>\n<li>Using lambda and filter() functions<\/li>\n<\/ul>\n<p>Let&#8217;s see them one by one using illustrative examples:<\/p>\n<h3 class=\"wp-block-heading\">Method 1: Python find key by value in dictionary through for loop with item() function.<\/h3>\n<p>In Python, finding a key by a value in a dictionary using a <strong>for loop<\/strong> and the <strong>items()<\/strong> method involves iterating over all the key-value pairs in the dictionary and checking if the current value matches the desired value.<\/p>\n<p>If a match is found, the <strong>corresponding key<\/strong> is returned. If the loop completes without finding a match, <strong>None<\/strong> (or some other default value) is returned to indicate that no key was found for the given value.<\/p>\n<p><strong>Example:<\/strong> Let&#8217;s use a scenario where we have a dictionary that represents the capital cities of various states in the USA. We&#8217;ll try to find the state given its capital.<\/p>\n<p>You&#8217;re given the task of designing a simple system that takes in the name of a capital and returns the corresponding state. For simplicity, we&#8217;ll consider a few states and their capitals:<\/p>\n<pre class=\"wp-block-code\"><code>state_capitals = {\n    'California': 'Sacramento',\n    'Texas': 'Austin',\n    'New York': 'Albany',\n    'Florida': 'Tallahassee',\n    'Illinois': 'Springfield'\n}\ndef find_state_by_capital(capitals_dict, capital):\n    for state, cap in capitals_dict.items():\n        if cap == capital:\n            return state\n    return None\n\ncapital_input = 'Austin'\nstate_name = find_state_by_capital(state_capitals, capital_input)\nprint(f\"The state with the capital {capital_input} is {state_name}.\")<\/code><\/pre>\n<p><strong>Output: <\/strong>We define a function <strong>find_state_by_capital<\/strong> that takes in the Python dictionary and a capital name. We use a <strong>for loop<\/strong> to iterate over the dictionary items. For each iteration, we compare the current <strong>capital (cap)<\/strong> with the given capital. If there&#8217;s a match, we immediately return the corresponding state. If the loop finishes without finding a match, we return <strong>None<\/strong>.<\/p>\n<pre class=\"wp-block-code\"><code>The state with the capital Austin is Texas.<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"815\" height=\"760\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/find-key-from-value-dictionary-python.jpg\" alt=\"find key from value dictionary python\" class=\"wp-image-45580\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/find-key-from-value-dictionary-python.jpg 815w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/find-key-from-value-dictionary-python-300x280.jpg 300w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/find-key-from-value-dictionary-python-768x716.jpg 768w\" sizes=\"(max-width: 815px) 100vw, 815px\" title=\"find key from value dictionary python\"><\/figure>\n<\/div>\n<p>This way we can use the <strong>for loop <\/strong>with <strong>dict.item() function<\/strong> to iterate over the Python dictionary to find a key by value.<\/p>\n<h3 class=\"wp-block-heading\">Method 2: Using List comprehension to get key from value Python Dictionary<\/h3>\n<p><strong>List comprehensions<\/strong> provide a concise and readable way to create lists in Python. They can also be used for searching a Python dictionary to find a key based on a given value. To find a key based on a value in a dictionary using list comprehension, we can iterate over the dictionary items and return the key where the value matches the desired value.<\/p>\n<p><strong>For example:<\/strong> Imagine we are creating a program where we have a dictionary of books and their authors in Python, and we need to find the authors of specific books in the Python list.<\/p>\n<pre class=\"wp-block-code\"><code>authors_dict = {\n    'To Kill a Mockingbird': 'Harper Lee',\n    '1984': 'George Orwell',\n    'Moby Dick': 'Herman Melville',\n    'Pride and Prejudice': 'Jane Austen',\n    'The Great Gatsby': 'F. Scott Fitzgerald',\n}\nbook_titles = &#91;'1984', 'The Great Gatsby']\nauthor_names = &#91;author for book, author in authors_dict.items() if book in book_titles]\nprint(author_names)<\/code><\/pre>\n<p><strong>Output:<\/strong> We iterate through the <strong>authors_dict<\/strong> Python Dictionary, using the <strong>items()<\/strong> method which provides each book title (book) and its author (author). Then, we use the <strong>condition if<\/strong> book in <strong>book_titles<\/strong> to check if the current book exists in our Python list of <strong>book_titles.<\/strong> If the condition is met, we add the author name to our result list <strong>author_names.<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>&#91;'George Orwell', 'F. Scott Fitzgerald']<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"1025\" height=\"541\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/get-key-from-value-python.jpg\" alt=\"get key from value python\" class=\"wp-image-45581\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/get-key-from-value-python.jpg 1025w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/get-key-from-value-python-300x158.jpg 300w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/get-key-from-value-python-768x405.jpg 768w\" sizes=\"(max-width: 1025px) 100vw, 1025px\" title=\"get key from value python\"><\/figure>\n<\/div>\n<p>We can use <strong>list comprehension<\/strong> to extract the author names based on the book titles in Python.<\/p>\n<h3 class=\"wp-block-heading\">Method 3: Python get key from value from dictionary using list.index() function<\/h3>\n<p>In Python, we can get a key from a value in a dictionary by using the list.index() function, although it&#8217;s a bit indirect. This approach involves converting the Python dictionary values to a list and finding the index of the desired value using the <strong>list.index() function<\/strong>. This index corresponds to the key in the list of keys from the Python dictionary.<\/p>\n<p><strong>For instance:<\/strong> Let&#8217;s take another scenario where we have a dictionary in Python that contains the names and ages of people, where the keys are the names of people, and the values are their ages. In this example, we&#8217;ll find the name of a person given their age using the <strong>list.index() function<\/strong>.<\/p>\n<pre class=\"wp-block-code\"><code>people = {\n    'Alice': 30,\n    'Bob': 25,\n    'Charlie': 35,\n    'Diana': 40,\n    'Eve': 22,\n}\nage_to_find = 35\nages = list(people.values())\nnames = list(people.keys())\nindex = ages.index(age_to_find)\nname = names&#91;index]\nprint(f\"The name of the person with the age {age_to_find} is {name}\")<\/code><\/pre>\n<p><strong>Output:<\/strong> We first converted the ages and names to two separate Python lists, <strong>ages<\/strong> and <strong>names<\/strong>. We then found the <strong>index<\/strong> of the age <strong>35<\/strong> in the <strong>ages list<\/strong> in Python using the <strong>index() function<\/strong>. This index was used to get the <strong>name<\/strong> from the <strong>names Python list<\/strong>. Finally, we printed out the output, showing that the name of the person with the age 35 is &#8220;<strong>Charlie<\/strong>&#8220;.<\/p>\n<pre class=\"wp-block-code\"><code>The name of the person with the age 35 is Charlie<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"818\" height=\"637\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/image.jpeg\" alt=\"Python dictionary find key by value\" class=\"wp-image-45612\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/image.jpeg 818w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/image-300x234.jpeg 300w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/image-768x598.jpeg 768w\" sizes=\"(max-width: 818px) 100vw, 818px\" title=\"image\"><\/figure>\n<\/div>\n<p>This way we can use <strong>list.index()<\/strong> function to get the key by value from dictionary in Python.<\/p>\n<h3 class=\"wp-block-heading\">Method 4: How to get a key from a value in Python Dictionary using lambda and filter() function<\/h3>\n<p>To find a key by its value in a Python dictionary, we can use the <strong>filter() function<\/strong> in combination with a <strong>lambda function<\/strong>.<\/p>\n<figure class=\"wp-block-table\">\n<table>\n<thead>\n<tr>\n<th>Name<\/th>\n<th>Description<\/th>\n<\/tr>\n<\/thead>\n<tbody>\n<tr>\n<td><strong>Lambda Function<\/strong><\/td>\n<td>In Python, a <strong>lambda function<\/strong> is an anonymous function that is defined with the <strong>lambda<\/strong> keyword. It can have any number of arguments but can only have one expression.<\/td>\n<\/tr>\n<tr>\n<td><strong>Filter Function<\/strong><\/td>\n<td>The <strong>filter() function<\/strong> takes two arguments: <strong>a function and an iterable<\/strong>. It applies the function to every item in the iterable and returns an iterator for the items where the function evaluates to <strong>True<\/strong>.<\/td>\n<\/tr>\n<tr>\n<td><strong>Combining filter() and lambda functions<\/strong><\/td>\n<td>We can use a <strong>lambda function<\/strong> as the first argument to the <strong>filter() function<\/strong>. This <strong>lambda function<\/strong> will compare each item&#8217;s value in the dictionary to the desired value. The <strong>filter() function<\/strong> will then return an iterator containing the items that match the condition set by the <strong>lambda function<\/strong>.<\/td>\n<\/tr>\n<\/tbody>\n<\/table><figcaption class=\"wp-element-caption\">List of functions to be used for finding key by value in Python dictionary.<\/figcaption><\/figure>\n<p><strong>For instance:<\/strong> Let&#8217;s consider a scenario based on a company&#8217;s employee data in the USA. Suppose we have a Python dictionary that contains employee IDs as keys and their respective salaries as values. We want to find all employee IDs who have a specific salary.<\/p>\n<p>We can use the <strong>filter() function<\/strong> along with a <strong>lambda function<\/strong> to filter out the items (employee IDs and salaries) where the salary is <strong>75000.<\/strong><\/p>\n<pre class=\"wp-block-code\"><code>employee_data = {\n    'EMP123': 50000,\n    'EMP124': 75000,\n    'EMP125': 60000,\n    'EMP126': 75000,\n    'EMP127': 80000\n}\nsalary = 75000\nresult = filter(lambda item: item&#91;1] == salary, employee_data.items())\nmatched_items = list(result)\nmatched_employee_ids = &#91;item&#91;0] for item in matched_items]\nprint(f\"The employee IDs for the salary {salary} are {matched_employee_ids}\")<\/code><\/pre>\n<p><strong>Output:<\/strong> This example demonstrates how to use the <strong>filter()<\/strong> and <strong>lambda<\/strong> functions to find keys (in this case, employee IDs) by their associated values (in this case, salaries) in a Python dictionary. In the example output, the employee IDs for employees with a salary of 75000 are &#8216;EMP124&#8217; and &#8216;EMP126&#8217;.<\/p>\n<pre class=\"wp-block-code\"><code>The employee IDs for the salary 75000 are &#91;'EMP124', 'EMP126']<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"909\" height=\"609\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/python-dictionary-get-key.jpg\" alt=\"python dictionary get key\" class=\"wp-image-45583\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/python-dictionary-get-key.jpg 909w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/python-dictionary-get-key-300x201.jpg 300w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/python-dictionary-get-key-768x515.jpg 768w\" sizes=\"(max-width: 909px) 100vw, 909px\" title=\"python dictionary get key\"><\/figure>\n<\/div>\n<p>This way we can use <strong>lambda<\/strong> and <strong>filter() function<\/strong>s to get key by value Python dictionary.<\/p>\n<h2 class=\"wp-block-heading\">How to find key with maximum value in Python Dictionary?<\/h2>\n<p>In Python, we can easily find the key associated with the maximum value in a dictionary by using various approaches.<\/p>\n<p>One of the most concise and readable ways to find the key with the maximum value in a dictionary in Python is to use the <strong>max() function<\/strong>. We can use the key parameter of the <strong>max() function<\/strong> to specify a function of one argument to extract a comparison key from each input element.<\/p>\n<p><strong>Example: <\/strong>Let\u2019s consider another scenario related to a US based e-commerce platform to find out which product has the highest number of sales.<\/p>\n<p>Imagine that an e-commerce platform wants to determine which product has the highest number of sales. They have a Python dictionary where the keys are product IDs and the values are the number of units sold for each product.<\/p>\n<pre class=\"wp-block-code\"><code>product_sales = {\n    'P12345': 1200,\n    'P54321': 2500,\n    'P11222': 1750,\n    'P23456': 3200,\n    'P67890': 1500\n}\nbest_selling_product = max(product_sales, key=product_sales.get)\nprint(f\"The product with the highest sales is {best_selling_product}.\")<\/code><\/pre>\n<p><strong>Output: <\/strong>The result, <strong>best_selling_product<\/strong>, is then printed out, indicating the product with the highest number of sales.<\/p>\n<pre class=\"wp-block-code\"><code>The product with the highest sales is P23456.<\/code><\/pre>\n<div class=\"wp-block-image\">\n<figure class=\"aligncenter size-full\"><img loading=\"lazy\" decoding=\"async\" width=\"851\" height=\"500\" src=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/find-key-by-value-python.jpg\" alt=\"find key by value python\" class=\"wp-image-45584\" srcset=\"https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/find-key-by-value-python.jpg 851w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/find-key-by-value-python-300x176.jpg 300w, https:\/\/pythonguides.com\/wp-content\/uploads\/2023\/10\/find-key-by-value-python-768x451.jpg 768w\" sizes=\"(max-width: 851px) 100vw, 851px\" title=\"find key by value python\"><\/figure>\n<\/div>\n<p>This way we can find the key with maximum value in the Python dictionary using <strong>max() function<\/strong>.<\/p>\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n<p>This tutorial explains how in <strong>Python dictionary find key by value<\/strong> using four different methods such as the <strong>for loop<\/strong> with <strong>dict.item() function<\/strong>, the <strong>List comprehension<\/strong>, the <strong>list.index() function<\/strong>, and the <strong>lambda and filter() function<\/strong> with demonstrative examples.<\/p>\n<p>While each method has its own advantages and disadvantages, the choice of method will depend on the specific requirements of our task.<\/p>\n<p>You may also like to read:<\/p>\n<ul>\n<li><a href=\"https:\/\/pythonguides.com\/python-dictionary-multiple-keys\/\"  rel=\"noreferrer noopener\">Python dictionary multiple keys<\/a><\/li>\n<li><a href=\"https:\/\/pythonguides.com\/for-loop-vs-while-loop-in-python\/\"  rel=\"noreferrer noopener\">For loop vs while loop in Python<\/a><\/li>\n<li><a href=\"https:\/\/pythonguides.com\/remove-a-key-without-an-error-in-the-python-dictionary\/\"  rel=\"noreferrer noopener\">How to remove a key without an error in the Python dictionary<\/a><\/li>\n<li><a href=\"https:\/\/books.google.co.in\/books?id=RN18DwAAQBAJ&amp;pg=PA47&amp;lpg=PA47&amp;dq=How+to+remove+a+key+without+an+error+in+the+Python+dictionary&amp;source=bl&amp;ots=ERoMg1C5qq&amp;sig=ACfU3U1Z68OvjUyemSCgWYbxM5ZUeS4Rqg&amp;hl=en&amp;sa=X&amp;ved=2ahUKEwjC_rPnv9qBAxUTNN4KHUp3Ct84WhDoAXoECAUQAw#v=onepage&amp;q=How%20to%20remove%20a%20key%20without%20an%20error%20in%20the%20Python%20dictionary&amp;f=false\"  data-type=\"link\" data-id=\"https:\/\/books.google.co.in\/books?id=RN18DwAAQBAJ&amp;pg=PA47&amp;lpg=PA47&amp;dq=How+to+remove+a+key+without+an+error+in+the+Python+dictionary&amp;source=bl&amp;ots=ERoMg1C5qq&amp;sig=ACfU3U1Z68OvjUyemSCgWYbxM5ZUeS4Rqg&amp;hl=en&amp;sa=X&amp;ved=2ahUKEwjC_rPnv9qBAxUTNN4KHUp3Ct84WhDoAXoECAUQAw#v=onepage&amp;q=How%20to%20remove%20a%20key%20without%20an%20error%20in%20the%20Python%20dictionary&amp;f=false\" rel=\"noreferrer noopener\">Learn Programming in Python<\/a><\/li>\n<\/ul>\n\n<p class=\"syndicated-attribution\"><figure class= \\\"wp-block-image alignnone \\\"><img src= \\\"http:\/\/itteacheritfreelance.hk\/test\/wordpress\/wp-content\/uploads\/2016\/05\/logo2-2.png\\\" alt=\\\"IT\u96fb\u8166\u88dc\u7fd2 java\u88dc\u7fd2 \u70ba\u5927\u5bb6\u914d\u5c0d\u96fb\u8166\u88dc\u7fd2,IT freelance, \u79c1\u4eba\u8001\u5e2b, PHP\u88dc\u7fd2,CSS\u88dc\u7fd2,XML,Java\u88dc\u7fd2,MySQL\u88dc\u7fd2,graphic design\u88dc\u7fd2,\u4e2d\u5c0f\u5b78ICT\u88dc\u7fd2,\u4e00\u5c0d\u4e00\u79c1\u4eba\u88dc\u7fd2\u548cFreelance\u81ea\u7531\u5de5\u4f5c\u914d\u5c0d\u3002\\\"\/><figcaption>\u7acb\u523b\u8a3b\u518a\u53ca\u5831\u540d\u96fb\u8166\u88dc\u7fd2\u8ab2\u7a0b\u5427!<\/figcaption><\/figure>\r\n<\/br>Find A Teacher Form:\r\n<\/br>https:\/\/docs.google.com\/forms\/d\/1vREBnX5n262umf4wU5U2pyTwvk9O-JrAgblA-wH9GFQ\/viewform?edit_requested=true#responses\r\n<\/br><\/br>Email:\r\n<\/br>public1989two@gmail.com<br><br><br><br><br><br><br>\r\n<a href=www.itsec.hk style=color:#FFFFFF;>www.itsec.hk<\/a><br>\r\n<a href=\\\"www.itsec.vip\\\" style=color:#FFFFFF;>www.itsec.vip<\/a><br>\r\n<a href=\\\"www.itseceu.uk\\\" style=color:#FFFFFF;>www.itseceu.uk<\/a><br><\/p>","protected":false},"excerpt":{"rendered":"<div class=\"mh-excerpt\"><p>In this article, I will explain how in Python dictionary find key by value using various methods using demonstrative examples. We will also see how to find key with maximum value in Python Dictionary. In Python, a dictionary is a built-in data type that can be used to store a mutable, unordered collection of items. &#8230; <a title=\"Python dictionary find key by value (4 methods)\" class=\"read-more\" href=\"https:\/\/pythonguides.com\/python-dictionary-find-a-key-by-value\/\" aria-label=\"More on Python dictionary find key by value (4 methods)\">Read more&#8230;<\/a><\/p>\n<\/div>","protected":false},"author":2034,"featured_media":0,"comment_status":"open","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"slim_seo":{"title":"Python dictionary find key by value (4 methods) - ITTeacherITFreelance.hk","description":"In this article, I will explain how in Python dictionary find key by value using various methods using demonstrative examples. We will also see how to find key"},"footnotes":""},"categories":[10700],"tags":[10770],"_links":{"self":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/329325"}],"collection":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/users\/2034"}],"replies":[{"embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/comments?post=329325"}],"version-history":[{"count":1,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/329325\/revisions"}],"predecessor-version":[{"id":329326,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/posts\/329325\/revisions\/329326"}],"wp:attachment":[{"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/media?parent=329325"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/categories?post=329325"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/itteacheritfreelance.hk\/wordpress\/index.php\/wp-json\/wp\/v2\/tags?post=329325"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}