APIXU平台end_dt参数失效问题咨询(Gold计划用户)
end_dt Parameter Issue Sorry to hear you're hitting this frustrating roadblock with your APIXU Gold subscription—let's walk through possible fixes and next steps to get this sorted:
Double-check parameter formatting first
Start by verifying you're using the correct date format for bothdtandend_dt(APIXU typically requires dates inYYYY-MM-DD). A valid request should look like this:https://api.apixu.com/v1/history.json?key=YOUR_GOLD_API_KEY&q=Berlin&dt=2024-03-01&end_dt=2024-03-30If your dates are in a different format (like
DD/MM/YYYY), that could be why theend_dtparameter isn't being recognized properly.Report the documentation vs. functionality mismatch to APIXU support
It’s a clear inconsistency: the pricing page explicitly states Gold plans supportend_dtfor bulk 30-day history pulls, but the request documentation only references thedtparameter. As a paid Gold user, you have access to priority support—reach out to their team with:- A direct quote of the pricing page’s promise: "免费版及Silver版每次调用仅返回1天历史数据,Gold版及以上可通过传入dt和end_dt参数单次返回最多30天历史数据"
- Redacted examples of your failed requests (include the full URL with your API key hidden)
- The exact response you’re getting (e.g., only 1 day of data, an error message)
They should prioritize fixing either theend_dtfunctionality or updating the documentation to match the advertised features.
Temporary workaround for immediate needs
While waiting for APIXU to resolve the issue, you can loop through individualdtrequests for each day in your target date range and aggregate the results on your end. It’s not as efficient as usingend_dt, but it will let you access the 30-day data you need right now.
内容的提问来源于stack exchange,提问作者Pedro Andriow

