LingQ API endpoint is returning a 404 Not Found?

Hi - I’ve sent two emails to LingQ support, but unfortunately haven’t received any reply.

I’m trying to work with the LingQ API, and the only endpoint so far that doesn’t seem to work is the following:
GET https://www.lingq.com/api/languages/language/lessons/

This is from the legacy API - which I need to use as the v2 one doesn’t return lessons by user (it returns all lessons per language). It is returning a “404 Not Found” status code.

Is there any way to get this fixed?

If the API is not actively being developed, that’s fine, but knowing this would help me adjust my approach to working with it.

Thanks,
Chris

Hi Chris,
I asked our developers about it and will let you know as soon as I hear back from them.

1 Like

Hi Zoran - Any word yet?

Hi Chris, sorry about the delay.
This is the url to legacy API, you need to add ?id=content_id. : Legacy API — LingQ 1.0 documentation

But there’s no any guarantee it works correctly, so you should consider using new api REST API Documentation — LingQ 1.0 documentation

1 Like

Thanks very much! I’ll give it a go.
The docs for v 2.0 don’t specify GET requests, so I wasn’t sure you could actually retrieve lesson content per user. Only POST requests are documented.

I found the best way for me to get only the user’s lessons is to first retrieve the users collections/courses (https://www.lingq.com/api/v2/{language_code}/collections/my/) in order to get the collections ids and then get the lessons for a specific collection (https://www.lingq.com/api/v2/{language_code}/collections/{collectionId}/).

1 Like