Can't retrieve posts with API

Can you post your code snippet? (Without including the API key)
Do you see any pattern here in which work and which do not?