Vote up to Idea "Get" argument for API call: is there a length limitation? Vote down to Idea "Get" argument for API call: is there a length limitation?

Rank 94

Idea#7

This idea is active.
Bugs / Problems »

"Get" argument for API call: is there a length limitation?

I have an API request where the get argument that works is "P0030001,P0030002,P0030003,P0030004". However, I wanted to get all available names in that concept, which in total is a list of 8 elements "P0030001,P0030002,P0030003,...P0030008".

This request fails with error "unknown variable 'P0030005,P0030006,P0030007,P0030008"

Is there a limit on the length for the GET argument?

Comment

Submitted by 2 years ago

Comments (6)

  1. Moderator

    Yes. There is a currently a limitation of four (4) variables to be retrieved per request. To get your eight variables, you can make two requests.

    2 years ago
  2. Is there a way to "sticky" this to the top of the page, so that it is found easier by others having the same problem?

    2 years ago
  3. I immediately ran into the same problem, when trying to grab the population of an area by age and sex (23 age groups x 2 sexes = 46 variables).

    This limitation should probably be documented.

    2 years ago
  4. Moderator

    Thanks. I'll add this to the documentation on the site.

    2 years ago
  5. Are there any plans to increase the limit in the near future?

    2 years ago
  6. We are looking into increasing the limit, when we do we will let all of the developers know via the website and a post here.

    2 years ago

Vote Activity Show

Events

  1. The idea was posted
    2 years ago