1

I'm using the marvel api the get all of the events they have. I need to get all of the characters of all the events, but I only receive 20. its says "available: 75" "returned: 20"

Can anyone help me with that?

3
  • Looks like there are parameters available for "limit" and "offset" to show more results per request or use paginated results respectively. The documentation isn't great so it might take some trial and error Commented Dec 6, 2019 at 13:32
  • i could use that to change number of events when i call the events but i cant find out how to change the limits of the characters that come in the events response Commented Dec 6, 2019 at 13:53
  • You might need to call the characters endpoint after calling the events. You haven't really provided all the information necessary for us to help you get the results you want. Commented Dec 6, 2019 at 13:57

2 Answers 2

1

Take a look at: Screenshot event api doc Source: https://developer.marvel.com/docs#!/public/getEventsCollection_get_18

You can either raise the limit of the events returned or execute multiple requests to get all the data. I advice you to do multiple requests as this is more future proof (when e.g. the amount of events is higher some other time).

Sign up to request clarification or add additional context in comments.

1 Comment

i could use that to change the limit in the events response but i could not use it to change the limit of the characters that are in every event (sorry i could not upload a photo here but heres what im talking about) imgur.com/8gH1sRD
1

You need to add &limit=100& between ts and the apikey. For example: ...characters?ts=1&limit=100&apikey=xxx

Comments

Start asking to get answers

Find the answer to your question by asking.

Ask question

Explore related questions

See similar questions with these tags.