Is there a way to retrieve an unpublished blog post using the core_v2_blogPost.Get script API?

I am able to see the blog post I am trying to retrieve using the core_v2_blogPost.List method and passing the argument "IncludeUnpublished".
However if I want to use the core_v2_blogPost.Get api there seems to be no such option and it is not returning unpublished blog posts so I am unsure how I am supposed to retrieve this blog post due to this. (I thought about using the List method and filtering so it will only return the blog post I am looking for but the API doesn't let me pass the parameters that would be needed to do so).

Is there a solution to this; any help much appreciated!

(TLDR: I need to retrieve an unpublished blog post using the core_v2_blogPost.Get Script API or through some other api with only the group id, blog id and blog post name)

Thanks! Jez



Added some extra context to the TLDR
[edited by: Jez Bayliss at 10:56 AM (GMT 0) on Thu, Apr 10 2025]
  • Hmm, I'm not sure what you're doing but when I tried it seems to work fine for me (12.1.5).

    $core_v2_blogPost.List("%{ IncludeUnpublished = 'True' }")

    That returns a list.. if I pick on an entry, I can use .Get to retrieve it either via the blog post ID, or the BlogId + Title.. both return the correct piece of content.

    $core_v2_blogPost.Get("%{ Id = 27946 }")

    $core_v2_blogPost.Get("%{ BlogId = 19, Name = 'Hello' }")