{"id":12744,"date":"2020-05-22T08:41:50","date_gmt":"2020-05-22T15:41:50","guid":{"rendered":"https:\/\/careerkarma.com\/blog\/?p=12744"},"modified":"2023-12-01T02:47:59","modified_gmt":"2023-12-01T10:47:59","slug":"python-filter","status":"publish","type":"post","link":"https:\/\/careerkarma.com\/blog\/python-filter\/","title":{"rendered":"Python Filter: A Step-By-Step Tutorial"},"content":{"rendered":"\n<p><em>The Python <code>filter()<\/code> method is used to filter lists, sets, and tuples. <code>filter()<\/code> follows any provided criteria to filter an iterable object, and returns the filtered result.<\/em><\/p>\n\n\n\n<hr class=\"wp-block-separator has-css-opacity\"\/>\n\n\n\n<p>When you\u2019re programming, you may have a list of values that you want to filter in some way. For example, you may have a list of cookie orders and only want to return those that involve chocolate, which are handled by a specific cook at your cookie store.<\/p>\n\n\n\n<p>That\u2019s where the Python <code>filter()<\/code> method comes in. The <code>filter()<\/code> method can be used to filter a particular list based on a predefined set of criteria and return an iterable with the filtered data.<\/p>\n\n\n\n<p>In this tutorial, we will discuss the <code>filter()<\/code> method and how you can use it in your code. We will also go through a couple of examples of the function in Python code.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Filter<\/h2>\n\n\n\n<p>Lists are a data type in Python that can be used to store multiple values with a common theme. For example, you could use a list to store all the clothes a local fashion store has on sale, or to store a list of programming language names.<\/p>\n\n\n\n<p>Often, when you are working with lists, you\u2019ll want to filter out the list based on a set of criteria. For example, you may be operating a movie theater and want to know how many people under the age of 18 attend movies at your cinema complex.<\/p>\n\n\n\n<p><code>filter()<\/code>, a built-in function, can be used to filter out a list and returns an iterator. Here\u2019s the syntax for the <code>filter()<\/code> method:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>filter(function, iterable_object)<\/pre><\/div>\n\n\n\n<p>The <code>filter()<\/code> method takes two parameters:<\/p>\n\n\n\n<ul class=\"wp-block-list\">\n<li><strong>function<\/strong> is the code to be run on each item in the iterable you specify (required). The function will check if the iterable returns True or False.&nbsp;<\/li>\n\n\n\n<li><strong>iterable_object<\/strong> is the object you want to filter (required).<\/li>\n<\/ul>\n\n\n\n<p>The iterable object you specify can be any iterable such as Python <code>lists<\/code>, <code>sets<\/code>, and <code>tuples<\/code>.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Filter Examples<\/h2>\n\n\n\n<p>Let\u2019s run through an example to demonstrate how this method can be used.<\/p>\n\n\n\n<p>Say that you are operating a magazine stand and you want to check whether or not you need to order new inventory. If you have less than 20 editions of any magazine, you need to place a new order; if you have more than 20 editions of a magazine, you don\u2019t need to place a new order. You have a list of numbers that stores the quantities of magazines you have.<\/p>\n\n\n\n<p>To check whether you need to place an order for any magazines, you could use the following code:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>quantities = [25, 49, 21, 17, 14, 28]\ndef checkQuantities(mags):\n\tif mags &lt; 20:\n\t\treturn True\n\telse:\n\t\treturn False\nfiltered_mags = filter(checkQuantities, quantities)\nprint(list(filtered_mags))<\/pre><\/div>\n\n\n\n<p>Our code returns: <code>[17, 14]<\/code> <\/p>\n\n\n\n<p>Let\u2019s break down our code. On the first line, we define a variable called <code>quantities<\/code> which stores how many editions of each magazine we have in our inventory.<\/p>\n\n\n\n<p>Then, we define a function called <code>checkQuantities<\/code> which will check whether we have fewer than 20 editions of a specific magazine in stock. If we have less than 20 editions, our <code>checkQuantities<\/code> function returns True; otherwise, it will return False.<\/p>\n\n\n\n<p>Next, we use the <code>filter()<\/code> method and specify <code>checkQuantities<\/code> as our function and <code>quantities<\/code> as our iterable object. This tells our <code>filter()<\/code> method to execute <code>checkQuantities<\/code> on every item in the quantities array.<\/p>\n\n\n\n<p>Then, we print out the result of our <code>filter()<\/code> method, and use <code>list()<\/code> to convert it to a list. This is important because <code>filter()<\/code> returns a filtered object, not a list. So, if we want to see our data, we need to convert it to a list.<\/p>\n\n\n\n<p>As you can see, our code returns two values: 17 and 14. Each of these is under 20, which means our program has worked as intended.<\/p>\n\n\n\n<p>Let\u2019s go through another example to show how this method works. Say we are a dance instructor and we want to know the ages of everyone in our class who is between seven and ten, inclusive of both seven and ten. We could use the following code to get this data: <\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>student_ages = [7, 9, 8, 10, 11, 11, 8, 9, 12]\ndef checkAges(ages):\n\tif ages &gt;= 7 and ages &lt;= 10:\n\t\treturn True\n\telse:\n\t\treturn False\nfiltered_ages = filter(checkAges, student_ages)\nprint(list(filtered_ages))<\/pre><\/div>\n\n\n\n<p>Our code returns: <code>[7, 9, 8, 10, 8, 9]<\/code>. As you can see, our program has filtered out the students who are aged between seven and ten from our list elements, inclusive of both seven and ten. The resulting list contains our filtered data. <\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Python Filter with Lambda<\/h2>\n\n\n\n<p>To make our filter operation more efficient, we can use the list map Lambda function. Lambda is a special function that is defined without a name and can be used to write short, one-line anonymous functions in Python.<\/p>\n\n\n\n<p>So, let\u2019s take our magazine quantities example from above. In that example, we created a function that checked whether we had less than 20 editions of a magazine in stock and used <code>filter()<\/code> to execute that function on our list of magazines. Then, our program returned a list of every magazine for which we had less than 20 editions.<\/p>\n\n\n\n<p>We could use a Lambda function to perform this same action, but more efficiently. Here\u2019s the code we could use:<\/p>\n\n\n\n<div class=\"wp-block-codemirror-blocks-code-block code-block\"><pre>quantities = [25, 49, 21, 17, 14, 28]\nfiltered_mags = filter(lambda mag: mag &lt; 20, quantities)\nprint(list(filtered_mags))<\/pre><\/div>\n\n\n\n<p>Our code returns: <code>[17, 14]<\/code>.<\/p>\n\n\n\n<p>As you can see, our output is the same, but our code is significantly shorter. Instead of defining a whole function, we have used Lambda to define a one-line function.<\/p>\n\n\n\n<p>This one-line function checks whether we have fewer than 20 copies of a magazine in stock, and returns True to the <code>filter()<\/code> iterator if that is the case. After execution, our program returns a list with two values: 17 and 14.<\/p>\n\n\n\n<h2 class=\"wp-block-heading\">Conclusion<\/h2>\n\n\n\n<p>The Python <code>filter()<\/code> function can be used to filter an iterable object based on a set of predefined criteria and returns a filtered iterable. This method can be useful if you have a list of data from which you only want to retrieve values that meet certain criteria.<\/p>\n\n\n\n<p>In this guide, we discussed the syntax for the <code>filter()<\/code> method, and how it can be used in Python. We explored a few examples of <code>filter()<\/code> in action, then we looked at how <code>filter()<\/code> can be used with a Python Lambda function to make our code more efficient.<\/p>\n\n\n\n<p>You\u2019re now equipped with the information you need to use <code>filter()<\/code> like a Python expert!<\/p>\n","protected":false},"excerpt":{"rendered":"The Python filter() method is used to filter lists, sets, and tuples. filter() follows any provided criteria to filter an iterable object, and returns the filtered result. When you\u2019re programming, you may have a list of values that you want to filter in some way. For example, you may have a list of cookie orders&hellip;","protected":false},"author":240,"featured_media":12745,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_acf_changed":false,"footnotes":""},"categories":[16578],"tags":[],"class_list":{"0":"post-12744","1":"post","2":"type-post","3":"status-publish","4":"format-standard","5":"has-post-thumbnail","7":"category-python"},"acf":{"post_sub_title":"","sprint_id":"","query_class":"Python","school_sft":"","parent_sft":"","school_privacy_policy":"","has_review":"","is_sponser_post":"","is_guest_post":""},"yoast_head":"<!-- This site is optimized with the Yoast SEO Premium plugin v27.0 (Yoast SEO v27.0) - https:\/\/yoast.com\/product\/yoast-seo-premium-wordpress\/ -->\n<title>Python Filter: A Step-By-Step Tutorial | Career Karma<\/title>\n<meta name=\"description\" content=\"When you\u2019re programming, you may want to filter a list of values in some way. Learn how to use the filter method in Python on Career Karma.\" \/>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/careerkarma.com\/blog\/python-filter\/\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"Python Filter: A Step-By-Step Tutorial\" \/>\n<meta property=\"og:description\" content=\"When you\u2019re programming, you may want to filter a list of values in some way. Learn how to use the filter method in Python on Career Karma.\" \/>\n<meta property=\"og:url\" content=\"https:\/\/careerkarma.com\/blog\/python-filter\/\" \/>\n<meta property=\"og:site_name\" content=\"Career Karma\" \/>\n<meta property=\"article:publisher\" content=\"http:\/\/facebook.com\/careerkarmaapp\" \/>\n<meta property=\"article:published_time\" content=\"2020-05-22T15:41:50+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2023-12-01T10:47:59+00:00\" \/>\n<meta property=\"og:image\" content=\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-FILTER.jpg\" \/>\n\t<meta property=\"og:image:width\" content=\"1000\" \/>\n\t<meta property=\"og:image:height\" content=\"668\" \/>\n\t<meta property=\"og:image:type\" content=\"image\/jpeg\" \/>\n<meta name=\"author\" content=\"James Gallagher\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:creator\" content=\"@career_karma\" \/>\n<meta name=\"twitter:site\" content=\"@career_karma\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"James Gallagher\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"5 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\/\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-filter\/#article\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-filter\/\"},\"author\":{\"name\":\"James Gallagher\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"headline\":\"Python Filter: A Step-By-Step Tutorial\",\"datePublished\":\"2020-05-22T15:41:50+00:00\",\"dateModified\":\"2023-12-01T10:47:59+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-filter\/\"},\"wordCount\":973,\"commentCount\":0,\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-filter\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-FILTER.jpg\",\"articleSection\":[\"Python\"],\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"CommentAction\",\"name\":\"Comment\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-filter\/#respond\"]}]},{\"@type\":\"WebPage\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-filter\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/python-filter\/\",\"name\":\"Python Filter: A Step-By-Step Tutorial | Career Karma\",\"isPartOf\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\"},\"primaryImageOfPage\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-filter\/#primaryimage\"},\"image\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-filter\/#primaryimage\"},\"thumbnailUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-FILTER.jpg\",\"datePublished\":\"2020-05-22T15:41:50+00:00\",\"dateModified\":\"2023-12-01T10:47:59+00:00\",\"author\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\"},\"description\":\"When you\u2019re programming, you may want to filter a list of values in some way. Learn how to use the filter method in Python on Career Karma.\",\"breadcrumb\":{\"@id\":\"https:\/\/careerkarma.com\/blog\/python-filter\/#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\/\/careerkarma.com\/blog\/python-filter\/\"]}]},{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-filter\/#primaryimage\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-FILTER.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-FILTER.jpg\",\"width\":1000,\"height\":668},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\/\/careerkarma.com\/blog\/python-filter\/#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Blog\",\"item\":\"https:\/\/careerkarma.com\/blog\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"Python\",\"item\":\"https:\/\/careerkarma.com\/blog\/python\/\"},{\"@type\":\"ListItem\",\"position\":3,\"name\":\"Python Filter: A Step-By-Step Tutorial\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#website\",\"url\":\"https:\/\/careerkarma.com\/blog\/\",\"name\":\"Career Karma\",\"description\":\"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\/\/careerkarma.com\/blog\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94\",\"name\":\"James Gallagher\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/\",\"url\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"contentUrl\":\"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg\",\"caption\":\"James Gallagher\"},\"description\":\"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.\",\"url\":\"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/\"}]}<\/script>\n<!-- \/ Yoast SEO Premium plugin. -->","yoast_head_json":{"title":"Python Filter: A Step-By-Step Tutorial | Career Karma","description":"When you\u2019re programming, you may want to filter a list of values in some way. Learn how to use the filter method in Python on Career Karma.","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:\/\/careerkarma.com\/blog\/python-filter\/","og_locale":"en_US","og_type":"article","og_title":"Python Filter: A Step-By-Step Tutorial","og_description":"When you\u2019re programming, you may want to filter a list of values in some way. Learn how to use the filter method in Python on Career Karma.","og_url":"https:\/\/careerkarma.com\/blog\/python-filter\/","og_site_name":"Career Karma","article_publisher":"http:\/\/facebook.com\/careerkarmaapp","article_published_time":"2020-05-22T15:41:50+00:00","article_modified_time":"2023-12-01T10:47:59+00:00","og_image":[{"width":1000,"height":668,"url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-FILTER.jpg","type":"image\/jpeg"}],"author":"James Gallagher","twitter_card":"summary_large_image","twitter_creator":"@career_karma","twitter_site":"@career_karma","twitter_misc":{"Written by":"James Gallagher","Est. reading time":"5 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/careerkarma.com\/blog\/python-filter\/#article","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/python-filter\/"},"author":{"name":"James Gallagher","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"headline":"Python Filter: A Step-By-Step Tutorial","datePublished":"2020-05-22T15:41:50+00:00","dateModified":"2023-12-01T10:47:59+00:00","mainEntityOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-filter\/"},"wordCount":973,"commentCount":0,"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-filter\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-FILTER.jpg","articleSection":["Python"],"inLanguage":"en-US","potentialAction":[{"@type":"CommentAction","name":"Comment","target":["https:\/\/careerkarma.com\/blog\/python-filter\/#respond"]}]},{"@type":"WebPage","@id":"https:\/\/careerkarma.com\/blog\/python-filter\/","url":"https:\/\/careerkarma.com\/blog\/python-filter\/","name":"Python Filter: A Step-By-Step Tutorial | Career Karma","isPartOf":{"@id":"https:\/\/careerkarma.com\/blog\/#website"},"primaryImageOfPage":{"@id":"https:\/\/careerkarma.com\/blog\/python-filter\/#primaryimage"},"image":{"@id":"https:\/\/careerkarma.com\/blog\/python-filter\/#primaryimage"},"thumbnailUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-FILTER.jpg","datePublished":"2020-05-22T15:41:50+00:00","dateModified":"2023-12-01T10:47:59+00:00","author":{"@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94"},"description":"When you\u2019re programming, you may want to filter a list of values in some way. Learn how to use the filter method in Python on Career Karma.","breadcrumb":{"@id":"https:\/\/careerkarma.com\/blog\/python-filter\/#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/careerkarma.com\/blog\/python-filter\/"]}]},{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/python-filter\/#primaryimage","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-FILTER.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/02\/PYTHON-FILTER.jpg","width":1000,"height":668},{"@type":"BreadcrumbList","@id":"https:\/\/careerkarma.com\/blog\/python-filter\/#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Blog","item":"https:\/\/careerkarma.com\/blog\/"},{"@type":"ListItem","position":2,"name":"Python","item":"https:\/\/careerkarma.com\/blog\/python\/"},{"@type":"ListItem","position":3,"name":"Python Filter: A Step-By-Step Tutorial"}]},{"@type":"WebSite","@id":"https:\/\/careerkarma.com\/blog\/#website","url":"https:\/\/careerkarma.com\/blog\/","name":"Career Karma","description":"Latest Coding Bootcamp News &amp; Career Hacks from Industry Insiders","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/careerkarma.com\/blog\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/e79364792443fbff794a144c67ec8e94","name":"James Gallagher","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/careerkarma.com\/blog\/#\/schema\/person\/image\/","url":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","contentUrl":"https:\/\/careerkarma.com\/blog\/wp-content\/uploads\/2020\/01\/james-gallagher-150x150.jpg","caption":"James Gallagher"},"description":"James Gallagher is a self-taught programmer and the technical content manager at Career Karma. He has experience in range of programming languages and extensive expertise in Python, HTML, CSS, and JavaScript. James has written hundreds of programming tutorials, and he frequently contributes to publications like Codecademy, Treehouse, Repl.it, Afrotech, and others.","url":"https:\/\/careerkarma.com\/blog\/author\/jamesgallagher\/"}]}},"_links":{"self":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12744","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/users\/240"}],"replies":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/comments?post=12744"}],"version-history":[{"count":0,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/posts\/12744\/revisions"}],"wp:featuredmedia":[{"embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media\/12745"}],"wp:attachment":[{"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/media?parent=12744"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/categories?post=12744"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/careerkarma.com\/blog\/wp-json\/wp\/v2\/tags?post=12744"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}