Comments (3)
unintentional. Should be fixed now
from inaturalistapi.
This should be all set now.
I'm starting to think ahead to V2 of the API, with one goal making the responses a lot smaller. Right now for example, if you fetch http://api.inaturalist.org/v1/observations?taxon_id=27805
you'll get by default 30, but up to 100 observations, all of the same taxon, so all the metadata about the taxon is repeated 30 to 100 times, making the response very large. For this case the response is 31KB for 30 results with details, and 13KB w/o details (these might be the size of the results when gzipped, so larger if we weren't doing compression).
I'm mostly interested in keeping the size of the responses smaller, which is hard to do with the nested nature of JSON. One option is we just return a very minimal object for the taxon, like just its ID, and force the client to make API calls for the taxa they want details for. Another approach would be to denormalize the response a bit so again the observation just has a taxon_id, but later in the document we list out the full taxon object, but only do it once. Something like what you can do with YAML.
Alex, do you have any thoughts on that from an iOS perspective? How much of a pain would it be for you to have to make 2 calls - one to fetch observations, and another to fetch all their taxa in a single call (e.g. v1/taxa/1,2,3,50,100
). And how difficult would it be to parse a non-nested JS document, or something like a YAML document with pointers in it?
from inaturalistapi.
I'm getting wikipedia_summary
for http://api.inaturalist.org/v1/taxa/10094 but not http://api.inaturalist.org/v1/taxa/10325?locale=en-US
Is that expected?
from inaturalistapi.
Related Issues (20)
- Document request params for /v2/observations/updates HOT 1
- Include UUIDs in response to /v2/observations/updates HOT 1
- Refactor large terms aggregations
- Specify what request params trigger errors in v2 HOT 1
- Document request schemas for POST /v2/observations and PUT /v2/observations/:uuid HOT 1
- Allow users to retrieve taxon names
- Trad project user species count not showing the correct number HOT 1
- Allow exact string search queries (for things like taxa and projects) HOT 2
- Allow restricting taxon search to only valid names HOT 1
- Add PUT observations/:id/viewed_updates to API v2
- v2 fetch endpoints with a single UUID should 404 if there's no record
- how does paging work in taxa and taxa/autocomplete endpoints? HOT 1
- Document order and order_by params of /v1/taxa endpoint
- Support DELETE observation in v2
- Support updating observation photos and sounds in API v2
- Add application field to observations/search HOT 1
- Support GET observations/deleted in API v2 HOT 1
- Allow authenticated log requests from anywhere
- admin_level documentation is outdated
- Add a rank_level filter param to the fetch taxa endpoint
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from inaturalistapi.