Unable to get delta set via learningAssets API

Oleg 1 Reputation point
2020-06-29T06:37:12.603+00:00

In attempting to get delta assets set - updated after particular time - via LinkedIn learningAssets API I'm apparently getting all available assets.

GET
https://api.linkedin.com/v2/learningAssets
q=criteria
start=0
count=50
fields=urn,title,details
assetFilteringCriteria.lastModifiedAfter=1593190413622
assetFilteringCriteria.locales[0].language=en
assetFilteringCriteria.locales[0].country=US
assetFilteringCriteria.assetTypes[0]=COURSE

I'm getting old records. e.g. "lastUpdatedAt": 1593060196304

Also because of that the number of records reaches the API limit so I can't even get all of them.

Is this a bug? Any help appreciated. Thanks!

Not Monitored
Not Monitored
Tag not monitored by Microsoft.
39,682 questions
0 comments No comments
{count} votes

1 answer

Sort by: Most helpful
  1. Oleg 1 Reputation point
    2020-06-30T00:35:49.083+00:00

    Please note that this for "q=criteria" API request.

    I discovered that this happens when the requested period is greater than 24 hours.

    So If assetFilteringCriteria.lastModifiedAfter time goes back for more than 24 hours the API unexpectedly returns older records yielding huge dataset.
    This data is totally unusable giving the API has an apparent record limit.
    The paginator always returns "total" limited to 500 records.

    Please have a look at this and also document correctly the API behavior.
    I don't see where both "q=criteria" API limits - 500 record limit and lastModifiedAfter 24 hour limit - are documented.

    PS. If I push past 500 record limit I can actually get up to a 1000 records. This still doesn't help as the library I'm working with has 8000+ records.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.