https://***.*.<gov.et/api/analytics?dimension=dx:a...
# ask-ai
h
https://***.*.gov.et/api/analytics?dimension=dxaBjlxmZHXWv&amp;dimension=pe201702;201703&dimension=ou:wqURG81DbhS i have this url and i want to add pe alist of periods how can i do that
k
To add a list of periods to the
pe
parameter in your URL using Airbyte's Connector Builder, you can use partitioning with a static list or user input, or you can use custom parameter injection if you need to combine multiple values into a single parameter. ### Using Partitioning (List Partition Router) If you want to iterate over a static list of periods or allow the user to specify them, you can use the List Partition Router. For example, set the partition values to your list of periods (e.g.,
["201702", "201703", "201704"]
) and configure the router to inject these into the
pe
parameter. This will generate separate requests for each period. ### Combining Multiple Periods in a Single Parameter If the API expects multiple periods in a single
pe
parameter, separated by semicolons (e.g.,
pe=201702;201703;201704
), you should use custom parameter injection. In the Connector Builder UI, disable the default injection for the parameter and use the generic parameter section at the bottom of the stream configuration form. Here, you can use a Jinja expression to join your list of periods:
Copy code
yaml parameters:   - name: pe     value: "{{ ','.join(config['periods']) }}"
Or, if the separator should be a semicolon:
Copy code
yaml parameters:   - name: pe     value: "{{ ';'.join(config['periods']) }}"
This approach allows you to pass a list of periods from your config and have them combined into the required format for the API request. For more details on custom parameter injection and using Jinja expressions in Airbyte, see the documentation on [custom parameter injection](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/partitioning#custom-parameter-injection) and [available variables](https://docs.airbyte.com/platform/connector-development/config-based/understanding-the-yaml-file/reference/#/variables). If you need to use user input for the periods, define an array input in your connector config (e.g.,
periods
), and reference it as shown above. Summary: - Use partitioning for separate requests per period. - Use custom parameter injection with Jinja to combine multiple periods into a single
pe
parameter if the API expects them as a semicolon-separated list. [Custom parameter injection - Partitioning](https://docs.airbyte.com/platform/connector-development/connector-builder-ui/partitioning#custom-parameter-injection)